From: Dan H. <dan...@re...> - 2019-05-02 22:06:41
|
Hi As a test of the Python-sybase install I get: # python Python 2.7.5 (default, Sep 12 2018, 05:31:16) [GCC 4.8.5 20150623 (Red Hat 4.8.5-36)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import Sybase Traceback (most recent call last): File "<stdin>", line 1, in <module> File "build/bdist.linux-x86_64/egg/Sybase.py", line 11, in <module> File "build/bdist.linux-x86_64/egg/sybasect.py", line 7, in <module> File "build/bdist.linux-x86_64/egg/sybasect.py", line 6, in __bootstrap__ ImportError: /root/.python-eggs/python_sybase-0.39-py2.7-linux-x86_64.egg-tmp/sybasect.so: undefined symbol: ct_callback So I ran ldd # ldd /root/.python-eggs/python_sybase-0.39-py2.7-linux-x86_64.egg-tmp/sybasect.so linux-vdso.so.1 => (0x00007ffc5614c000) libpython2.7.so.1.0 => /lib64/libpython2.7.so.1.0 (0x00007f91552e3000) libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f91550c7000) libc.so.6 => /lib64/libc.so.6 (0x00007f9154cfa000) libdl.so.2 => /lib64/libdl.so.2 (0x00007f9154af6000) libutil.so.1 => /lib64/libutil.so.1 (0x00007f91548f3000) libm.so.6 => /lib64/libm.so.6 (0x00007f91545f1000) /lib64/ld-linux-x86-64.so.2 (0x00007f91558d2000) We are using FreeTDS (0.95.81). I'm pretty sure that it's installed correctly since I can connect from Perl via DBD::Sybase (note I'm a Perl programmer, not a Python one, but I need to set this up for Python devs. Hence I may be missing/misunderstanding things) |