RE: Python error during build of 7.4.3.10
"Dittmar, Daniel" <[email protected]> Wed, 5 Mar 2003 10:47:53 +0100
| Newsgroups | gmane.comp.db.sapdb.sources |
|---|---|
| Message-ID | <B9A2DDA03044D311BBD40008C75D6968147D857A@dewdfx24> |
> I got the following message during build: > > PYTHONPATH=$INSTMISC python -c "import sapdb.sql" > [...] > ImportError: No module named python22.sql > (the same for sapdb.loader) > > That's right. I cannot find python22/sql.py anywhere. The result after the build should be something like this usr/misc ./dbm.py ./loader.py ./repman.py ./sapdb/dbapi.py ./sapdb/dbm.py ./sapdb/loader.py ./sapdb/pythondef/dbmmodule.so ./sapdb/pythondef/loadermodule.so ./sapdb/pythondef/sqlmodule.so ./sapdb/pythondef/__init__.py ./sapdb/sql.py ./sapdb/__init__.py ./sapdbapi.py The script sapdb/sql.py tries to load the extension from pythondef, if that fails, it tries to load from a directory that depends on the python version, in your case python22. So if 'python -c "import sapdb.pythondef.sql" fails and sapdb/pythondef/__init__.py exists, there seems to be a probem with the extension modules. Daniel Dittmar -- Daniel Dittmar SAP DB, SAP Labs Berlin [email protected] http://www.sapdb.org/