[Pythonmac-SIG] Cannot import name PyPIRCCommand

Chris Weisiger cweisiger at msg.ucsf.edu
Wed Feb 9 18:25:22 CET 2011


I get a working app if I build with Python 2.6, so apparently something that
altgraph changed has broken compatibility with 2.5, somehow. Unfortunately
this doesn't completely fix my problem, as I have another app I need to be
able to build that only works with Python 2.5.

-Chris

On Tue, Feb 8, 2011 at 2:24 PM, Chris Weisiger <cweisiger at msg.ucsf.edu>wrote:

> On further investigation, presumably what has changed is that one of the
> dependencies that is automatically downloaded by setup.py / py2app now
> doesn't work properly. I didn't include those in the previous paste, but on
> cleaning my directory and then rebuilding, I see that the build fails when
> trying to process altgraph 0.7.2 from
> http://pypi.python.org/packages/source/a/altgraph/altgraph-0.7.2.tar.gz#md5=effd9f891355ae9bc243a848f6c3a519
>
> Is there some way to specify the desired version to download? I see that
> altgraph was last updated January 31st. altgraph 0.7.0, which was released
> in January 2010, should work just fine if I can figure out how to tell
> py2app to use it instead.
>
> -Chris
>
>
> On Tue, Feb 8, 2011 at 1:48 PM, Chris Weisiger <cweisiger at msg.ucsf.edu>wrote:
>
>> This is really bizarre. I have a Python program that I've built many times
>> successfully in the past. Now I'm getting this error when I try to build it.
>> Nothing in the program itself has changed since I last built it
>> successfully, and I'm fairly confident that I haven't changed my Python
>> install either, so I have no idea why the build process would be different
>> now. Here's the full traceback:
>>
>> % /usr/local/bin/python2.5 setup.py py2app
>> Traceback (most recent call last):
>>   File "setup.py", line 18, in <module>
>>     setup_requires=['py2app'],
>>   File
>> "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/distutils/core.py",
>> line 112, in setup
>>     _setup_distribution = dist = klass(attrs)
>>   File
>> "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/setuptools-0.6c11-py2.5.egg/setuptools/dist.py",
>> line 260, in __init__
>>   File
>> "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/setuptools-0.6c11-py2.5.egg/setuptools/dist.py",
>> line 284, in fetch_build_eggs
>>   File
>> "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/setuptools-0.6c11-py2.5.egg/pkg_resources.py",
>> line 563, in resolve
>>   File
>> "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/setuptools-0.6c11-py2.5.egg/pkg_resources.py",
>> line 799, in best_match
>>   File
>> "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/setuptools-0.6c11-py2.5.egg/pkg_resources.py",
>> line 811, in obtain
>>   File
>> "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/setuptools-0.6c11-py2.5.egg/setuptools/dist.py",
>> line 327, in fetch_build_egg
>>   File
>> "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/setuptools-0.6c11-py2.5.egg/setuptools/command/easy_install.py",
>> line 446, in easy_install
>>   File
>> "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/setuptools-0.6c11-py2.5.egg/setuptools/command/easy_install.py",
>> line 476, in install_item
>>   File
>> "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/setuptools-0.6c11-py2.5.egg/setuptools/command/easy_install.py",
>> line 655, in install_eggs
>>   File
>> "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/setuptools-0.6c11-py2.5.egg/setuptools/command/easy_install.py",
>> line 930, in build_and_install
>>   File
>> "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/setuptools-0.6c11-py2.5.egg/setuptools/command/easy_install.py",
>> line 919, in run_setup
>>   File
>> "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/setuptools-0.6c11-py2.5.egg/setuptools/sandbox.py",
>> line 62, in run_setup
>>   File
>> "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/setuptools-0.6c11-py2.5.egg/setuptools/sandbox.py",
>> line 105, in run
>>   File
>> "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/setuptools-0.6c11-py2.5.egg/setuptools/sandbox.py",
>> line 64, in <lambda>
>>   File "setup.py", line 12, in <module>
>>     OPTIONS = {}
>> ImportError: cannot import name PyPIRCCommand
>>
>>
>> I'm not able to cd into the egg to examine its contents, sadly, so I can't
>> figure out what exactly it's trying to do. Has anyone seen an error like
>> this before?
>>
>> -Chris
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pythonmac-sig/attachments/20110209/25eb7003/attachment.html>


More information about the Pythonmac-SIG mailing list