[python-sybase] python-sybase module trouble

Alexey Morsov samurai at ricom.ru
Wed Jun 8 19:16:04 EST 2005


Hello,

I'v try to install python-sybase module (verison 0.37). It completelly 
compiled and installed.
but i can't use it because of this:

morsov at router ~ $ python
Python 2.3.3 (#1, Feb  7 2005, 18:57:53)
[GCC 3.3.3 20040412 (ALT Linux, build 3.3.3-alt5)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
 >>> import Sybase
 >>> db = Sybase.connect("***","***","***")
Traceback (most recent call last):
   File "<stdin>", line 1, in ?
   File "/usr/lib/python2.3/site-packages/Sybase.py", line 1005, in connect
     strip, auto_commit, delay_connect, locking)
   File "/usr/lib/python2.3/site-packages/Sybase.py", line 867, in __init__
     self.connect()
   File "/usr/lib/python2.3/site-packages/Sybase.py", line 886, in connect
     status = conn.ct_connect(self.dsn)
   File "/usr/lib/python2.3/site-packages/Sybase.py", line 200, in 
_servermsg_cb
     raise DatabaseError(_fmt_server(msg))
Sybase.DatabaseError: Msg 21, Level 10
TDS: unexpected token 95
 >>>

i'v compile it with Freetds.
environment vars

morsov at router ~ $ echo $SYBASE $LD_LIBRARY_PATH
/usr /usr/lib

with it i'v compiel this module.

tsql and sqsh connect to this database.

Can i fix this somehow ?

-- 
WBR,
Alexey Morsov



More information about the Python-sybase mailing list