473,499 Members | 1,609 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

OS X py2app confusion

bex
Im baffled about this one...

Im running OS 10.3, and Python 2.3. I installed py2app 0.17 and never
used it, then installed py2app 0.2. It refuses to work. None of the
samples will build. Observe:

$ pwd
/Developer/Python/py2app/Examples/pygame
$ python setup.py py2app
Traceback (most recent call last):
File "setup.py", line 8, in ?
import py2app
ImportError: No module named py2app
$

No module??? huh??? Its clearly there in the appropriate place:

$ pwd
/Library/Python/2.3
$ ls
PyObjC README py2app.pth wxPython
PyObjC.pth py2app wx
$ ls py2app
altgraph bdist_mpkg macholib modulegraph py2app
$ ls py2app/py2app/
__init__.py command filters.pyo
__init__.pyc create_appbundle.py install.py
__init__.pyo create_appbundle.pyc install.pyc
apptemplate create_appbundle.pyo install.pyo
bootstrap create_pluginbundle.py recipes
build_app.py create_pluginbundle.pyc scripts
build_app.pyc create_pluginbundle.pyo util.py
build_app.pyo filters.py util.pyc
bundletemplate filters.pyc util.pyo
$ more py2app.pth
py2app
$

I was confused about the packaging, so I tried moving all the folders
in py2app into /Library/Python/2.3/ and deleted the py2app.pth file,
but it still wouldn't load the module.

Any insight into the voodoo magic required to get this working?

Jul 25 '05 #1
1 2515
bex wrote:
Im baffled about this one... I was confused about the packaging, so I tried moving all the folders
in py2app into /Library/Python/2.3/ and deleted the py2app.pth file,
but it still wouldn't load the module.
that does not sound as a good idea...
Any insight into the voodoo magic required to get this working?


How many pythons do you have on your OS X? I have four different ones:
Python as a Mac OS X install (original and 2.4)
Python as a Fink installation (2.3 and 2.4)

If you have several ones are you sure that the one you are using is the
same as the one used to isntall py2app?

Have you tried to re-install the py2app (even version 0.17)?

my 2 cents

--
rafi

"Imagination is more important than knowledge."
(Albert Einstein)
Jul 25 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1446
by: Bob Swerdlow | last post by:
I'm trying to move my application from bundlebuilder to py2app. I upgraded to PyObjC 1.2, which include py2app 1.7, but I got the following error. I saw a note on the py2app site that earlier...
3
2161
by: bsharitt | last post by:
I'm trying to get Bittornado to run on Mac OS X (10.4 with Python 2.3.5) but I've only ever dealt with Python at lower lever scripting stuff, never wxPython or another GUI stuff. py2app is supposed...
0
2003
by: Richard Taylor | last post by:
User-Agent: OSXnews 2.07 Xref: number1.nntp.dca.giganews.com comp.lang.python:437315 Hi I am trying to use py2app (http://undefined.org/python/) to package a gnome-python application...
3
2563
by: SPE - Stani's Python Editor | last post by:
Hi, I'm creating a GUI program with wxPython which will be distributed for Mac and Windows. The audience of the program is not technical at all (eg they've never heard about Python yet ;-), so...
2
1503
by: loren.davie | last post by:
Hi, I'm attempting to build a small app that uses pythoncard for a gui layer. The intention is to use py2app to construct an .app bundle for the Mac. I'm running OS 10.4 on an Intel MacBook...
2
2304
by: James Stroud | last post by:
Hello All, I am trying to create a semi-standalone with the vendor python on OS X 10.4 (python 2.3.5). I tried to include some packages with both --packages from the command and the 'packages'...
0
1286
by: Ian A. York | last post by:
I've been packaging a set of scripts using py2app, and until now the app that results has run without issues on MacOS10.4, either intel or ppc. The latest version made by py2app, however, only...
3
3425
by: AdamGr | last post by:
I am currently trying to convert a program I just wrote to application form, on the Mac. I'm using py2app to accomplish this, and everything works fine up until the last stage; when I try to complete...
1
1889
by: Joe Strout | last post by:
I'm trying to use py2app to convert the pySketch wxPython example into a stand-alone OS X app. I've found the documentation at <http://undefined.org/python/py2app.html like this: #!/usr/bin/env...
0
7134
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7014
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7229
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7395
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
4921
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4609
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3103
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1429
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
667
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.