Bug 1225394 - pylint should Require: python-six
Summary: pylint should Require: python-six
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: pylint
Version: 22
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Haïkel Guémar
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-05-27 09:46 UTC by Tomas Lestach
Modified: 2015-05-28 12:02 UTC (History)
6 users (show)

Fixed In Version: pylint-1.4.3-2.fc22
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-05-28 12:02:20 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Fix dependency issues (2.03 KB, application/mbox)
2015-05-27 09:52 UTC, Mathieu Bridon
no flags Details

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.


Note You need to log in before you can comment on or make changes to this bug.