cancel
Showing results for 
Search instead for 
Did you mean: 

MaxDB Python Module

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

lbreddemann
Active Contributor
0 Kudos

Hi there,

what Python do you use?

I just tried out the examples you gave with the x_python that comes with MaxDB (python 2.3) and had no problems whatsoever.

In fact, python is heavily used with the MaxDB (e.g. loading system tables), so I doubt, that it's really the MaxDB python module what causes the trouble here.

BTW: the db releases you use are very old. A much more recent patch is available for download here in SDN.

KR Lars

Former Member
0 Kudos

Hi,

I use my own Python installation and not the "old" and "special" one that comes with MaxDB installation!

My Python version is 2.5.2 and my MaxDB version is 7.6.03.15 (this should not play a role anyway!).

The version number in my first posting refers to the version number of MaxDB python module

which I have installed in site-packages directory of my Python installation.

This is the latest version that can be downloaded from SAP ftp site!

Regards

M. Nikbakht