[MacPorts] #53342: flake8 has an incompatible pyflakes
MacPorts
noreply at macports.org
Tue Jan 17 16:13:50 UTC 2017
#53342: flake8 has an incompatible pyflakes
---------------------------+-----------------------------
Reporter: informatimago | Owner:
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.3.5
Keywords: | Port: flake8 pyflakes
---------------------------+-----------------------------
With both py27 and py35 versions of pyflakes and flake8, the version of
pyflakes installed is 1.5.0 and it's incompatible with the requirements of
flake8:
{{{
[pjb at macbook-trustonic :0.0 dev_kinibi_wb_sdk-LP34315237]$ sudo port
select --set flake8 flake8-35
Selecting 'flake8-35' for 'flake8' succeeded. 'flake8-35' is now active.
[pjb at macbook-trustonic :0.0 dev_kinibi_wb_sdk-LP34315237]$ which flake8
/opt/local/bin/flake8
[pjb at macbook-trustonic :0.0 dev_kinibi_wb_sdk-LP34315237]$ $(which flake8)
--version
Traceback (most recent call last):
File
"/opt/local/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5
/site-packages/pkg_resources/__init__.py", line 655, in _build_master
ws.require(__requires__)
File
"/opt/local/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5
/site-packages/pkg_resources/__init__.py", line 963, in require
needed = self.resolve(parse_requirements(requirements))
File
"/opt/local/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5
/site-packages/pkg_resources/__init__.py", line 854, in resolve
raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.ContextualVersionConflict: (pyflakes 1.5.0
(/opt/local/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5
/site-packages),
Requirement.parse('pyflakes!=1.2.0,!=1.2.1,!=1.2.2,<1.4.0,>=0.8.1'),
{'flake8'})
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/local/bin/flake8", line 6, in <module>
from pkg_resources import load_entry_point
File
"/opt/local/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5
/site-packages/pkg_resources/__init__.py", line 3019, in <module>
@_call_aside
File
"/opt/local/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5
/site-packages/pkg_resources/__init__.py", line 3003, in _call_aside
f(*args, **kwargs)
File
"/opt/local/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5
/site-packages/pkg_resources/__init__.py", line 3032, in
_initialize_master_working_set
working_set = WorkingSet._build_master()
File
"/opt/local/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5
/site-packages/pkg_resources/__init__.py", line 657, in _build_master
return cls._build_from_requirements(__requires__)
File
"/opt/local/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5
/site-packages/pkg_resources/__init__.py", line 670, in
_build_from_requirements
dists = ws.resolve(reqs, Environment())
File
"/opt/local/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5
/site-packages/pkg_resources/__init__.py", line 849, in resolve
raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The
'pyflakes!=1.2.0,!=1.2.1,!=1.2.2,<1.4.0,>=0.8.1' distribution was not
found and is required by flake8
[pjb at macbook-trustonic :0.0 dev_kinibi_wb_sdk-LP34315237]$ sudo port
select --set flake8 flake8-27
Selecting 'flake8-27' for 'flake8' succeeded. 'flake8-27' is now active.
[pjb at macbook-trustonic :0.0 dev_kinibi_wb_sdk-LP34315237]$ $(which flake8)
--version
Traceback (most recent call last):
File "/opt/local/bin/flake8", line 6, 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 3019, in <module>
@_call_aside
File
"/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
/site-packages/pkg_resources/__init__.py", line 3003, 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 3032, 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 657, 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 670, 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 849, in resolve
raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The
'pyflakes!=1.2.0,!=1.2.1,!=1.2.2,<1.4.0,>=0.8.1' distribution was not
found and is required by flake8
[pjb at macbook-trustonic :0.0 dev_kinibi_wb_sdk-LP34315237]$
}}}
--
Ticket URL: <https://trac.macports.org/ticket/53342>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list