import Error SWIG extension

Markus von Ehr markus.vonehr at ipm.fhg.de
Tue Sep 10 10:42:12 EDT 2002


Hi again,

I succeeded compiling my extension (done with SWIG) but trying to 
import it I have the following error:

import mvelib
Traceback (most recent call last):
  File "<pyshell#0>", line 1, in ?
    import mvelib
SystemError: _PyImport_FixupExtension: module mvelib not loaded


I tried compiling the elemlist example from Alex Martelli (it's
made without SWIG) and it works.

I copied both of the extensions in my python home dir, so the
problem has to be in the code?
I had to rename the init_mvelib function to initmvelib that
disutils have been able to compile it.
Is it possible that the error is in the init function?

Anybody knows the cause of the error?

Markus



More information about the Python-list mailing list