Importing modules in embedded Python

Marcin Krol mrkafk at gmail.com
Wed Jul 2 12:01:33 EDT 2008


OK I found the answer in yet another Google search, right after
I gave up and posted here - turns out in order to import dynamically
linked modules, one has to pass -E argument to the linker.


> Exception exceptions.ImportError: 
> '/usr/lib/python2.4/lib-dynload/timemodule.so: undefined symbol: 
> PyModule_AddObject' in 'garbage collection' ignored
> Fatal Python error: unexpected exception during garbage collection
> Aborted




More information about the Python-list mailing list