[MacPorts] #47429: py-flake8, py-pep8: current versions not compatible
MacPorts
noreply at macports.org
Tue Jul 7 08:28:36 PDT 2015
#47429: py-flake8, py-pep8: current versions not compatible
--------------------------------+--------------------
Reporter: rectalogic@… | Owner: petr@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords:
Port: py-flake8 py-pep8 |
--------------------------------+--------------------
Comment (by jacoblee@…):
Adding this to this ticket, since it is not resolved, and the issue is
similar. On a relatively clean install:
sudo port install py27-flake8
Installed:
{{{
flake8_select @0.1_0
py27-flake8 @2.4.1_0
py27-flake8-mccabe @0.3.1_0
py27-pyflakes @0.9.2_0
pyflakes_select @0.1_0
pep8_select @0.1_0
py27-pep8 @1.6.2_0
py27-flake8-mccabe @0.3.1_0
}}}
Found, that I had to call `port select --set` on the flake8 dependencies,
pyflakes and pep8. I was surprised, but maybe that is not so unusual.
When trying to call flake8 I get the following traceback:
{{{
Traceback (most recent call last):
File "/opt/local/bin/flake8", 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/pkg_resources/__init__.py", line 3084, in <module>
@_call_aside
File
"/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
/site-packages/pkg_resources/__init__.py", line 3070, in _call_aside
f(*args, **kwargs)
File
"/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
/site-packages/pkg_resources/__init__.py", line 3097, in
_initialize_master_working_set
working_set = WorkingSet._build_master()
File
"/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
/site-packages/pkg_resources/__init__.py", line 653, in _build_master
return cls._build_from_requirements(__requires__)
File
"/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
/site-packages/pkg_resources/__init__.py", line 666, in
_build_from_requirements
dists = ws.resolve(reqs, Environment())
File
"/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
/site-packages/pkg_resources/__init__.py", line 839, in resolve
raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The
'pep8!=1.6.0,!=1.6.1,!=1.6.2,>=1.5.7' distribution was not found and is
required by flake8
}}}
Oddly, my version of pep8 is 1.6.2 which is one of those listed in the
error message.
Here is the list of site-packages in my macports python site-packages
directory.
{{{
$ ls -1
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
/site-packages/README
_markerlib
easy_install.py
easy_install.pyc
flake8
flake8-2.4.1-py2.7.egg-info
mccabe-0.3.1-py2.7.egg-info
mccabe.py
mccabe.pyc
pep8-1.6.2-py2.7.egg-info
pep8.py
pep8.pyc
pip
pip-7.1.0-py2.7.egg-info
pkg_resources
pyflakes
pyflakes-0.9.2-py2.7.egg-info
setuptools
setuptools-18.0.1-py2.7.egg-info
}}}
--
Ticket URL: <https://trac.macports.org/ticket/47429#comment:7>
MacPorts <https://www.macports.org/>
Ports system for OS X
More information about the macports-tickets
mailing list