These libraries you are attempting to import are Python standard library modules. To import them you must have the Python standard library available - and on sys.path for the engine being used to do the imports.

You set sys.path programattically using engine.SetSearchPaths (?) passing in an array of strings.

All the best,

Michael Foord

BlackMan890 wrote:
Hi there.

this has probably been answered before but I cant seem to find the answer.
When I run "import time" in python through IronPython using C#, an exception
occurs with the message: "no module named time".
The same thing happens when I run "import threading" except with a different
exception: "No module named thread"

Why am I encountering there problems?


Sincerely:
Jonatan Nilsson
Iceland




--
http://www.ironpythoninaction.com/

_______________________________________________
Users mailing list
Users@lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Reply via email to