[MacPorts] #52994: flake8 fails to run with pkg_resources.DistributionNotFound
MacPorts
noreply at macports.org
Fri Dec 2 15:16:36 CET 2016
#52994: flake8 fails to run with pkg_resources.DistributionNotFound
------------------------+-----------------------
Reporter: rectalogic | Owner:
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.3.5
Keywords: | Port: py-flake8
------------------------+-----------------------
py-flake8 3.2.1 port fails to run:
{{{
$ flake8
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 3017, 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 3030, 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 659, in _build_master
ws.require(__requires__)
File
"/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
/site-packages/pkg_resources/__init__.py", line 967, in require
needed = self.resolve(parse_requirements(requirements))
File
"/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
/site-packages/pkg_resources/__init__.py", line 853, in resolve
raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'configparser' distribution was
not found and is required by flake8
}}}
`port install py-configparser` fixes that but results in:
{{{
$ flake8
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 3017, 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 3030, 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 659, in _build_master
ws.require(__requires__)
File
"/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
/site-packages/pkg_resources/__init__.py", line 967, in require
needed = self.resolve(parse_requirements(requirements))
File
"/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
/site-packages/pkg_resources/__init__.py", line 853, in resolve
raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'enum34' distribution was not
found and is required by flake8
}}}
`port install py-enum34` fixes that.
--
Ticket URL: <https://trac.macports.org/ticket/52994>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list