When I try and connect to teradata, I get this error:
OSError: /home/***/.local/lib/python3.8/site-packages/teradatasql/teradatasql.so: cannot open shared object file: No such file or directory
I installed teradatasql using pip install teradatasql
.
I also installed teradatasqlalchemy
I cannot find much help online so any help here is appreciated.
2
Answers
A couple of things you can check out:
Check if you have the dependencies needed:
sudo apt-get install libodbc1
.Check that its installed correctly
pip show teradatasql
. It should return the path.See if the path is in your .bashrc/.zshrc file
export LD_LIBRARY_PATH=/path/to/teradata/cliv2/lib:$LD_LIBRARY_PATH
Check if this file actually exists in that location
/home/***/.local/lib/python3.8/site-packages/teradatasql/teradatasql.so
If not, there might have been an issue during the installation.The teradatasql driver only supports Linux x86-64 architecture right now. If you are installing on Linux ARM, then it will not work. Linux ARM support is planned for the future.