[Pythonmac-SIG] problem creating first pyobjc file
dreedmac at columbus.rr.com
Thu Mar 24 00:43:48 CET 2005
On Mar 23, 2005, at 4:53 PM, Bob Ippolito wrote:
> On Mar 23, 2005, at 4:40 PM, David Reed wrote:
>> I'm a Linux refugee familiar used to programming pygtk apps with
>> glade and decided to see how to make Cocoa apps. I downloaded the
>> pybobc 1.3b1 and py2app that Bob announced about a week ago. I'm
>> following the tutorial and go to the step where I'm supposed to run:
>> /usr/bin/python setup.py py2app -A
>> and I get:
>> Traceback (most recent call last):
>> File "setup.py", line 2, in ?
>> import py2app
>> python2.3/site-packages/py2app/__init__.py", line 43, in ?
>> import distutils.dist, distutils.core, distutils.command,
>> build_app, sys
>> python2.3/site-packages/py2app/build_app.py", line 24, in ?
>> from py2app.find_modules import find_modules, parse_mf_results
>> File "/Library/Python/2.3/py2app/py2app/__init__.py", line 33, in ?
>> import py2app.install
>> ImportError: No module named install
> You have two copies of py2app installed, one of which is older than
> From <http://undefined.org/python/py2app.html>:
> As of version 0.1.6, py2app uses the extra_path feature of distutils,
> which changes the installation layout. If you have py2app 0.1.5 or
> earlier installed, you must manually remove the following directories
> from your site-packages directory (probably /Library/Python/2.3 ) if
> they exist before upgrading:
> ◦ py2app
> ◦ macholib
> ◦ bdist_mpkg
> ◦ modulegraph
> ◦ altgraph
> so.. clobber those directories and reinstall the mpkg.
Thanks Bob. A few of those didn't exist (modulegraph and altgraph I
think), but I deleted the ones that did and got it to work. Now I need
to look at the Cocoa books I borrowed from the library and try to
understand a little bit more about Cocoa and Objective-C.
More information about the Pythonmac-SIG