|
From: Andreas J. <li...@zo...> - 2010-05-10 07:49:33
|
I installed Python 2.4.6 + python-sybase 0.3.9 compiled against FreeTSD
0.8.2 on a standard Linux box.
conn = connect(....)
cursor = conn.cursor()
cursor.execute('select "D_DID" from Dienstangaben')
for row in cursor.fetchall():
print row
fails badly:
File "test.py", line 5, in ?
cursor.execute('select "D_DID" from Dienstangaben')
File
"/root/python-sybase-0.39/lib/python2.4/site-packages/python_sybase-0.39-py2.4-linux-x86_64.egg/Sybase.py",
line 546, in execute
self._start()
File
"/root/python-sybase-0.39/lib/python2.4/site-packages/python_sybase-0.39-py2.4-linux-x86_64.egg/Sybase.py",
line 695, in _start
return self._mainloop()
File
"/root/python-sybase-0.39/lib/python2.4/site-packages/python_sybase-0.39-py2.4-linux-x86_64.egg/Sybase.py",
line 728, in _mainloop
self._row_result()
File
"/root/python-sybase-0.39/lib/python2.4/site-packages/python_sybase-0.39-py2.4-linux-x86_64.egg/Sybase.py",
line 767, in _row_result
count = self._fetch_rows(self._bufs, logical_result)
File
"/root/python-sybase-0.39/lib/python2.4/site-packages/python_sybase-0.39-py2.4-linux-x86_64.egg/Sybase.py",
line 681, in _fetch_rows
rows.append(_extract_row(bufs, 0, self.outputmap))
File
"/root/python-sybase-0.39/lib/python2.4/site-packages/python_sybase-0.39-py2.4-linux-x86_64.egg/Sybase.py",
line 289, in _extract_row
row[col] = _column_value(buf[n], buf.datatype, outputmap)
TypeError: unknown data format
How to proceed?
Andreas
|