module "random" not found when building .exe from IronPython 2.6 script

Posted by Graham on Stack Overflow See other posts from Stack Overflow or by Graham
Published on 2010-06-06T14:38:25Z Indexed on 2010/06/06 14:42 UTC
Read the original article Hit count: 300

Filed under:
|
|
|

I am using SharpDevelop to build an executable from my IronPython script. The only hitch is that my script has the line import random which works fine when I run the script through ipy.exe, but when I attempt to build and run an exe from the script in SharpDevelop, I always get the message:

IronPython.Runtime.Exceptions.ImportException: No module named random

Why isn't SharpDevelop 'seeing' random? How can I make it see it?

© Stack Overflow or respective owner

Related posts about python

Related posts about random