Results 1 to 4 of 4

Thread: PyObjC + XCode

  1. #1

    AlexM's Avatar
    Member Since
    Aug 07, 2005
    Location
    Québec, Canada
    Posts
    20
    Specs:
    iBook G4 14", Intel-iMac 17"
    PyObjC + XCode
    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

  2. #2


    Member Since
    May 27, 2006
    Location
    Concord, NC
    Posts
    445
    Specs:
    Macbook Pro 17" 2.6GHz 4GB RAM
    Open terminal and type:
    which python

    The results will show you the path.

  3. #3


    Member Since
    Dec 24, 2006
    Location
    N. Ireland
    Posts
    901
    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?

  4. #4

    AlexM's Avatar
    Member Since
    Aug 07, 2005
    Location
    Québec, Canada
    Posts
    20
    Specs:
    iBook G4 14", Intel-iMac 17"
    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...)

    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

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Is this possible with xcode ?
    By lf2 in forum iOS Development
    Replies: 6
    Last Post: 04-21-2012, 10:05 PM
  2. Xcode stopped letting me run Xcode app on iPad
    By ildsarria in forum iOS Development
    Replies: 1
    Last Post: 11-09-2011, 04:15 PM
  3. Display and image from path in Xcode with pyobjc
    By jordan0420 in forum OS X - Development and Darwin
    Replies: 0
    Last Post: 07-09-2011, 05:15 PM
  4. Creating callback python functions for PyObjC
    By god0fgod in forum OS X - Development and Darwin
    Replies: 0
    Last Post: 07-05-2010, 08:00 PM
  5. Xcode Help!!!!!!!!!!!!!!!!!!!!!!
    By DGordon in forum OS X - Apps and Games
    Replies: 0
    Last Post: 04-01-2009, 03:19 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •