[Python.NET] ImportError: No module named System when running .exe created by py2exe
Sam Ling
Sam_Ling at bio-rad.com
Tue Feb 4 02:15:04 CET 2014
Hey, Dear.
I used py2exe to build .exe application for the program. When I ran the
.exe , there is ImportError: No module named System.
In python script , I used Python for .NET package.
"
from System import *
from System import String
"
It's working properly, if running directly from the script
(python2.7+win7). But it failed if running .exe created by py2exe.
Could anyone help?
Appreciate it very much.
Sam
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pythondotnet/attachments/20140203/0b72254e/attachment.html>
More information about the PythonDotNet
mailing list