FAQ Database Discussion Community

py2exe fails with “No module named 'clr'” when trying to build exe from script using pythonnet

I created a python script that uses pythonnet. The script is in a file named main.py. When I run the script from the command line (simply typing main.py at the Windows command prompt), the imported pythonnet module clr works fine. But when I try to build an exe I get...