Python Module and Sybase
"Bobby Pejman" <[email protected]> Tue, 29 May 2007 16:53:48 -0700
| Newsgroups | gmane.comp.python.sybase |
|---|---|
| Message-ID | <[email protected]> |
--===============0398965999==
Content-Type: multipart/alternative;
boundary="----=_Part_148890_8317419.1180482828691"
------=_Part_148890_8317419.1180482828691
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Hi all,
I'm running into a small problem while trying to import Sybase module in
python. I've downloaded and installed FreeTDS v0.64 and python-sybase
v0.38on my Ubuntu. I followed other posts and did the following:
=> FreeTDS:
# ./configure --disable-odbc --disable-libiconv
--enable-sybase-compat --prefix=/usr/local/freetds
# make; make install; make clean
=> Sybase python module
# export SYBASE=/usr/local/freetds
# python setup.py build_ext -D HAVE_FREETDS
However, when I try to import the Sybase module in Python v2.5.1, I'm
getting the following error:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python2.5/site-packages/Sybase.py", line 10, in ?
from sybasect import *
ImportError: libct.so.4: cannot open shared object file: No such file or
directory
I have also added "include /usr/local/freetds/lib" to "/etc/ld.so.conf" and
running "ldconfig" AND
LD_LIBRARY_PATH=/usr/local/lib python -ic "import Sybase" but still no
luck.
Can anyone help me out? Am I missing something? I see that the file
libct.so.4 is under /usr/local/freetds/lib directory but I don't know how to
make python realize it's there. I think it's a library linking issue.
Any help will be much appreciated!!! Thanks everyone.
------=_Part_148890_8317419.1180482828691
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Hi all,<br><br>I'm running into a small problem while trying to import Sybase module in python. I've downloaded and installed FreeTDS v0.64 and python-sybase v0.38 on my Ubuntu. I followed other posts and did the following:
<br><br><span style="font-weight: bold;">=> FreeTDS:</span><br> # ./configure --disable-odbc --disable-libiconv<br>--enable-sybase-compat --prefix=/usr/local/freetds<br> # make; make install; make clean<br><br><span style="font-weight: bold;">
=> Sybase python module</span><br> # export SYBASE=/usr/local/freetds<br> # python setup.py build_ext -D HAVE_FREETDS<br><br>However, when I try to import the Sybase module in Python v2.5.1, I'm getting the following error:
<br><br>Traceback (most recent call last):<br> File "<stdin>", line 1, in <module><br> File "/usr/lib/python2.5/site-packages/Sybase.py", line 10, in ?<br> from sybasect import *<br>ImportError:
libct.so.4: cannot open shared object file: No such file or directory<br><br>I have also added "include /usr/local/freetds/lib" to "/etc/ld.so.conf" and running "ldconfig" AND <br>LD_LIBRARY_PATH=/usr/local/lib python -ic "import Sybase" but still no luck.
<br><br>Can anyone help me out? Am I missing something? I see that the file libct.so.4 is under /usr/local/freetds/lib directory but I don't know how to make python realize it's there. I think it's a library linking issue.
<br><br>Any help will be much appreciated!!! Thanks everyone.<br>
------=_Part_148890_8317419.1180482828691--
--===============0398965999==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
Python-sybase mailing list
[email protected]
https://www.object-craft.com.au/cgi-bin/mailman/listinfo/python-sybase
--===============0398965999==--