problem with python-sybase 0.37 and OCS 15.0

Tara Hernandez <[email protected]> Thu, 12 Oct 2006 10:39:44 -0700
Newsgroups gmane.comp.python.sybase
Message-ID <[email protected]>
We have been running 0.36 against OCS 12.5 libraries on Fedora for a 
while with no problem, but only with a 32 bit configuration.  We finally 
got 64 bit libraries via a new Sybase OCS 15.0 package , and once I 
patched up the setup.py to use the correct libraries, everything built 
out and I was able to do an "import Sybase".

However, if I actually try to make a connection to the db, I get a 
really weird error that I don't understand (obviously this works with 
the old setup):

test code:

import os
os.putenv('SYBASE','/usr/sybase')
import Sybase
user = 'hitech'
password = 'hitech'
conn = Sybase.connect('DBSERVER',user,password,auto_commit=1)

error:

Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File 
"/var/tmp/python-sybase-root/pixar/d2/sets/tools-31/lib/python2.4/site-packages/Sybase.py", 
line 1005, in connect
    strip, auto_commit, delay_connect, locking)
  File 
"/var/tmp/python-sybase-root/pixar/d2/sets/tools-31/lib/python2.4/site-packages/Sybase.py", 
line 867, in __init__
    self.connect()
  File 
"/var/tmp/python-sybase-root/pixar/d2/sets/tools-31/lib/python2.4/site-packages/Sybase.py", 
line 886, in connect
    status = conn.ct_connect(self.dsn)
  File 
"/var/tmp/python-sybase-root/pixar/d2/sets/tools-31/lib/python2.4/site-packages/Sybase.py", 
line 200, in _servermsg_cb
    raise DatabaseError(_fmt_server(msg))
  File 
"/var/tmp/python-sybase-root/pixar/d2/sets/tools-31/lib/python2.4/site-packages/Sybase.py", 
line 167, in _fmt_server
    _ctx.debug_msg(text)
TypeError: argument 1 must be string without null bytes, not str

Anybody seen anything like this?

Thanks,
-Tara