PyObjC + XCode

Joined
Aug 7, 2005
Messages
20
Reaction score
0
Points
1
Location
Québec, Canada
Your Mac's Specs
iBook G4 14", Intel-iMac 17"
Hello,

I'm trying to play around with PyObjC and XCode so I downloaded the sample project from the apple's developers website (PyAverager) but when I try to compile it I get the following error:

Traceback (most recent call last):
File "/PyAverager/setup.py", line 38, in ?
import py2app
ImportError: No module named py2app
Command /usr/bin/env failed with exit code 1
Build failed error

I think I have to change this to point to my valid python but I'm not too sure how to get that...

#!/usr/bin/env python
#
# ------------------------------------------------
#
# CHANGE ABOVE OR EDIT THE "Shell Script Files"
# PHASE TO START THE THIS SCRIPT WITH ANOTHER
# PYTHON INTERPRETER.
#
# ------------------------------------------------
#

Any other suggestions? I'm running Python 2.4, with the latest version of PyObjC installed from the package. Thanks!

- Alex
 
Joined
May 27, 2006
Messages
445
Reaction score
16
Points
18
Location
Concord, NC
Your Mac's Specs
Macbook Pro 17" 2.6GHz 4GB RAM
Open terminal and type:
which python

The results will show you the path.
 

Del


Joined
Dec 24, 2006
Messages
901
Reaction score
15
Points
18
Location
N. Ireland
Your Mac's Specs
Mac Pro 2xQuad core 2.8GHZ
Just a complete guess here but i would try it with the # character removed, because anything following a # character is treated as a comment?
 
OP
AlexM
Joined
Aug 7, 2005
Messages
20
Reaction score
0
Points
1
Location
Québec, Canada
Your Mac's Specs
iBook G4 14", Intel-iMac 17"
Open terminal and type:
which python

The results will show you the path.
I got the following result:

'/Library/Frameworks/Python.framework/Versions/Current/bin/python'

changed the first line of the setup.py script but still won't load (I get different errors now though...)

ImportError: Inappropriate file type for dynamic loading

Just a complete guess here but i would try it with the # character removed, because anything following a # character is treated as a comment?
The #! interprets the rest of the line as a path, so I don't think this is the problem ;)
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top