'import time' fails when embedding

David McNab david at rebirthing.co.nz
Mon Dec 8 22:35:16 EST 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

I'm working on a python plugin for someone else's code written in C.

On the whole, I'm successfully embedding the python interpreter,
importing the python module, creating python classes and using their
methods.

But when I added 'import time' to my python module, I got the error:
line 27, in ?
~    import sys, os, stat, traceback, thread, time
ImportError: /usr/lib/python2.3/lib-dynload/time.so: undefined symbol:
PyExc_IOError

Is there anything I need to add to the 'link' command for my code so
that the embedded Python can find everything it needs?

- --

Kind regards
David

- --

leave this line intact so your email gets through my junk mail filter
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQE/1UL0UuEuev/PjrcRAubHAJ9TTBvR74a8LD3siUZ8/i3RruEzqgCeNUaf
k63DxDgb/hLuhSog07wfRzg=
=7aGW
-----END PGP SIGNATURE-----






More information about the Python-list mailing list