From: Hugo B. <hug...@gm...> - 2004-12-14 08:08:15
|
Hi there, I have just installed FreeTDS and it is working perfectly when I test it usign tsql accessing a remote SQL Server 2000. Then I installed the python-sybase module. But when I try to test with a python code, it returns me an error in the very first command, "import Sybase". The error is: -------------------------- Traceback (most recent call last): File "teste.py", line 4, in ? import Sybase File "/usr/lib/python2.3/site-packages/Sybase.py", line 20, in ? from sybasect import * ImportError: /usr/lib/python2.3/site-packages/sybasect.so: undefined symbol: cs_dt_info -------------------------- The output of the command "ldd /usr/lib/python2.3/site-packages/sybasect.so= " is: -------------------------- libpthread.so.0 =3D> /lib/tls/libpthread.so.0 (0x00f0c000) libc.so.6 =3D> /lib/tls/libc.so.6 (0x00111000) /lib/ld-linux.so.2 =3D> /lib/ld-linux.so.2 (0x0044a000) -------------------------- Can anybody help me ? Thanks. :) --=20 Hugo. ---------------------------------------------------------------------------= ------ "Do rio que tudo arrasta se diz que =E9 violento Mas ningu=E9m diz violentas as margens que o oprimem" Bertold Brecht - Sobre a viol=EAncia ---------------------------------------------------------------------------= ------ |
From: Hugo B. <hug...@gm...> - 2004-12-14 08:38:22
|
Sorry, I tried to install again, and now the error is different: ----------------------- Traceback (most recent call last): File "teste.py", line 4, in ? import Sybase File "/usr/lib/python2.3/site-packages/Sybase.py", line 20, in ? from sybasect import * ImportError: libct.so.2: cannot open shared object file: No such file or directory ----------------------- The output for "ldd /usr/lib/python2.3/site-packages/sybasect.so" is: ----------------------- libct.so.2 =3D> not found libpthread.so.0 =3D> /lib/tls/libpthread.so.0 (0x00a03000) libc.so.6 =3D> /lib/tls/libc.so.6 (0x00374000) /lib/ld-linux.so.2 =3D> /lib/ld-linux.so.2 (0x00929000) ----------------------- But the file "libct.so.2" is at "/usr/local/lib/". Here is the output for "ll /usr/local/lib/libct.so*": ----------------------- lrwxrwxrwx 1 root root 14 Dez 10 17:20 /usr/local/lib/libct.so -> libct.so.2.0.0 lrwxrwxrwx 1 root root 14 Dez 10 17:20 /usr/local/lib/libct.so.2 -> libct.so.2.0.0 -rwxr-xr-x 1 root root 792901 Dez 10 17:20 /usr/local/lib/libct.so.2.0.0 ----------------------- Thanks for any help! :) --=20 Hugo. ---------------------------------------------------------------------------= ------ "Do rio que tudo arrasta se diz que =E9 violento Mas ningu=E9m diz violentas as margens que o oprimem" Bertold Brecht - Sobre a viol=EAncia ---------------------------------------------------------------------------= ------ On Mon, 13 Dec 2004 13:08:12 +0000, Hugo Barbosa <hug...@gm...> w= rote: > Hi there, >=20 > I have just installed FreeTDS and it is working perfectly when I test > it usign tsql accessing a remote SQL Server 2000. Then I installed the > python-sybase module. But when I try to test with a python code, it > returns me an error in the very first command, "import Sybase". The > error is: >=20 > -------------------------- > Traceback (most recent call last): > File "teste.py", line 4, in ? > import Sybase > File "/usr/lib/python2.3/site-packages/Sybase.py", line 20, in ? > from sybasect import * > ImportError: /usr/lib/python2.3/site-packages/sybasect.so: undefined > symbol: cs_dt_info > -------------------------- >=20 > The output of the command "ldd /usr/lib/python2.3/site-packages/sybasect.= so" is: >=20 > -------------------------- > libpthread.so.0 =3D> /lib/tls/libpthread.so.0 (0x00f0c000) > libc.so.6 =3D> /lib/tls/libc.so.6 (0x00111000) > /lib/ld-linux.so.2 =3D> /lib/ld-linux.so.2 (0x0044a000) > -------------------------- >=20 > Can anybody help me ? Thanks. :) >=20 > -- > Hugo. >=20 > -------------------------------------------------------------------------= -------- > "Do rio que tudo arrasta se diz que =E9 violento > Mas ningu=E9m diz violentas as margens que o oprimem" >=20 > Bertold Brecht - Sobre a viol=EAncia > -------------------------------------------------------------------------= -------- > |
From: Andrew M. <an...@ob...> - 2004-12-14 21:44:13
|
> File "/usr/lib/python2.3/site-packages/Sybase.py", line 20, in ? > from sybasect import * >ImportError: libct.so.2: cannot open shared object file: No such file >or directory >----------------------- > >The output for "ldd /usr/lib/python2.3/site-packages/sybasect.so" is: > >----------------------- > libct.so.2 => not found > libpthread.so.0 => /lib/tls/libpthread.so.0 (0x00a03000) > libc.so.6 => /lib/tls/libc.so.6 (0x00374000) > /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x00929000) >----------------------- > >But the file "libct.so.2" is at "/usr/local/lib/". Here is the output >for "ll /usr/local/lib/libct.so*": You might want to try: LD_LIBRARY_PATH=/usr/local/lib python -ic "import Sybase" -- Andrew McNamara, Senior Developer, Object Craft http://www.object-craft.com.au/ |