[Pythonmac-SIG] py2app query from a naif
I'm trying to get py2app working so I can distribute a python application I've written for OS-X. I finally succeeded in getting py2app to run to completion with no errors, and it produces an output bundle with the right name and a cute icon. The recipe for success in getting that far was to override python 2.6's default behavior in OS X and force it to run in 32-bit mode using the defaults write. command in Apple's python man page. However, the output .app runs ONLY on the system on which it was created. Taking it to another OS-X box (also Intel architecture, also running the same level of OS X (10.6.3), and also running python2.6, but as it came from Apple (still 64-bit default), the .app won't run. The error message in the system log isn't crystal clear - at least to me. It is (this is a direct cut and paste) : 5/27/10 1:25:48 PM EthernetError[5822] A Python runtime could be located. You may need to install a framework build of Python, or edit the PyRuntimeLocations array in this application's Info.plist file where EthernetError is the name of the application bundle that I'm trying to launch. The error message does indeed say A Python runtime could be located (which I'd not think represented an error). When I look at the plist file I see: keyPyRuntimeLocations/key array string@executable_path/../Frameworks/Python.framework/Versions/2.6/Python/string string/System/Library/Frameworks/Python.framework/Versions/2.6/Python/string /array which looks ok, at least to me (who doesn't know what to look for). I'm guessing that the error message should have been: A Python runtime could NOT be located. Since the output bundle that py2app created was only 283kB (which seems small to me if it really contains a universal binary of the python interpreter), this would be sort of self-consistent. I know from reading other py2app exchanges on this list that I can't distribute Apple's binary, and eventually I'll have to replace it with one from python.org, but I'd like to get py2app running before I tackle that hurdle. What am I missing? Can anyone please help? Thanks, Bill ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG
[Pythonmac-SIG] Python 3. OS/X 10.6 Ipython
I am trying to get IPython running with Python 3.1 on OS/X 10.6.3. The install script for IPython configures it to run with Python 2.6. Is there a way around this? ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG
Re: [Pythonmac-SIG] py2app query from a naif
William R. Wing (Bill Wing) wrote: I know from reading other py2app exchanges on this list that I can't distribute Apple's binary, and eventually I'll have to replace it with one from python.org, but I'd like to get py2app running before I tackle that hurdle. What am I missing? Can anyone please help? partly because of the re-distribution issue, Py2app is set up NOT to bundle Apple's Python, so trying to get py2app working with Apple's python is a waste of time, if what you want is a bundle with Python included. If you want a re-distributable app bundle, install the Python2.6 from Python org, install all the packages you need, get your app running there, install py2app into that Python, then build away. That's really the way to do it. -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/ORR(206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception chris.bar...@noaa.gov ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG
[Pythonmac-SIG] Py2App Problems
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