Opened 11 years ago
Closed 11 years ago
#39452 closed defect (worksforme)
py27 conflict: nosetests, setuptools or distribute
Reported by: | VictorEijkhout (Victor Eijkhout) | Owned by: | akitada@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.1.3 |
Keywords: | Cc: | MarcusCalhoun-Lopez (Marcus Calhoun-Lopez), petrrr | |
Port: | py-nose |
Description
I have a python file that processes fine, but nosetests-2.7 has started misbehaving since I last updated my ports.
This seems to come from pretty deep:
Traceback (most recent call last): File "/opt/local/bin/nosetests-2.7", line 5, in <module> from pkg_resources import load_entry_point File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/distribute-0.6.36-py2.7.egg/pkg_resources.py", line 2825, in <module> add_activation_listener(lambda dist: dist.activate()) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/distribute-0.6.36-py2.7.egg/pkg_resources.py", line 710, in subscribe callback(dist) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/distribute-0.6.36-py2.7.egg/pkg_resources.py", line 2825, in <lambda> add_activation_listener(lambda dist: dist.activate()) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/distribute-0.6.36-py2.7.egg/pkg_resources.py", line 2257, in activate self.insert_on(path) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/distribute-0.6.36-py2.7.egg/pkg_resources.py", line 2358, in insert_on "with distribute. Found one at %s" % str(self.location)) ValueError: A 0.7-series setuptools cannot be installed with distribute. Found one at /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages
I found the following link, which is thoroughly uninformative to me:
https://bitbucket.org/sybren/python-rsa/issue/15/source-dist-fails-to-install-on-setuptools
Victor.
Change History (6)
comment:1 Changed 11 years ago by katzlbt (Dr. Thomas)
comment:2 Changed 11 years ago by mf2k (Frank Schima)
Cc: | mcalhoun@… added |
---|---|
Owner: | changed from macports-tickets@… to akitada@… |
Port: | py-nose added; py27-nosetests removed |
There is no port called "py27-nosetests". I'm assuming py27-nose. In the future, please Cc the port maintainer(s).
comment:3 Changed 11 years ago by jmroot (Joshua Root)
Where did /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/distribute-0.6.36-py2.7.egg/pkg_resources.py
come from? Check with:
port provides /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/distribute-0.6.36-py2.7.egg/pkg_resources.py
The pkg_resources module should be provided by setuptools, and having an old version of distribute around as well is probably bad. (Distribute recently re-merged with setuptools upstream.)
comment:5 Changed 11 years ago by petrrr
I would assume this was related to the change for distribute
to setuptools
at the time of the merge of the two projects and is probably not relevant anymore.
Summary: close!
comment:6 Changed 11 years ago by mf2k (Frank Schima)
Resolution: | → worksforme |
---|---|
Status: | new → closed |
Also no response from reporter.
This helped me to get the py27 system online again ... sudo port deactivate setuptools