Re: [Pythonmac-SIG] py2app not including /Library/Python/2.6/site-packages
michael ferraro mich...@possibleworlds.com writes: Using Apple's installed python means one less install and, one less opportunity for problem. It is probably shortsighted. Given everything, installing a python.org version of python might make things more consistent and easier. Just to perhaps clarify one thing - the use of the python.org Python is only an installation issue for the development machine. py2app will include the relevant portions of the python.org framework within your application bundle, so it's not a requirement for any of your users. They'll still just see a single standalone application, which just happens to have no dependencies on their system's python. This can simplify things somewhat on the development machine too, since you can use the python.org python installation (independent from the OS version) on that machine for installing other third-party packages you may need, again without affecting the system python. Those packages also get included in the final app bundle by py2app. -- David ___ 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 not including /Library/Python/2.6/site-packages
On 1/24/11 10:57 PM, michael ferraro wrote: I should clarify- My apps are used in intense live animation production applications. Having an app the runs like an app, can be executed from the dock and in all aspects seems like a real Mac- app, for me, makes it possible to experiment with new models of media production. This is my stock-and-trade. yep -- it really nice if you use the GUI for other parts of your process. Adding insult to injury, I am constantly in development. So ... I am never ready to commit (no pun intended). I need to fix things at a crucial moment. I need to add a featur that no one anticipated. I can't be rigid and orthodox here py2app is 99.9 percent exactly what I need. It it excellent and has been a terrific help to me a and to the the community. I just got lost and frustrated in the morass of development. I use it that way too. I have a few apps that are under constant development (some mine, and the Peppy editor). I use Py2app to build an Alias bundle, and then I have an app that looks, feels and acts like an app, but actually runs the development code and my Python install. I can't give it to anyone else, but I can set up others with a similar python install and set them up the same way. Using Apple's installed python means one less install and, one less opportunity for problem. I'd think that what you are trying to do should work. And if you can figure it out what went wrong, please report here. It is probably shortsighted. Given everything, installing a python.org version of python might make things more consistent and easier. I think so -- and yes, it's one more install, but it's a pretty darn easy one. -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
Re: [Pythonmac-SIG] py2app not including /Library/Python/2.6/site-packages
Am 2011-01-24 um 02:53 schrieb michael ferraro: how about I do a sys.path.append (/Library/Python/2.6/site-packages) in my main? How should such an absolute path help in a py2app packaged app? Greetlings from Lake Constance! Hraban --- http://www.fiee.net https://www.cacert.org (I'm an assurer) ___ 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 not including /Library/Python/2.6/site-packages
it wont deploy without an installer but at least it runs! m On Jan 24, 2011, at 3:30 AM, Henning Hraban Ramm wrote: Am 2011-01-24 um 02:53 schrieb michael ferraro: how about I do a sys.path.append (/Library/Python/2.6/site-packages) in my main? How should such an absolute path help in a py2app packaged app? Greetlings from Lake Constance! Hraban --- http://www.fiee.net https://www.cacert.org (I'm an assurer) ___ 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 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 not including /Library/Python/2.6/site-packages
Michael, I'm not sure what problem you are reporting? But some of those paths on sys.path look suspicious to me: /usr/Extras/lib/python, for instance. Might want to look into how those got on your sys.path. Also, in last week's discussion, we didn't really cover setuptools and easy_install, as they're not Mac-specific. But, after years of fighting with setuptools (easy_install is a part of that), trying to get it to do what I need done, my advice would be to steer clear of using it, as well. It's not clear how it will interact with the other package control systems you mention, such as MacPorts and pypm. Bill michael ferraro mich...@possibleworlds.com wrote: I have seen various posts regarding this problem over the years but I flummoxed by how I got here and what to do now that I am. I am running MacOS X 10.6.6 I started out using the system python 2.6. I built the 3d extensions (PyQt, numpy, PyOpenGL c) and they are installed in /Library/Python/2.6/site-packages As I expected. My app runs fine when invoked directly from the Terminal. Poor internet search results trying to locate and install py2app resulted in the installation of ActiveStates pypm and Macports hg along with some variants of easy_install. These missteps seem to have installed another version of python 2.6 in the path of /Library/Frameworks/Python.framework chain with it own site-packages folder. As a result my installed 3d party extension were no longer found when starting the app from the Terminal. Once I removed this framework. and the .local folder created in my home folder. I also removed the .profile file that was modified (created) by one of the previous installs. I discovered some installed put a python in /usr/local/bin and removed it. I tested my app from the Terminal and all was good again. The sys.path variable prints the expected site-packages. ['/Users/mef/Development/-Applications-/Teatro', '/Library/Python/2.6/site-packages/setuptools-0.6c12dev_r88124-py2.6.egg', '/Library/Python/2.6/site-packages/py2app-0.5.2-py2.6.egg', '/Library/Python/2.6/site-packages/macholib-1.3-py2.6.egg', '/Library/Python/2.6/site-packages/modulegraph-0.8-py2.6.egg', '/Library/Python/2.6/site-packages/altgraph-0.7.0-py2.6.egg', '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python26.zip', '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6', '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-darwin', '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-mac', '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-mac/lib-scriptpackages', '/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python', '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-tk', '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-old', '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-dynload', '/Library/Python/2.6/site-packages', '/Library/Python/2.6/site-packages/PIL', '/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/PyObjC', '/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/wx-2.8-mac-unicode'] After I run python setup.py py2app I run dist/Teatro.app and the sys.path contents printed to the console looks like this: 1/23/11 1:07:09 PMcom.apple.launchd.peruser.501[420] ([0x0-0xec0ec].org.pythonmac.unspecified.Teatro[25180]) Exited with exit code: 255 1/23/11 1:07:23 PM[0x0-0xf20f2].org.pythonmac.unspecified.Teatro[25233] ['/Users/mef/Development/-Applications-/Teatro', 1/23/11 1:07:23 PM[0x0-0xf20f2].org.pythonmac.unspecified.Teatro[25233] '/Users/mef/Development/-Applications-/Teatro/dist/Teatro.app/Contents/Resources', 1/23/11 1:07:23 PM[0x0-0xf20f2].org.pythonmac.unspecified.Teatro[25233] '/Users/mef/Development/-Applications-/Teatro/dist/Teatro.app/Contents/Resources', 1/23/11 1:07:23 PM[0x0-0xf20f2].org.pythonmac.unspecified.Teatro[25233] '/usr/lib/python26.zip', 1/23/11 1:07:23 PM[0x0-0xf20f2].org.pythonmac.unspecified.Teatro[25233] '/usr/lib/python2.6', 1/23/11 1:07:23 PM[0x0-0xf20f2].org.pythonmac.unspecified.Teatro[25233] '/usr/lib/python2.6/plat-darwin', 1/23/11 1:07:23 PM[0x0-0xf20f2].org.pythonmac.unspecified.Teatro[25233] '/usr/lib/python2.6/plat-mac', 1/23/11 1:07:23 PM[0x0-0xf20f2].org.pythonmac.unspecified.Teatro[25233] '/usr/lib/python2.6/plat-mac/lib-scriptpackages', 1/23/11 1:07:23 PM[0x0-0xf20f2].org.pythonmac.unspecified.Teatro[25233] '/usr/Extras/lib/python', 1/23/11 1:07:23 PM[0x0-0xf20f2].org.pythonmac.unspecified.Teatro[25233] '/usr/lib/python2.6/lib-tk', 1/23/11 1:07:23 PM[0x0-0xf20f2].org.pythonmac.unspecified.Teatro[25233]
Re: [Pythonmac-SIG] py2app not including /Library/Python/2.6/site-packages
Thank you all for your attention to this matter. I should clarify- My apps are used in intense live animation production applications. Having an app the runs like an app, can be executed from the dock and in all aspects seems like a real Mac- app, for me, makes it possible to experiment with new models of media production. This is my stock-and-trade. While --I --can run the app as a python script and deal with the strange python menu that shows up. Not everyone can. In the heat of production having an bundled app w/ icons c., makes our situation much less stressful and much less prone to error. So,...py2app. It looks like an app, smells like app and, most importantly acts like an app. It may be a small quality in an app. but it is a very important quality in an app for what I do. Adding insult to injury, I am constantly in development. So ... I am never ready to commit (no pun intended). I need to fix things at a crucial moment. I need to add a featur that no one anticipated. I can't be rigid and orthodox here py2app is 99.9 percent exactly what I need. It it excellent and has been a terrific help to me a and to the the community. I just got lost and frustrated in the morass of development. Using Apple's installed python means one less install and, one less opportunity for problem. It is probably shortsighted. Given everything, installing a python.org version of python might make things more consistent and easier. thans again -- m On Jan 24, 2011, at 11:55 AM, Christopher Barker wrote: On 1/24/11 6:10 AM, michael ferraro wrote: it wont deploy without an installer but at least it runs! I suppose so -- but what's the point? If you want to have a program run only with a python install like yours, you don't need py2app... It's still unclear to me what py2app is expected to be able to do with Apple's Python. but in practice, we generally use it with the python.org installer, as that gets you a fully independent app bundle. In theory, you can build an app this way on 10.6, and it can run on 10.3.9 and above. In practice, all your user-installed packages have to be built for 10.3.9 and above, too, and that is a bit tricky. However, most folks building binaries are trying to support that, so it certainly can work. I don't know bout QT, though -- I don't use it. If you want to continue with Apple's python, you might try: 1) adding the extra stuff in as required packages in your setup.py or 2) writing some post-flight code into your setup.py that copies what you need into the app bundle --it's just a well-structured directory, after all. good luck! -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 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 not including /Library/Python/2.6/site-packages
I have seen various posts regarding this problem over the years but I flummoxed by how I got here and what to do now that I am. I am running MacOS X 10.6.6 I started out using the system python 2.6. I built the 3d extensions (PyQt, numpy, PyOpenGL c) and they are installed in /Library/Python/2.6/site-packages As I expected. My app runs fine when invoked directly from the Terminal. Poor internet search results trying to locate and install py2app resulted in the installation of ActiveStates pypm and Macports hg along with some variants of easy_install. These missteps seem to have installed another version of python 2.6 in the path of /Library/Frameworks/Python.framework chain with it own site-packages folder. As a result my installed 3d party extension were no longer found when starting the app from the Terminal. Once I removed this framework. and the .local folder created in my home folder. I also removed the .profile file that was modified (created) by one of the previous installs. I discovered some installed put a python in /usr/local/bin and removed it. I tested my app from the Terminal and all was good again. The sys.path variable prints the expected site-packages. ['/Users/mef/Development/-Applications-/Teatro', '/Library/Python/2.6/site-packages/setuptools-0.6c12dev_r88124-py2.6.egg', '/Library/Python/2.6/site-packages/py2app-0.5.2-py2.6.egg', '/Library/Python/2.6/site-packages/macholib-1.3-py2.6.egg', '/Library/Python/2.6/site-packages/modulegraph-0.8-py2.6.egg', '/Library/Python/2.6/site-packages/altgraph-0.7.0-py2.6.egg', '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python26.zip', '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6', '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-darwin', '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-mac', '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-mac/lib-scriptpackages', '/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python', '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-tk', '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-old', '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-dynload', '/Library/Python/2.6/site-packages', '/Library/Python/2.6/site-packages/PIL', '/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/PyObjC', '/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/wx-2.8-mac-unicode'] After I run python setup.py py2app I run dist/Teatro.app and the sys.path contents printed to the console looks like this: 1/23/11 1:07:09 PM com.apple.launchd.peruser.501[420] ([0x0-0xec0ec].org.pythonmac.unspecified.Teatro[25180]) Exited with exit code: 255 1/23/11 1:07:23 PM [0x0-0xf20f2].org.pythonmac.unspecified.Teatro[25233] ['/Users/mef/Development/-Applications-/Teatro', 1/23/11 1:07:23 PM [0x0-0xf20f2].org.pythonmac.unspecified.Teatro[25233] '/Users/mef/Development/-Applications-/Teatro/dist/Teatro.app/Contents/Resources', 1/23/11 1:07:23 PM [0x0-0xf20f2].org.pythonmac.unspecified.Teatro[25233] '/Users/mef/Development/-Applications-/Teatro/dist/Teatro.app/Contents/Resources', 1/23/11 1:07:23 PM [0x0-0xf20f2].org.pythonmac.unspecified.Teatro[25233] '/usr/lib/python26.zip', 1/23/11 1:07:23 PM [0x0-0xf20f2].org.pythonmac.unspecified.Teatro[25233] '/usr/lib/python2.6', 1/23/11 1:07:23 PM [0x0-0xf20f2].org.pythonmac.unspecified.Teatro[25233] '/usr/lib/python2.6/plat-darwin', 1/23/11 1:07:23 PM [0x0-0xf20f2].org.pythonmac.unspecified.Teatro[25233] '/usr/lib/python2.6/plat-mac', 1/23/11 1:07:23 PM [0x0-0xf20f2].org.pythonmac.unspecified.Teatro[25233] '/usr/lib/python2.6/plat-mac/lib-scriptpackages', 1/23/11 1:07:23 PM [0x0-0xf20f2].org.pythonmac.unspecified.Teatro[25233] '/usr/Extras/lib/python', 1/23/11 1:07:23 PM [0x0-0xf20f2].org.pythonmac.unspecified.Teatro[25233] '/usr/lib/python2.6/lib-tk', 1/23/11 1:07:23 PM [0x0-0xf20f2].org.pythonmac.unspecified.Teatro[25233] '/usr/lib/python2.6/lib-old', 1/23/11 1:07:23 PM [0x0-0xf20f2].org.pythonmac.unspecified.Teatro[25233] '/usr/lib/python2.6/lib-dynload', 1/23/11 1:07:23 PM [0x0-0xf20f2].org.pythonmac.unspecified.Teatro[25233] '/Users/mef/Development/-Applications-/Teatro/dist/Teatro.app/Contents/Resources/lib/python2.6/site-packages.zip', 1/23/11 1:07:23 PM [0x0-0xf20f2].org.pythonmac.unspecified.Teatro[25233] '/Users/mef/Development/-Applications-/Teatro/dist/Teatro.app/Contents/Resources/lib/python2.6/site-packages', 1/23/11 1:07:23 PM [0x0-0xf20f2].org.pythonmac.unspecified.Teatro[25233] '/usr/lib/python2.6/site-packages', 1/23/11 1:07:23 PM [0x0-0xf20f2].org.pythonmac.unspecified.Teatro[25233]
Re: [Pythonmac-SIG] py2app not including /Library/Python/2.6/site-packages
On Sun, Jan 23, 2011, michael ferraro wrote: I am running MacOS X 10.6.6 I started out using the system python 2.6. I built the 3d extensions (PyQt, numpy, PyOpenGL c) and they are installed in /Library/Python/2.6/site-packages As I expected. My app runs fine when invoked directly from the Terminal. Short answer (someone may come along with a longer one): use the python.org installer. If you use Python 2.7, pick the 32-bit version unless you're absolutely certain ALL your users are on 10.6. -- Aahz (a...@pythoncraft.com) * http://www.pythoncraft.com/ All problems in computer science can be solved by another level of indirection. --Butler Lampson ___ 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 not including /Library/Python/2.6/site-packages
how about I do a sys.path.append (/Library/Python/2.6/site-packages) in my main? On Jan 23, 2011, at 8:04 PM, Aahz wrote: On Sun, Jan 23, 2011, michael ferraro wrote: I am running MacOS X 10.6.6 I started out using the system python 2.6. I built the 3d extensions (PyQt, numpy, PyOpenGL c) and they are installed in /Library/Python/2.6/site-packages As I expected. My app runs fine when invoked directly from the Terminal. Short answer (someone may come along with a longer one): use the python.org installer. If you use Python 2.7, pick the 32-bit version unless you're absolutely certain ALL your users are on 10.6. -- Aahz (a...@pythoncraft.com) * http://www.pythoncraft.com/ All problems in computer science can be solved by another level of indirection. --Butler Lampson ___ 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 maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG