#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 |
#52994: flake8 fails to run with pkg_resources.DistributionNotFound
-------------------------+---------------------- Reporter: rectalogic | Owner: petrrr Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.3.5 Resolution: | Keywords: Port: py-flake8 | -------------------------+---------------------- Changes (by mf2k): * owner: => petrrr * status: new => assigned Comment: In the future, please Cc the port maintainers ({{{port info --maintainers py-flake8}}}), if any. -- Ticket URL: <https://trac.macports.org/ticket/52994#comment:1> MacPorts <https://www.macports.org/> Ports system for macOS |
In reply to this post by MacPorts
#52994: flake8 fails to run with pkg_resources.DistributionNotFound
-------------------------+-------------------- Reporter: rectalogic | Owner: petrrr Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.3.5 Resolution: fixed | Keywords: Port: py-flake8 | -------------------------+-------------------- Changes (by petrrr): * status: assigned => closed * resolution: => fixed Comment: In [changeset:"03b02e54f1332dff07e88d8e9be5b806b3d47958/macports-ports" 03b02e5/macports-ports]: {{{ #!ConfigurableCommitTicketReference repository="macports-ports" revision="03b02e54f1332dff07e88d8e9be5b806b3d47958" py-flake8: add dependencies for Python 2.7 The two dependencies are required only for the py27 subport and available in the standard library otherwise. * configparser renamed in Python 3 * enum since Python 3.4 Fixes: https://trac.macports.org/ticket/52994 }}} -- Ticket URL: <https://trac.macports.org/ticket/52994#comment:2> MacPorts <https://www.macports.org/> Ports system for macOS |
In reply to this post by MacPorts
#52994: flake8 fails to run with pkg_resources.DistributionNotFound
-------------------------+-------------------- Reporter: rectalogic | Owner: petrrr Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.3.5 Resolution: fixed | Keywords: Port: py-flake8 | -------------------------+-------------------- Comment (by petrrr): Such things get occasionally unobserved because the respective packages are already installed through other python packages. Thanks for reporting! -- Ticket URL: <https://trac.macports.org/ticket/52994#comment:3> MacPorts <https://www.macports.org/> Ports system for macOS |
Free forum by Nabble | Edit this page |