Teradata/PyTd

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

DennyD17 opened this issue · 0 comments

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.