From: <arn...@em...> - 2005-10-29 21:37:10
|
Hi Jeff, I encountered somehow the same type of errors in the past on a Gentoo =20= Server. The problem is that I can't seem to remember exactly what did =20= it. I actually reinstalled the Sybase python module just a few days =20 ago, right after upgrading from python 2.3.5 to python 2.4.2 and I =20 had no issue at all... Are you under x86 Gentoo? A few things I would try would be to make =20 sure to set the SYBASE var to /usr and try without -U WANT_BULKCOPY. =20 Also you might want to check if your FreeTDS install is working =20 correctly by running a quick test using the command line tool tsql. Finally, you did not specify which version you tried to install. I =20 believe 0.36 is the one I have installed. Hope this helps. S=E9bastien On Oct 28, 2005, at 3:43 PM, J.Hubbs wrote: > I'm trying to make queries against a remote MS SQL Server from =20 > Python 2.4.2 on > Gentoo Linux and I understand (for good or ill) that the Sybase =20 > module for > Python is an effective and non-instrusive (as far as the server =20 > side goes) > way to do that. > > I have installed FreeTDS 0.62.3 via Gentoo ebuild and I re-emerged =20 > 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=3D62 -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 =20= > problem's > solution but the only thing I've been able to really mess with is =20 > 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 =20= > xappdefaults > > I installed Sybase Express Edition for Linux in hopes of obtaining =20 > 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 =20= > an ODBC > route? > > Thanks, > Jeff > > > _______________________________________________ > Python-sybase mailing list > Pyt...@ww... > https://www.object-craft.com.au/cgi-bin/mailman/listinfo/python-sybase > |