[python-sybase] cs_dt_info symbol undefined
Sébastien Arnaud
arnaudsj at emedialibrary.org
Sat Oct 29 14:37:05 EST 2005
Hi Jeff,
I encountered somehow the same type of errors in the past on a Gentoo
Server. The problem is that I can't seem to remember exactly what did
it. I actually reinstalled the Sybase python module just a few days
ago, right after upgrading from python 2.3.5 to python 2.4.2 and I
had no issue at all...
Are you under x86 Gentoo? A few things I would try would be to make
sure to set the SYBASE var to /usr and try without -U WANT_BULKCOPY.
Also you might want to check if your FreeTDS install is working
correctly by running a quick test using the command line tool tsql.
Finally, you did not specify which version you tried to install. I
believe 0.36 is the one I have installed.
Hope this helps.
Sébastien
On Oct 28, 2005, at 3:43 PM, J.Hubbs wrote:
> I'm trying to make queries against a remote MS SQL Server from
> Python 2.4.2 on
> Gentoo Linux and I understand (for good or ill) that the Sybase
> module for
> Python is an effective and non-instrusive (as far as the server
> side goes)
> way to do that.
>
> I have installed FreeTDS 0.62.3 via Gentoo ebuild and I re-emerged
> python
> with the freetds and sybase USE flags included.
>
> I installed the Sybase module for Python as follows, as per
> http://www.object-craft.com.au/projects/sybase/install.html:
>
> python setup.py build_ext -D HAVE_FREETDS=62 -U WANT_BULKCOPY
> python setup.py install
>
> Yet, I get this when I try to "import Sybase" in Python:
>
> Traceback (most recent call last):
> File "<stdin>", line 1, in ?
> File "/usr/lib/python2.4/site-packages/Sybase.py", line 20, in ?
> from sybasect import *
> ImportError: /usr/lib/python2.4/site-packages/sybasect.so: undefined
> symbol: cs_dt_info
>
> I've looked at http://tinyurl.com/blvms in in hopes of finding this
> problem's
> solution but the only thing I've been able to really mess with is
> the setting
> of the SYBASE environment variable, which I determined I should set to
> /opt/sybase/OCS-15_0, which contains
>
> bin config devlib include lib lib3p sample scripts sybhelp
> xappdefaults
>
> I installed Sybase Express Edition for Linux in hopes of obtaining
> this libcs
> library, which didn't happen - it's nowhere to be found.
>
> Is there a way to untangle all this, or would I be better off going
> an ODBC
> route?
>
> Thanks,
> Jeff
>
>
> _______________________________________________
> Python-sybase mailing list
> Python-sybase at www.object-craft.com.au
> https://www.object-craft.com.au/cgi-bin/mailman/listinfo/python-sybase
>
More information about the Python-sybase
mailing list