I was using pyinstaller before to try and get my app with twisted as an executable, but I got this error when executing:
Traceback (most recent call last):
I had the same issue with cx_freeze. None of the above solutions seemed to work in my case. For me this solution from here worked :
You need to actually create
zope/__init__.py
as an empty file so that the normal processing
performed by imp.find_module() actually works
Add pkg_resources
to your includes
in your setup.py for cx_Freeze.
Try adding to build_exe_options
a specific include of the subpackage i.e. "includes": ["zope.interface"],
this should force the inclusion of it.
When I add 'pkg_resources' in includes and run the cx_freeze script, I only get these first two lines and it stays here :
running build
running build_exe