Hey, I am having some issues building my program with Py2App. My program makes use of the PyTTSX package (http://pypi.python.org/pypi/pyttsx/1.0). I know there are 2 arguments in Py2App that may need to be used (-i and -p). Since PyTTSX is a package, I first tried the -p parameter. Here is the output for that: running py2app *** using recipe: virtualenv *** *** using recipe: pygame *** *** filtering dependencies *** 581 total 60 filtered 5 orphaned 521 remaining Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/py2app-0.4.3-py2.6.egg/py2app/build_app.py", line 589, in _run self.run_normal() File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/py2app-0.4.3-py2.6.egg/py2app/build_app.py", line 659, in run_normal pkgdirs = self.collect_packagedirs() File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/py2app-0.4.3-py2.6.egg/py2app/build_app.py", line 637, in collect_packagedirs for pkg in self.packages File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/py2app-0.4.3-py2.6.egg/py2app/build_app.py", line 1045, in get_bootstrap bootstrap = imp_find_module(bootstrap)[1] File "build/bdist.macosx-10.3-fat/egg/modulegraph/util.py", line 13, in imp_find_module result = imp.find_module(name, path) ImportError: No module named pyttsx > /Users/MacAdmin/Desktop/RSG/zgp/src/build/bdist.macosx-10.3-fat/egg/modulegraph/util.py(13)imp_find_module() -> result = imp.find_module(name, path) (Pdb)
I'm really unsure why it can't find pyttsx. I can easily import pyttsx, look: >>> import pyttsx >>> pyttsx <module 'pyttsx' from '/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/pyttsx-1.0.egg/pyttsx/__init__.pyc'> After this, I wondered what would happen if I used the -i argument, instead of -p. Here is the output from that: Traceback (most recent call last): File "/Users/MacAdmin/Desktop/RSG/zgp/src/dist/zgp.app/Contents/Resources/__boot__.py", line 137, in <module> _run('zgp.py') File "/Users/MacAdmin/Desktop/RSG/zgp/src/dist/zgp.app/Contents/Resources/__boot__.py", line 134, in _run execfile(path, globals(), globals()) File "/Users/MacAdmin/Desktop/RSG/zgp/src/dist/zgp.app/Contents/Resources/zgp.py", line 18, in <module> main() File "/Users/MacAdmin/Desktop/RSG/zgp/src/dist/zgp.app/Contents/Resources/zgp.py", line 13, in main output.setup() File "output.pyc", line 36, in setup File "build/bdist.macosx-10.6-universal/egg/pyttsx/__init__.py", line 39, in init File "build/bdist.macosx-10.6-universal/egg/pyttsx/engine.py", line 45, in __init__ File "build/bdist.macosx-10.6-universal/egg/pyttsx/driver.py", line 64, in __init__ ImportError: No module named drivers.nsss 2010-05-21 07:08:28.986 zgp[41405:10b] zgp Error 2010-05-21 07:08:29.443 zgp[41405:10b] zgp Error An unexpected error has occurred during execution of the main script ImportError: No module named drivers.nsss I assume I'm supposed to be using the -p argument, can anyone provide some insight as to why it is not working? Thank you in advance. -Ryan ____________________________________________________________ Send any screenshot to your friends in seconds... Works in all emails, instant messengers, blogs, forums and social networks. TRY IM TOOLPACK at http://www.imtoolpack.com/default.aspx?rc=if2 for FREE _______________________________________________ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG