Oliver Vecernik wrote:
I recently started testing SAP DB and I use Python for scripting. I downloaded version 7.4.03 for win32. I started IDLE and got following error:
[...]
File "C:\Programme\sapdb\depend\misc\sapdb\sql.py", line 35, in ?You'll have to download the package ftp://ftp.sap.com/pub/sapdb/bin/win/sapdb-python-win32-7.3.00.29.zip.
from python22.sql import *
ImportError: No module named python22.sql
>>>
Where is 'python22.sql'? Am I doing something else wrong? After that I
The server package contains only the files for Python 1.5. The download mentioned above contains versions for 1.5.2, 2.0, 2.1 and 2.2. Never mind that it's a 7.3 package, it will work with a 7.4 database.
downloaded the interfaces for Linux and got following warning (DB still on W2k box, interfaces installed on Debian/Woody):There's a similar package ftp://ftp.sap.com/pub/sapdb/bin/linux/sapdb-python-linux-i386-7.3.00.29.tgz for Linux where this warning shouldn't appear. Modules compiled for Python 2.* also allow handling of Unicode data.
WARNING: Python C API version mismatch for module sql:
This Python has API version 1010, module sql has version 1007.
But at least I was able to retrieve some data.
Besides of this I couldn't find any further docs (besides 'http://www.sapdb.org/sapdbapi.html'). Are there any examples or other infos (like a tutorial, hints, ...) somewhere?There are some examples for the proprietary interface sapdb.sql. Of interest would be the handling of LONG columns, because this is the same for both interfaces:
- http://www.sapdb.org/7.4/sqlPython.html#LONG%20values
- http://www.sapdb.org/7.4/longtest.py.html
Daniel Dittmar
--
Daniel Dittmar
SAP DB, SAP Labs Berlin
[EMAIL PROTECTED]
http://www.sapdb.org
_______________________________________________
sapdb.general mailing list
[EMAIL PROTECTED]
http://listserv.sap.com/mailman/listinfo/sapdb.general
