RE: Python error during build of 7.4.3.10

Wolfgang Rosenauer <[email protected]> Wed, 5 Mar 2003 13:15:07 +0100 (CET)
Newsgroups gmane.comp.db.sapdb.sources
Organization SuSE Linux AG
Message-ID <1091904738.1046866507964.JavaMail.comfire@extimap>
Hi,

Dittmar  Daniel <[email protected]> schrieb am 05.03.2003 10:47:

> > PYTHONPATH=$INSTMISC python -c "import sapdb.sql"
> > [...]
> > ImportError: No module named python22.sql
> > (the same for sapdb.loader)
> 
> The result after the build should be something like this
> usr/misc
> [...]

that's all here
 
> 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.

I've interpreted it that way (but no real python knowledge :-()

> 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.

that's interesting.
__init__.py is there as all other files you mentioned and if I run
  python -c "import sapdb.pythondef.sql" 
it doesn't throw an error. So I don't understand what the problem is.

It seems that some files are created too late for this first call?

Later in the build log there is:
sapdb_python__init__.py  fast  ascii
which calls some imports and exits successful.

The target which includes the error is
sapdb__init__.py  fast  ascii
sqlpy.mac

There is also another "import sapdb.sql" call which is successful. So I suspect that the build was successful in the end?

Strange???

Thanks,
 Wolfgang