This is somehow related to #71 .
The hook for matplotlib looks like this:

How about I am using wxPython for my interface?
This ends up putting "wx" in the list of excluded packages, and of course py2exe bombs out like this:
Traceback (most recent call last):
File "C:\Users\Whatever\MyProject\setup.py", line 1404, in
BuildPy2Exe(architecture)
File "C:\Users\Whatever\MyProject\setup.py", line 739, in BuildPy2Exe
setup(
File "C:\Users\Whatever\python-3.9.10.amd64\lib\site-packages\setuptools_distutils\core.py", line 148, in setup
return run_commands(dist)
File "C:\Users\Whatever\python-3.9.10.amd64\lib\site-packages\setuptools_distutils\core.py", line 163, in run_commands
dist.run_commands()
File "C:\Users\Whatever\python-3.9.10.amd64\lib\site-packages\setuptools_distutils\dist.py", line 967, in run_commands
self.run_command(cmd)
File "C:\Users\Whatever\python-3.9.10.amd64\lib\site-packages\setuptools_distutils\dist.py", line 986, in run_command
cmd_obj.run()
File "C:\Users\Whatever\python-3.9.10.amd64\lib\site-packages\py2exe\distutils_buildexe.py", line 204, in run
self._run()
File "C:\Users\Whatever\python-3.9.10.amd64\lib\site-packages\py2exe\distutils_buildexe.py", line 284, in _run
builder.analyze()
File "C:\Users\Whatever\python-3.9.10.amd64\lib\site-packages\py2exe\runtime.py", line 176, in analyze
mf.import_hook(modname)
File "C:\Users\Whatever\python-3.9.10.amd64\lib\site-packages\py2exe\vendor\modulefinder.py", line 215, in import_hook
q, tail = self.find_head_package(parent, name)
File "C:\Users\Whatever\python-3.9.10.amd64\lib\site-packages\py2exe\vendor\modulefinder.py", line 284, in find_head_package
raise ImportError(f'Module {name} is in the "excludes" list')
ImportError: Module wx is in the "excludes" list
This is somehow related to #71 .
The hook for matplotlib looks like this:
How about I am using wxPython for my interface?
This ends up putting "wx" in the list of excluded packages, and of course py2exe bombs out like this:
Traceback (most recent call last):
File "C:\Users\Whatever\MyProject\setup.py", line 1404, in
BuildPy2Exe(architecture)
File "C:\Users\Whatever\MyProject\setup.py", line 739, in BuildPy2Exe
setup(
File "C:\Users\Whatever\python-3.9.10.amd64\lib\site-packages\setuptools_distutils\core.py", line 148, in setup
return run_commands(dist)
File "C:\Users\Whatever\python-3.9.10.amd64\lib\site-packages\setuptools_distutils\core.py", line 163, in run_commands
dist.run_commands()
File "C:\Users\Whatever\python-3.9.10.amd64\lib\site-packages\setuptools_distutils\dist.py", line 967, in run_commands
self.run_command(cmd)
File "C:\Users\Whatever\python-3.9.10.amd64\lib\site-packages\setuptools_distutils\dist.py", line 986, in run_command
cmd_obj.run()
File "C:\Users\Whatever\python-3.9.10.amd64\lib\site-packages\py2exe\distutils_buildexe.py", line 204, in run
self._run()
File "C:\Users\Whatever\python-3.9.10.amd64\lib\site-packages\py2exe\distutils_buildexe.py", line 284, in _run
builder.analyze()
File "C:\Users\Whatever\python-3.9.10.amd64\lib\site-packages\py2exe\runtime.py", line 176, in analyze
mf.import_hook(modname)
File "C:\Users\Whatever\python-3.9.10.amd64\lib\site-packages\py2exe\vendor\modulefinder.py", line 215, in import_hook
q, tail = self.find_head_package(parent, name)
File "C:\Users\Whatever\python-3.9.10.amd64\lib\site-packages\py2exe\vendor\modulefinder.py", line 284, in find_head_package
raise ImportError(f'Module {name} is in the "excludes" list')
ImportError: Module wx is in the "excludes" list