Teradata / PyTd

A Python Module to make it easy to script powerful interactions with Teradata Database in a DevOps friendly way.
MIT License
108 stars 43 forks source link

OSError: libodbc.so is not a valid load module: Bad magic number while trying to connect TD using TD python module #80

Closed DennyD17 closed 5 years ago

DennyD17 commented 6 years ago

Hello! I try to connect to TD using TD python module on HP-UX x64 11.31: python

import teradata udaExec = teradata.UdaExec (odbcLibPath='/opt/teradata/client/15.10/lib64/libodbc.so', appName="tdconnect", version="1.0", logConsole=False) session = udaExec.connect(method='odbc', system="prom", username="uname", password='pwd')

and I get the error: Traceback (most recent call last): File "", line 1, in File "build/bdist.hp-ux-B.11.31-ia64/egg/teradata/udaexec.py", line 183, in connect File "build/bdist.hp-ux-B.11.31-ia64/egg/teradata/tdodbc.py", line 421, in init File "build/bdist.hp-ux-B.11.31-ia64/egg/teradata/tdodbc.py", line 366, in init File "build/bdist.hp-ux-B.11.31-ia64/egg/teradata/tdodbc.py", line 319, in initOdbcLibrary File "/usr/local/lib/python2.7/ctypes/init.py", line 440, in LoadLibrary return self._dlltype(name) File "/usr/local/lib/python2.7/ctypes/init.py", line 362, in init self._handle = _dlopen(self._name, mode) OSError: '/opt/teradata/client/15.10/lib64/libodbc.so' is not a valid load module: Bad magic number

I tried to connect using TD 14.10 and I had the same error, then I have installed TD 15.10 and I had the same error again. Where is the problem ? Help, please.