Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 579034 - =dev-python/pylint-1.5.5: requires >=dev-python/astroid-1.4.5
Summary: =dev-python/pylint-1.5.5: requires >=dev-python/astroid-1.4.5
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-04-04 18:24 UTC by Alex Brandt (RETIRED)
Modified: 2016-04-04 18:50 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Brandt (RETIRED) gentoo-dev 2016-04-04 18:24:11 UTC
When running the latest ~ARCH version of pylint, 1.5.5, the following error is thrown:

```
Traceback (most recent call last):
  File "/usr/lib64/python3.4/site-packages/pkg_resources/__init__.py", line 635, in _build_master
    ws.require(__requires__)
  File "/usr/lib64/python3.4/site-packages/pkg_resources/__init__.py", line 942, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib64/python3.4/site-packages/pkg_resources/__init__.py", line 834, in resolve
    raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.ContextualVersionConflict: (astroid 1.4.4 (/usr/lib64/python3.4/site-packages), Requirement.parse('astroid<1.5.0,>=1.4.5'), {'pylint'})

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python-exec/python3.4/pylint", line 5, in <module>
    from pkg_resources import load_entry_point
  File "/usr/lib64/python3.4/site-packages/pkg_resources/__init__.py", line 2900, in <module>
    @_call_aside
  File "/usr/lib64/python3.4/site-packages/pkg_resources/__init__.py", line 2886, in _call_aside
    f(*args, **kwargs)
  File "/usr/lib64/python3.4/site-packages/pkg_resources/__init__.py", line 2913, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
  File "/usr/lib64/python3.4/site-packages/pkg_resources/__init__.py", line 637, in _build_master
    return cls._build_from_requirements(__requires__)
  File "/usr/lib64/python3.4/site-packages/pkg_resources/__init__.py", line 650, in _build_from_requirements
    dists = ws.resolve(reqs, Environment())
  File "/usr/lib64/python3.4/site-packages/pkg_resources/__init__.py", line 829, in resolve
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'astroid<1.5.0,>=1.4.5' distribution was not found and is required by pylint
```

When I checked my version of pylint to ensure an update wasn't required, I found that the latest version in the tree was dev-python/astroid-1.4.4.  Looks like we're just missing the latest version of astroid for this version of pylint and the dependence on astroid needs to be tightened.
Comment 1 Alex Brandt (RETIRED) gentoo-dev 2016-04-04 18:25:25 UTC
I will throw together a bump for astroid and a fix for pylint as soon as I can but anyone should feel free to do this if they get to it before I do.
Comment 2 Alex Brandt (RETIRED) gentoo-dev 2016-04-04 18:32:41 UTC
Testing astroid bump in my overlay, will merge after proven successful.
Comment 3 Manuel Rüger (RETIRED) gentoo-dev 2016-04-04 18:50:46 UTC
Sorry,I saw your second comment too late. Sorry for the inconvenience.

commit d0b6555ad31bba3795eee06e2a04a6c8abd1192d
Author: Manuel Rüger <mrueg@gentoo.org>
Date:   Mon Apr 4 20:49:16 2016 +0200

    dev-python/pylint: Restrict dep on astroid
    
    Gentoo-Bug: #579034
    
    Package-Manager: portage-2.2.28