'import time' fails when embedding

D

David McNab

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,774
Messages
2,569,596
Members
45,142
Latest member
DewittMill
Top