SAP DB and Python
Gandalf
gandalf at geochemsource.com
Thu Nov 27 08:46:51 EST 2003
>
>
>> You can download the right binaries from their website. If you go to:
>> http://www.sapdb.org/7.4/sap_db_downloads.htm
>>
>> At the bottom, you will see an row in the download table called
>> "Python".
>> That's the one you need.
>>
>> Cheers,
>>
>> pieter
>
Downloaded, installed.
>>> from sapdb import dbapi
>>> dbapi.connect
<class sapdb.dbapi.Connection at 0x00951D20>
>>> conn = dbapi.connect('dba','dba','Demo')
Traceback (most recent call last):
File "D:\Python\Projects\Test\test.py", line 2, in ?
conn = dbapi.connect('dba','dba','Demo')
File "D:\Python23\lib\sapdb\dbapi.py", line 102, in __init__
database, host, configString)
File "D:\Python23\lib\sapdb\dbapi.py", line 60, in wrapCall
raise ProgrammingError (err)
sapdb.dbapi.ProgrammingError: sql.SQLError: [-8000] (at 1) Message not
available
Exception exceptions.AttributeError: "Connection instance has no
attribute '_Connection__connection'" in <bound method Connection.close
of <sapdb.dbapi.Connection instance at 0x009498F0>> ignored
Any ideas?
Laci 1.0
More information about the Python-list
mailing list