SAP DB and Python

Daniel Dittmar daniel.dittmar at sap.com
Thu Nov 27 09:45:58 EST 2003


Pieter Claerhout wrote:
> If you download the SAP DB Python modules, under the sapdb package
> directory, you will find different subfolders called python15,
> python20, python21, python22 and python23. To get it working, you
> should rename the folder that corresponds to your python to
> pythondef. Then, try to reimport the sapdb package and all should be
> working fine.

Well, it should work the way it is distributed. The idea is that
sapdb/sql.py picks the binary from the right subdirectory.

If you want to conserve space because you need only one python version, then
the following layout should also work:

> sapdb
> sapdb\__init__.py
> sapdb\dbapi.py
> sapdb\dbm.pyd
> sapdb\loader.pyd
> sapdb\sql.pyd

This is also advisable if you work with py2exe or something similar.
Otherwise, the tool tries to package the extensions for all the python
versions and then tries to find the matching python runtimes.

Daniel

--
Daniel Dittmar
SAP Labs Berlin
daniel.dittmar at sap.com







More information about the Python-list mailing list