[MacPorts] #47429: py27-flake8 not compatible with current py27-pep8

MacPorts noreply at macports.org
Mon Apr 13 08:04:06 PDT 2015


#47429: py27-flake8 not compatible with current py27-pep8
--------------------------+--------------------------------
 Reporter:  rectalogic@…  |      Owner:  macports-tickets@…
     Type:  defect        |     Status:  new
 Priority:  Normal        |  Milestone:
Component:  ports         |    Version:  2.3.3
 Keywords:                |       Port:  py27-flake8
--------------------------+--------------------------------
 py27-flake8 @2.4.0_0 installs py27-pep8 @1.6.2_0 but is not compatible
 with it and fails to start:

 {{{
 $ flake8
 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 3057, in <module>
     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 641, 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 654, 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 827, in resolve
     raise DistributionNotFound(req, requirers)
 pkg_resources.DistributionNotFound: The 'pep8<1.6,>=1.5.7' distribution
 was not found and is required by flake8
 }}}

 To make flake8 work you have to force downgrade py27-pep8 to @1.5.7_0

 flake8 2.4.0 introduced version caps on pep8, it requires an older version
 of pep8
 https://gitlab.com/pycqa/flake8/issues/35

-- 
Ticket URL: <https://trac.macports.org/ticket/47429>
MacPorts <https://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list