Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

MaxDB Python Module

I played around with MaxDB python module (version 7.6.00.37 and 7.6.00.34) on Windows XP/python 2.5

and unfortunately discovered that it has a very non deterministic behaviour and some serious problems!

I tried the following and got a memory violation:

import sdb.dbapi
conn = sdb.dbapi.connect("james", "bond", "mydb") 

The next time I got

import sdb.dbapi
conn = sdb.dbapi.connect("james", "bond", "mydb")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "D:\programs\Python\lib\site-packages\sdb\dbapi.py", line 110, in __init__
    database, host, configString)
  File "D:\programs\Python\lib\site-packages\sdb\dbapi.py", line 61, in wrapCall
    raise ProgrammingError (err)
sdb.dbapi.ProgrammingError

By exiting this session I got a memory violation!

I have then tried

import sdb.sql
conn = sdb.sql.connect("james", "bond", "mydb")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
sql.SQLError

By exiting this session I got a memory violation again:-(

Is there any newer version of this module with fewer bugs?!

Is there a python 2.6 version of this module?

Where can I find the C-headers and libraries which are wrapped

in python module? Maybe a new python wrapper is not a bad idea!

Regards

M. Nikbakht

Not what you were looking for? View more on this topic or Ask a question