Bug 1225394

Summary: pylint should Require: python-six
Product: [Fedora] Fedora Reporter: Tomas Lestach <tlestach>
Component: pylintAssignee: Haïkel Guémar <karlthered>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 22CC: bcl, bochecha, karlthered, mbridon, mrunge, tkasparek
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: pylint-1.4.3-2.fc22 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-05-28 12:02:20 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Fix dependency issues none

Description Tomas Lestach 2015-05-27 09:46:44 UTC
Description of problem:
Our koji build
http://koji.spacewalkproject.org/koji/taskinfo?taskID=187507
fails (see build.log) with:
Traceback (most recent call last):
  File "/usr/bin/pylint", line 5, in <module>
    from pkg_resources import load_entry_point
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3018, in <module>
    working_set = WorkingSet._build_master()
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 612, in _build_master
    ws.require(__requires__)
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 918, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 805, in resolve
    raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: six

Version-Release number of selected component (if applicable):
pylint-1.4.3-1.fc22

How reproducible:
always

Actual results:
pylint fails, because of missing pylint-six package

Expected results:
pylink should require pylint-six, if it needs it

Comment 1 Mathieu Bridon 2015-05-27 09:52:57 UTC
Created attachment 1030442 [details]
Fix dependency issues

Here's a patch that fixes this, as well as another dependency issue: pylint (python2) requires some python3 packages.

Comment 2 Mathieu Bridon 2015-05-27 10:02:58 UTC
I'll note that it's not entirely trivial to reproduce the issue, as DNF requires python-six, so it's installed by default on pretty much every Fedora 22+ system.

However, it does cause trouble in buildroots, for things using pylint, as we do in Spacewalk.

The simplest way to reproduce the issue is as follows:

    $ mock -r fedora-22-x86_64 --init
    $ mock -r fedora-22-x86_64 --install pylint
    $ mock -r fedora-22-x86_64 --shell
    <mock-chroot>sh-4.3# pylint
    Traceback (most recent call last):
      File "/usr/bin/pylint", line 5, in <module>
        from pkg_resources import load_entry_point
      File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3018, in <module>
        working_set = WorkingSet._build_master()
      File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 612, in _build_master
        ws.require(__requires__)
      File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 918, in require
        needed = self.resolve(parse_requirements(requirements))
      File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 805, in resolve
        raise DistributionNotFound(req)
    pkg_resources.DistributionNotFound: six

Comment 3 Haïkel Guémar 2015-05-27 10:18:36 UTC
Verified issue, I'm applying this patch as provenpackager as Mattias is currently ill.

Comment 4 Fedora Update System 2015-05-27 10:30:03 UTC
pylint-1.4.3-2.fc22 has been submitted as an update for Fedora 22.
https://admin.fedoraproject.org/updates/pylint-1.4.3-2.fc22

Comment 5 Fedora Update System 2015-05-28 12:02:20 UTC
pylint-1.4.3-2.fc22 has been pushed to the Fedora 22 stable repository.  If problems still persist, please make note of it in this bug report.