On Sep 28, 2006, at 8:04 PM, Bob Ippolito wrote:

On 9/28/06, Michael Glassford <[EMAIL PROTECTED]> wrote:
Bob Ippolito wrote:
On 9/28/06, Michael Glassford <[EMAIL PROTECTED]> wrote:
I've just installed Python 2.5, then installed py2app and pyobjc using easy_install. My application built just fine, but when I run it I get the error "ImportError: No module named PyObjCTools" when it tries to
execute the line "from PyObjCTools import AppHelper". How does
PyObjCTools get installed when easy_installing pyobjc?

You are probably using easy_install frrom a different version of Python.

-bob
_______________________________________________
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig


If I understand what you mean correctly, which is that I'm running the
easy_install that's in my Python2.4 installation so it's installing
py2app and pyobjc in my Python2.4 directories, I don't think so:

1) My PATH looks like this:
"/Library/Frameworks/Python.framework/Versions/2.5/bin/:/bin:/ sbin:/usr/bin:/usr/sbin:/usr/local/bin". The correct version of easy_install is in the first directory in the
PATH.

2) If I use "easy_install-2.5 py2app" and "easy_install-2.5 py2objc"I
get the same result.


Here's the output when I run the two commands, in case anything stands
out to you:



Computer:/users/build/develop/ build$ sudo easy_install py2app
Password:
Searching for py2app
Best match: py2app 0.3.4
Processing py2app-0.3.4-py2.5.egg
py2app 0.3.4 is already the active version in easy-install.pth
Installing py2applet script to
/Library/Frameworks/Python.framework/Versions/2.5/bin

Using
/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/ site-packages/py2app-0.3.4-py2.5.egg
Processing dependencies for py2app



Computer:/users/build/develop/ build$ sudo easy_install pyobjc
Searching for pyobjc
Best match: pyobjc 1.4
Processing pyobjc-1.4-py2.5-macosx-10.3-fat.egg
pyobjc 1.4 is already the active version in easy-install.pth
Installing nibclassbuilder script to
/Library/Frameworks/Python.framework/Versions/2.5/bin

Using
/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/ site-packages/pyobjc-1.4-py2.5-macosx-10.3-fat.egg
Processing dependencies for pyobjc


I don't know then, it works fine with Python 2.4. Ronald?

I'll have a look in the morning. I'm pretty sure it works just fine, but I mostly use the develop command.

Ronald

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig

Reply via email to