py2exe crashes on simple program
John Nagle
nagle at animats.com
Tue Jul 5 00:06:38 EDT 2016
I'm trying to create an executable with py2exe.
The program runs fine in interpretive mode. But
when I try to build an executable, py2exe crashes with
an assertion error. See below.
This is an all-Python program; no binary modules
other than ones that come with the Python 3.5.2
distribution. Running "python setup.py bdist"
works, so "setup.py" is sane. What's giving
py2exe trouble?
U:\>python setup.py py2exe
running py2exe
running build_py
Building shared code archive 'dist\library.zip'.
Traceback (most recent call last):
File "setup.py", line 14, in <module>
packages=['baudotrss'],
File "C:\Program Files\Python35\lib\distutils\core.py", line 148, in setup
dist.run_commands()
File "C:\Program Files\Python35\lib\distutils\dist.py", line 955, in
run_commands
self.run_command(cmd)
File "C:\Program Files\Python35\lib\distutils\dist.py", line 974, in
run_command
cmd_obj.run()
File "C:\Program
Files\Python35\lib\site-packages\py2exe\distutils_buildexe.py", line
188, in run
self._run()
File "C:\Program
Files\Python35\lib\site-packages\py2exe\distutils_buildexe.py", line
268, in _run
builder.build()
File "C:\Program Files\Python35\lib\site-packages\py2exe\runtime.py",
line 261, in build
self.build_archive(libpath, delete_existing_resources=True)
File "C:\Program Files\Python35\lib\site-packages\py2exe\runtime.py",
line 426, in build_archive
assert mod.__file__.endswith(EXTENSION_SUFFIXES[0])
AssertionError
Python 3.5.2 / Win7 / AMD64.
John Nagle
More information about the Python-list
mailing list