Re: [Pythonmac-SIG] Getting an Error When Running App built with Py2app
- Original Message - From: Ronald Oussoren ronaldousso...@mac.com To: Mike smartmi...@gmail.com Cc: Pythonmac-sig sig pythonmac-sig@python.org Sent: Tuesday, June 14, 2011 5:08 AM Subject: Re: [Pythonmac-SIG] Getting an Error When Running App built with Py2app On 14 Jun, 2011, at 7:37, Ronald Oussoren wrote: On 12 Jun, 2011, at 21:02, Mike wrote: Hi, Tried installing Python 2.7 32 bit and WXPython. I now get import error: no module named appkit I assume this means I would have to install XCode, then PyObjC for the py2.7 build. Correct me if I'm wrong... Do you actually use PyObjC? That was a bit too terse. I was wondering why there is a dependency to appkit in a wxPython based program. Are you using PyObjC to get at some functionality that isn't exposed by wx? I'm running Snow Leopard, and yes I'm using PyObjC for something separate to Wx. Mike Ronald ___ 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] Getting an Error When Running App built with Py2app
Hi, I'm trying to get Python 2.7 working. I was getting an error no module named appkit, so I assume i need to install pyobjc. I get the following error when I run easy_install pyobjc, as well as when I run setup.py in the trunk/pyobjc/pyobjc directory of the source code: Searching for pyobjc Best match: pyobjc 2.4a0 Processing pyobjc-2.4a0-py2.7.egg pyobjc 2.4a0 is already the active version in easy-install.pth Using /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pyobjc-2.4a0-py2.7.egg Processing dependencies for pyobjc Searching for pyobjc-framework-ServiceManagement==2.4a0 Reading http://pypi.python.org/simple/pyobjc-framework-ServiceManagement/ Reading http://pyobjc.sourceforge.net No local packages or download links found for pyobjc-framework-ServiceManagement==2.4a0 error: Could not find suitable distribution for Requirement.parse('pyobjc-framework-ServiceManagement==2.4a0') Anyone have a solution for this? Mike- Original Message - From: Christopher Barker chris.bar...@noaa.gov To: Mike smartmi...@gmail.com Cc: pythonmac-sig@python.org Sent: Monday, June 13, 2011 1:07 PM Subject: Re: [Pythonmac-SIG] Getting an Error When Running App built with Py2app Mike wrote: I also just tried installing python2.6.6 from python.org, but when I run python2.6, it still claims i'm running python 2.6.1. Any idea how to fix this? The installer _should_ have updated your PATH so that the newly installed version would run when you typed python, but depending on how your shell is set up, it may not. try which python to see which one is being used. For instance, I get: /Library/Frameworks/Python.framework/Versions/2.7/bin/python That is the python.org binary. If you get something in /System/..., or in /usr/bin/ then you are getting Apple's python. (you can also try which python2.6) Check out $PATH to see what is going on. You may need to mess with your .bash_profile to get $PATH right. (you did re-start the shell, didn't you?) Mike wrote: Tried installing Python 2.7 32 bit and WXPython. I now get import error: no module named appkit I think you need to install PyObjC for the python.org python to get appkit (though I'm no expert there). Do you really need both appkit and wxPython? You may well, I'm sure I'm showing my ignorance here. -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] Getting an Error When Running App built with Py2app
On 14 Jun, 2011, at 4:24, Mike wrote: Hi, I'm trying to get Python 2.7 working. I was getting an error no module named appkit, so I assume i need to install pyobjc. I get the following error when I run easy_install pyobjc, as well as when I run setup.py in the trunk/pyobjc/pyobjc directory of the source code: Which version of OSX do you use? Ronald ___ 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] Getting an Error When Running App built with Py2app
I also just tried installing python2.6.6 from python.org, but when I run python2.6, it still claims i'm running python 2.6.1. Any idea how to fix this? Mike - Original Message - From: Christopher Barker chris.bar...@noaa.gov To: Mike smartmi...@gmail.com; Pythonmac-sig pythonmac-sig@python.org Sent: Thursday, June 09, 2011 1:28 PM Subject: Re: [Pythonmac-SIG] Getting an Error When Running App built with Py2app Mike wrote: Hi, I'm using the built in Python 2.6 that comes with OSX. Should I install Python from python.org? If so, which version? That depends on your goals. If you are happy with your app only running on 10.6 and above, then the built-in one should work. If you want your app to run on OS-X versions 10.3.9 and above (or any version before 10.6) then you need to install a python.org version. You can use either 2.6 or 2.7, but if you use 2.7, use the 32 bit, 10.3 build -- the 32-64 bit 10.6 build will only run on 10.6 You may want to give that a try anyway, to see if it fixes your issue, but Ronald can't fix bugs or add tests if non one gives him broken examples -- so if you do want the build-in python, it would be great to keep trying an reporting what you find. One other note -- wx installs itself outside of the Python Framework -- this way both the Apple and Python.org installs can use it. It uses some *.pth trickery to accomplish that -- that may be what's confusing py2app. -Chris Mike - Original Message - From: Chris Barker chris.bar...@noaa.gov To: Mike smartmi...@gmail.com; pythonmac-sig@python.org Sent: Wednesday, June 08, 2011 1:12 AM Subject: Re: [Pythonmac-SIG] Getting an Error When Running App built with Py2app On 6/7/11 7:38 PM, Mike wrote: Hi, I built my python program using Py2app, using the default setup.py script. I'm running Mac OSX Snow Leopard 64 bit. which python are you using? Py2app is really expected to work right with Apple's built-in python (it can't include python itself) ImportError: '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-dynload/wx/_core_.so' not found This looks like it's looking for wx in Apple's python. I'd install the python from python.org, and try again with that. It's probably what you ultimately want anyway. -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 -- 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] Getting an Error When Running App built with Py2app
Mike wrote: Hi, I'm using the built in Python 2.6 that comes with OSX. Should I install Python from python.org? If so, which version? That depends on your goals. If you are happy with your app only running on 10.6 and above, then the built-in one should work. If you want your app to run on OS-X versions 10.3.9 and above (or any version before 10.6) then you need to install a python.org version. You can use either 2.6 or 2.7, but if you use 2.7, use the 32 bit, 10.3 build -- the 32-64 bit 10.6 build will only run on 10.6 You may want to give that a try anyway, to see if it fixes your issue, but Ronald can't fix bugs or add tests if non one gives him broken examples -- so if you do want the build-in python, it would be great to keep trying an reporting what you find. One other note -- wx installs itself outside of the Python Framework -- this way both the Apple and Python.org installs can use it. It uses some *.pth trickery to accomplish that -- that may be what's confusing py2app. -Chris Mike - Original Message - From: Chris Barker chris.bar...@noaa.gov To: Mike smartmi...@gmail.com; pythonmac-sig@python.org Sent: Wednesday, June 08, 2011 1:12 AM Subject: Re: [Pythonmac-SIG] Getting an Error When Running App built with Py2app On 6/7/11 7:38 PM, Mike wrote: Hi, I built my python program using Py2app, using the default setup.py script. I'm running Mac OSX Snow Leopard 64 bit. which python are you using? Py2app is really expected to work right with Apple's built-in python (it can't include python itself) ImportError: '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-dynload/wx/_core_.so' not found This looks like it's looking for wx in Apple's python. I'd install the python from python.org, and try again with that. It's probably what you ultimately want anyway. -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 -- 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] Getting an Error When Running App built with Py2app
On 6/7/11 7:38 PM, Mike wrote: Hi, I built my python program using Py2app, using the default setup.py script. I'm running Mac OSX Snow Leopard 64 bit. which python are you using? Py2app is really expected to work right with Apple's built-in python (it can't include python itself) ImportError: '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-dynload/wx/_core_.so' not found This looks like it's looking for wx in Apple's python. I'd install the python from python.org, and try again with that. It's probably what you ultimately want anyway. -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] Getting an Error When Running App built with Py2app
Chris, I think your note didn't get posted to the list (you have to reply all), so here it is: Chris Weisiger wrote: On Tue, Jun 7, 2011 at 10:12 PM, Chris Barker chris.bar...@noaa.gov which python are you using? Py2app is really expected to work right with Apple's built-in python (it can't include python itself) That should be is really *NOT* expected to work right :) oops, yes, that is what I meant! -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] Getting an Error When Running App built with Py2app
On 8 Jun, 2011, at 8:29, Christopher Barker wrote: Chris, I think your note didn't get posted to the list (you have to reply all), so here it is: Chris Weisiger wrote: On Tue, Jun 7, 2011 at 10:12 PM, Chris Barker chris.bar...@noaa.gov which python are you using? Py2app is really expected to work right with Apple's built-in python (it can't include python itself) That should be is really *NOT* expected to work right :) oops, yes, that is what I meant! And that's wrong. Py2app should work just fine with Apple's python, and then creates a semi-standalone app bundle that doesn't include Python itself. The advantage is a smaller application bundle, the disadvantage is that you must run it on the same OSX release as you built it on (or a newer one, AFAIK the result of building on 10.5 can run on 10.6) Ronald -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 smime.p7s Description: S/MIME cryptographic signature ___ 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] Getting an Error When Running App built with Py2app
Ronald Oussoren wrote: That should be is really *NOT* expected to work right :) And that's wrong. Py2app should work just fine with Apple's python, and then creates a semi-standalone app bundle that doesn't include Python itself. The advantage is a smaller application bundle, the disadvantage is that you must run it on the same OSX release as you built it on (or a newer one, AFAIK the result of building on 10.5 can run on 10.6) OK -- I've always know that that was supposed to be the case, and a py2app'd bundle should certainly work on the machine it was built on anyway. However, if I recall correctly, there have been issues for years with not just the core Python distribution not being included, but things getting ugly with installed add on packages not getting included either (or not properly). So I've always stayed away from trying, and encouraged others to do the same. That experience may be the result of bugs that no longer exist. OTOH, if, indeed, using the system python results in a smaller bundle that works just fine on all versions of OS-X = to the one it was built on -- that could be really nice and useful. -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] Getting an Error When Running App built with Py2app
On 8 Jun, 2011, at 15:15, Christopher Barker wrote: Ronald Oussoren wrote: That should be is really *NOT* expected to work right :) And that's wrong. Py2app should work just fine with Apple's python, and then creates a semi-standalone app bundle that doesn't include Python itself. The advantage is a smaller application bundle, the disadvantage is that you must run it on the same OSX release as you built it on (or a newer one, AFAIK the result of building on 10.5 can run on 10.6) OK -- I've always know that that was supposed to be the case, and a py2app'd bundle should certainly work on the machine it was built on anyway. However, if I recall correctly, there have been issues for years with not just the core Python distribution not being included, but things getting ugly with installed add on packages not getting included either (or not properly). So I've always stayed away from trying, and encouraged others to do the same. That experience may be the result of bugs that no longer exist. OTOH, if, indeed, using the system python results in a smaller bundle that works just fine on all versions of OS-X = to the one it was built on -- that could be really nice and useful. That's the intention, but there may still be bugs as py2app still has fairly minimal test coverage and I don't use the system python for my day-to-day work. I'm adding new tests with every bugfix, but that's not good enough to get proper test coverage in a reasonable timeframe. Ronald smime.p7s Description: S/MIME cryptographic signature ___ 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] Getting an Error When Running App built with Py2app
Hi, I built my python program using Py2app, using the default setup.py script. I'm running Mac OSX Snow Leopard 64 bit. My project uses WX. Initially, I was getting an error import error: no module named wx when I ran the app, so I went and downloaded and installed WXPython from wxpython.org. Now I get the following error: _FuncPtr object at 0xc1cd8 Traceback (most recent call last): File /Users/mike/rsg-client/src/dist/rsg.app/Contents/Resources/__boot__.py, line 187, in module _run('rsg.py') File /Users/mike/rsg-client/src/dist/rsg.app/Contents/Resources/__boot__.py, line 184, in _run execfile(path, globals(), globals()) File /Users/mike/rsg-client/src/dist/rsg.app/Contents/Resources/rsg.py, line 8, in module import gui File gui.pyc, line 7, in module File keyMap.pyc, line 1, in module File wx/__init__.pyc, line 45, in module File wx/_core.pyc, line 4, in module File wx/_core_.pyc, line 18, in module File wx/_core_.pyc, line 15, in __load ImportError: '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-dynload/wx/_core_.so' not found 2011-06-07 20:55:05.194 rsg[480:a07] rsg Error I preceded both my build and run commands with arch -i386, if that helps. Any help would be appreciated. Mike ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG