python sybase errors

Josh Close narshe at gmail.com
Fri Jul 30 10:31:11 EDT 2004


I'm getting these errors almost every time I use sybase. I'm using it
with mssql. I build it like so:

python setup.py build_ext -D WANT_THREADS -D HAVE_FREETDS -U WANT_BULKCOPY
python setup.py install

and I'm getting these errors:

Traceback (most recent call last):
File "./check_mx.py", line 69, in ?
  results = [ R(row) for row in cursor.fetchall() ]
File "/usr/lib/python2.3/site-packages/Sybase.py", line 733, in fetchall
  return self._fetcher.fetchall()
File "/usr/lib/python2.3/site-packages/Sybase.py", line 517, in fetchall
  row = self.fetchone()
File "/usr/lib/python2.3/site-packages/Sybase.py", line 467, in fetchone
  self._fetch_rowcount()
File "/usr/lib/python2.3/site-packages/Sybase.py", line 592, in _fetch_rowcount
  self._raise_error(Error, 'ct_results')
File "/usr/lib/python2.3/site-packages/Sybase.py", line 432, in _raise_error
  raise exc(text)
Error: ct_results

This happens all the time.

I've also got this:

Exception Sybase.DatabaseError: <Sybase.DatabaseError instance at
0x409a702c> in <bound method _FetchLazy.__del__ of <Sybase._FetchLazy
instance at 0x40d890ac>> ignored

If I limit the row size to 50,000, I don't get the second error.

Anyone know what's going on?

-Josh



More information about the Python-list mailing list