Hello,
I have to create an executable for GUI based application which contains
files in following directory structure.
*directory structure*
my_app
__main__.py
app_data
app_ui
zope.interface-4.1.1.win32-py2.7.exe
My code has dependency of zope interface other modules.
*Commands executed(inside my_app directory)*
c:\Python27\Scripts\pyinstaller-script.py --onefile __main__.py
c:\Python27\Scripts\pyinstaller-script.py __main__.spec
Above commands have generated .exe, but on clicking it gives following
*error*:
* ImportError*: Twisted requires zope.interface 3.6.0 or later: no
module named zope.interface.
*__main__.spec*
# -*- mode: python -*-
a = Analysis(['__main__.py'],
pathex=['X:\\path\\to\\my_app'],
hiddenimports=[],
hookspath=None,
runtime_hooks=None)
pyz = PYZ(a.pure)
exe = EXE(pyz,
Tree('../my_app', prefix='my_app'),
a.scripts,
a.binaries,
a.zipfiles,
a.datas,
name='__main__.exe',
debug=False,
strip=None,
upx=True,
console=True )
How to correct this so that it includes zope.interface inside .exe ? I also
tried to use zope.interface files(extracted tar.gz) instead of zope exe but
still it gives error.
I have also posted this question on StackOverflow
<http://stackoverflow.com/q/24780932/3291873?sgp=2> but its unanswered.
--
You received this message because you are subscribed to the Google Groups
"PyInstaller" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/pyinstaller.
For more options, visit https://groups.google.com/d/optout.