[IronPython] import issue

Janofsky, Steven Steven.Janofsky at webloyalty.com
Tue Jan 27 20:14:31 CET 2009

Does anyone know why the following gives 'No module named re' error:


ScriptEngine engine = IronPython.Hosting.Python.CreateEngine();

ScriptScope scope = engine.CreateScope();

ScriptSource src = engine.CreateScriptSourceFromString( "import re",
Microsoft.Scripting.SourceCodeKind.Statements );

src.Execute( scope );

This transmission may contain information that is privileged, confidential and exempt from disclosure under applicable law.  If you, users at lists.ironpython.com, are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein (including any reliance thereon) is STRICTLY PROHIBITED.  If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20090127/752757c1/attachment.html>

More information about the Ironpython-users mailing list