[python-sybase] python sybase installation

Andrew Thomson andrewjt at applecomm.net
Fri, 11 Feb 2005 12:31:17 +1100


Hi,

I'm now trying to use the sybase module under Linux RHEL 3 and Sybase
12.5.

The module compiles and installs cleanly however scripts don't like
importing Sybase.

/temp.linux-i686-2.4/datetime.o build/temp.linux-i686-2.4/sybasect.o
-L/opt/sybase/OCS-12_5/lib -o build/lib.linux-i686-2.4/sybasect.so
running install_lib
copying build/lib.linux-i686-2.4/Sybase.py
-> /usr/local/lib/python2.4/site-packages
copying build/lib.linux-i686-2.4/sybasect.so
-> /usr/local/lib/python2.4/site-packages
byte-compiling /usr/local/lib/python2.4/site-packages/Sybase.py to
Sybase.pyc
[root@scratch sybase-0.36]# 

[root@scratch sybase-0.36]# /usr/local/bin/python -ic "import Sybase"
Traceback (most recent call last):
  File "<string>", line 1, in ?
  File "Sybase.py", line 20, in ?
    from sybasect import *
ImportError: /usr/local/lib/python2.4/site-packages/sybasect.so:
undefined symbol: cs_dt_info

I have tried this with Python 2.2 as per installed by RHEL 3 and also
with Python 2.4.

Any guidance appreciated.

Regards,

Andrew.


-- 
Andrew Thomson <andrewjt@applecomm.net>