[ZODB-Dev] _PyImport_FixupExtension: module ZODB.TimeStamp not loaded

Guido van Rossum guido@python.org
Sun, 06 Oct 2002 07:46:51 -0400


> In ZODB3, CVS HEAD. Had a quick look but couldn't find out why this is
> happening. Was this caused my the branch merge, perhaps?
> 
> blackjesus% python
> Python 2.1.1 (#5, Aug 23 2001, 01:38:34) 
> [GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2
> Type "copyright", "credits" or "license" for more information.
> >>> import ZODB
> Traceback (most recent call last):
>   File "<stdin>", line 1, in ?
>   File "/usr/local/lib/python2.1/site-packages/ZODB/__init__.py", line 18, in ?
>     import cPersistence, Persistence
> SystemError: _PyImport_FixupExtension: module ZODB.TimeStamp not loaded

Does it also do this with Python 2.1.3?  I've tested with 2.1.3, 2.2
and 2.3, and I didn't see this.

I made a change in cPersistence.c: PyImport_Import() is now called
with ZODB.TimeStamp rather than TimeStamp as the argument, to avoid
relative imports from inside extensions, which doesn't work when
__import__ is redefined in Python -- this made it impossible to use
pychecker.

But I've not seen your SystemError.

--Guido van Rossum (home page: http://www.python.org/~guido/)