Discussion:
[Python.NET] ImportError: No module named System when running .exe created by py2exe
Sam Ling
2014-02-04 01:15:04 UTC
Permalink
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

Loading...