python - Issue with building standalone PyQT Application on Mac OSX -


i trying build simple pyqt application using pyinstaller. following code:

import sys pyqt4.qtgui import qapplication, qmessagebox  def main():     print "hello"     = qapplication(sys.argv)     m = qmessagebox(qmessagebox.information, "title", "hello")     m.exec_()  if __name__=="__main__":     main() 

i used following command generate specfile:

python utils/makespec.py scigraph/main.py 

i got following output:

→ python utils/makespec.py scigraph/main.py wrote /users/vessilli/desktop/untitled folder/pywork/pyinstaller-2.1/main/main.spec run pyinstaller.py build executable 

then ran code:

python pyinstaller.py --windowed main/main.spec 

and found following error message:

→ python pyinstaller.py --windowed main/main.spec 51 warning: running 64-bit python: created binaries work on mac os x 10.6+. if need 10.4-10.5 compatibility, run python 32-bit binary command:  versioner_python_prefer_32_bit=yes arch -i386 /users/vessilli/library/enthought/canopy_64bit/user/bin/python  4062 info: upx not available. 4096 info: processing hook hook-os 4253 info: processing hook hook-time 4311 info: processing hook hook-_sre 4354 info: processing hook hook-cstringio 4367 info: processing hook hook-codecs 4383 info: processing hook hook-encodings 5107 info: processing hook hook-cpickle 5283 info: extending pythonpath /users/vessilli/desktop/untitled folder/pywork/pyinstaller-2.1/scigraph 5284 info: checking analysis 5284 info: building analysis because out00-analysis.toc non existent 5284 info: running analysis out00-analysis.toc 5309 info: analyzing /users/vessilli/desktop/untitled folder/pywork/pyinstaller-2.1/pyinstaller/loader/_pyi_bootstrap.py 5334 info: processing hook hook-os 5362 info: processing hook hook-site 5387 info: processing hook hook-encodings 5531 info: processing hook hook-time 5587 info: processing hook hook-_sre 5625 info: processing hook hook-cstringio 5640 info: processing hook hook-codecs 6325 info: processing hook hook-cpickle 6539 info: processing hook hook-pydoc 6741 info: processing hook hook-email 6822 info: processing hook hook-httplib 6869 info: processing hook hook-email.message 7284 info: analyzing /users/vessilli/desktop/untitled folder/pywork/pyinstaller-2.1/pyinstaller/loader/pyi_importers.py 7371 info: analyzing /users/vessilli/desktop/untitled folder/pywork/pyinstaller-2.1/pyinstaller/loader/pyi_archive.py 7445 info: analyzing /users/vessilli/desktop/untitled folder/pywork/pyinstaller-2.1/pyinstaller/loader/pyi_carchive.py 7519 info: analyzing /users/vessilli/desktop/untitled folder/pywork/pyinstaller-2.1/pyinstaller/loader/pyi_os_path.py 7527 info: analyzing scigraph/main.py 7538 error: cannot find qt_menu.nib directory 7538 info: processing hook hook-pyqt4 7540 info: processing hook hook-pyqt4.qtgui 8166 info: processing hook hook-pyqt4.qtcore 8268 info: hidden import 'codecs' has been found otherwise 8268 info: hidden import 'encodings' has been found otherwise 8268 info: looking run-time hooks 8269 info: analyzing rthook /users/vessilli/desktop/untitled folder/pywork/pyinstaller-2.1/pyinstaller/loader/rthooks/pyi_rth_qt4plugins.py 8392 error: can not find path ./lib/qtcore.framework/versions/4/qtcore (needed /users/vessilli/library/enthought/canopy_64bit/user/lib/python2.7/site-packages/pyqt4/qtcore.so) 8463 error: can not find path ./lib/qtcore.framework/versions/4/qtcore (needed /users/vessilli/library/enthought/canopy_64bit/user/lib/python2.7/site-packages/pyqt4/qtgui.so) 8463 error: can not find path ./lib/qtgui.framework/versions/4/qtgui (needed /users/vessilli/library/enthought/canopy_64bit/user/lib/python2.7/site-packages/pyqt4/qtgui.so) 8634 info: using python library /users/vessilli/library/enthought/canopy_64bit/user/bin/python 8672 info: warnings written /users/vessilli/desktop/untitled folder/pywork/pyinstaller-2.1/main/build/main/warnmain.txt 8684 info: checking pyz 8684 info: rebuilding out00-pyz.toc because out00-pyz.pyz missing 8684 info: building pyz (zlibarchive) out00-pyz.toc 10044 info: checking pkg 10045 info: rebuilding out00-pkg.toc because out00-pkg.pkg missing 10045 info: building pkg (carchive) out00-pkg.pkg traceback (most recent call last):   file "pyinstaller.py", line 18, in <module>     run()   file "/users/vessilli/desktop/untitled folder/pywork/pyinstaller-2.1/pyinstaller/main.py", line 88, in run     run_build(opts, spec_file, pyi_config)   file "/users/vessilli/desktop/untitled folder/pywork/pyinstaller-2.1/pyinstaller/main.py", line 46, in run_build     pyinstaller.build.main(pyi_config, spec_file, **opts.__dict__)   file "/users/vessilli/desktop/untitled folder/pywork/pyinstaller-2.1/pyinstaller/build.py", line 1924, in main     build(specfile, kw.get('distpath'), kw.get('workpath'), kw.get('clean_build'))   file "/users/vessilli/desktop/untitled folder/pywork/pyinstaller-2.1/pyinstaller/build.py", line 1873, in build     execfile(spec)   file "main/main.spec", line 15, in <module> console=true )   file "/users/vessilli/desktop/untitled folder/pywork/pyinstaller-2.1/pyinstaller/build.py", line 1170, in __init__     strip_binaries=self.strip, upx_binaries=self.upx,   file "/users/vessilli/desktop/untitled folder/pywork/pyinstaller-2.1/pyinstaller/build.py", line 1008, in __init__     self.__postinit__()   file "/users/vessilli/desktop/untitled folder/pywork/pyinstaller-2.1/pyinstaller/build.py", line 309, in __postinit__     self.assemble()   file "/users/vessilli/desktop/untitled folder/pywork/pyinstaller-2.1/pyinstaller/build.py", line 1069, in assemble     archive.build(self.name, mytoc)   file "/users/vessilli/desktop/untitled folder/pywork/pyinstaller-2.1/pyinstaller/loader/pyi_archive.py", line 217, in build     self._finalize()   file "/users/vessilli/desktop/untitled folder/pywork/pyinstaller-2.1/pyinstaller/loader/pyi_carchive.py", line 191, in _finalize     self.save_cookie(toc_pos)   file "/users/vessilli/desktop/untitled folder/pywork/pyinstaller-2.1/pyinstaller/loader/pyi_carchive.py", line 367, in save_cookie     tocpos, self.toclen, pyvers, self._pylib_name) struct.error: argument 's' must string 

i runningmac osx 10.9.4. python version info is:

enthought canopy python 2.7.3 | 64-bit | (default, aug  8 2013, 05:37:06) [gcc 4.2.1 (apple inc. build 5666) (dot 3)] on darwin type "help", "copyright", "credits" or "license" more information. 

did faced such problem? tips or suggestion appreciable.


Comments

Popular posts from this blog

javascript - how to protect a flash video from refresh? -

android - Associate same looper with different threads -

visual studio 2010 - Connect to informix database windows form application -