Up Prev Next
From: "Mr dot Dan" <bitsandbytes88 at hotmail dot com>
Subject: python and sybase
Date: May 31 2006 2:19PM
I am running linuxamd64 with SLES 9.3.
I can't get the python to import Sybase after it installs with no errors.
I tried editing the setup.py as is suggested and changing libraries from ct
to ct64. Other posts say to try sybct, I tried that too. That didn't help
with OCS-15_0(64-bit). My theory now is that Dave build python - sybase to
work with 32-bit sybase OCS even though python 2.3.5 itself uses 64-bit.
Below is a screenshot showing python's sybase module, sybase-0.37 installing
with out error. I'm not sure what to try at this point.
Should I dump OCS and can I get python to import sybase with just freetds
and not involve OCS?
Should I work on getting a 32-bit version of OCS from $ybase?
:/usr/local/src/sybase-0.37> vi setup.py
:/usr/local/src/sybase-0.37> python setup.py build_ext -D WITH_THREADS
:/usr/local/src/sybase-0.37> python setup.py install
Python 2.3.5 (#8, Mar 24 2005, 08:32:27)
[GCC 3.4.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
Traceback (most recent call last):
File "", line 1, in ?
File "Sybase.py", line 20, in ?
from sybasect import *
ImportError: /usr/local/lib/python2.3/site-packages/sybasect.so: undefined