New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus • Advice and insight from world-class Apple enthusiasts • Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Development and Darwin Discussion and questions about development for Mac OS X.

PyObjC + XCode


Post Reply New Thread Subscribe

 
Thread Tools
AlexM

 
AlexM's Avatar
 
Member Since: Aug 07, 2005
Location: Québec, Canada
Posts: 20
AlexM is on a distinguished road
Mac Specs: iBook G4 14", Intel-iMac 17"

AlexM is offline
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:

Quote:
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...

Quote:
#!/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
QUOTE Thanks
karudzo

 
Member Since: May 27, 2006
Location: Concord, NC
Posts: 445
karudzo has a spectacular aura about
Mac Specs: Macbook Pro 17" 2.6GHz 4GB RAM

karudzo is offline
Open terminal and type:
which python

The results will show you the path.
QUOTE Thanks
Del

 
Member Since: Dec 24, 2006
Location: N. Ireland
Posts: 901
Del has a spectacular aura about
Mac Specs: Mac Pro 2xQuad core 2.8GHZ

Del is offline
Just a complete guess here but i would try it with the # character removed, because anything following a # character is treated as a comment?
QUOTE Thanks
AlexM

 
AlexM's Avatar
 
Member Since: Aug 07, 2005
Location: Québec, Canada
Posts: 20
AlexM is on a distinguished road
Mac Specs: iBook G4 14", Intel-iMac 17"

AlexM is offline
Quote:
Originally Posted by karudzo View Post
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...)

Quote:
ImportError: Inappropriate file type for dynamic loading
Quote:
Originally Posted by Del View Post
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
QUOTE Thanks

Post Reply New Thread Subscribe


« Can I put alarm clock on desktop from a script or programing | PC Programmer Mac Noob Wants to get started! »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
XCode environment meskue OS X - Development and Darwin 3 06-09-2006 03:18 AM
Xcode 1.5 alejandrico OS X - Development and Darwin 0 06-03-2006 05:56 PM
Features I miss from Visual Studio, now using xCode... RChickenMan OS X - Development and Darwin 0 10-18-2005 11:14 AM
XCode Include path problem Jove OS X - Development and Darwin 0 03-18-2005 09:41 AM
New Xcode plug-in helps developers reuse code Murlyn OS X - Development and Darwin 0 11-10-2003 12:16 PM

All times are GMT -4. The time now is 11:27 PM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?