Bug 1451076 - [abrt] python3-pylint: resolve(): __init__.py:854:resolve:pkg_resources.DistributionNotFound: The 'astroid>=1.5.1' distribution was not found and is required by pylint
Summary: [abrt] python3-pylint: resolve(): __init__.py:854:resolve:pkg_resources.Distr...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: python-astroid
Version: 26
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Christian Dersch
QA Contact: Fedora Extras Quality Assurance
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:c25fe3a3341d8a72630c51af054...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-05-15 17:18 UTC by Christian Stadelmann
Modified: 2017-06-09 18:57 UTC (History)
3 users (show)

Fixed In Version: python-astroid-1.5.2-2.fc26 python-astroid-1.5.2-4.fc26
Clone Of:
Environment:
Last Closed: 2017-06-09 18:57:04 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (3.22 KB, text/plain)
2017-05-15 17:18 UTC, Christian Stadelmann
no flags Details
File: cpuinfo (1.13 KB, text/plain)
2017-05-15 17:18 UTC, Christian Stadelmann
no flags Details
File: namespaces (102 bytes, text/plain)
2017-05-15 17:18 UTC, Christian Stadelmann
no flags Details

Description Christian Stadelmann 2017-05-15 17:18:17 UTC
Description of problem:
I started eclipse-pydev, which runs pylint on some of my source files.

Version-Release number of selected component:
python3-pylint-1.7.1-1.fc26

Additional info:
reporter:       libreport-2.9.1
cmdline:        /usr/bin/python3 /usr/bin/pylint-3.6 --output-format=text '--msg-template=\'{C}:{line:3d},{column:2d}: {msg} ({symbol})\'' /home/username/path/to/python/package/panels.py
crash_function: resolve
exception_type: pkg_resources.ContextualVersionConflict
executable:     /usr/bin/pylint-3.6
kernel:         4.11.0-2.fc26.x86_64
runlevel:       N 5
type:           Python3

Truncated backtrace:
__init__.py:854:resolve:pkg_resources.DistributionNotFound: The 'astroid>=1.5.1' distribution was not found and is required by pylint

Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 654, in _build_master
    ws.require(__requires__)
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 968, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 859, in resolve
    raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.ContextualVersionConflict: (astroid 1.4.9 (/usr/lib/python3.6/site-packages), Requirement.parse('astroid>=1.5.1'), {'pylint'})

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/pylint-3.6", line 6, in <module>
    from pkg_resources import load_entry_point
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 3036, in <module>
    @_call_aside
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 3020, in _call_aside
    f(*args, **kwargs)
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 3049, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 656, in _build_master
    return cls._build_from_requirements(__requires__)
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 669, in _build_from_requirements
    dists = ws.resolve(reqs, Environment())
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 854, in resolve
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'astroid>=1.5.1' distribution was not found and is required by pylint

Local variables in innermost frame:
new_requirement: Requirement.parse('astroid>=1.5.1')
new_requirements: []
requirers: {'pylint'}
ws: <pkg_resources.WorkingSet object at 0x7f1721cdca90>
dist: None
req: Requirement.parse('astroid>=1.5.1')
required_by: defaultdict(<class 'set'>, {Requirement.parse('mccabe'): {'pylint'}, Requirement.parse('isort>=4.2.5'): {'pylint'}, Requirement.parse('six'): {'pylint'}, Requirement.parse('astroid>=1.5.1'): {'pylint'}})
req_extras: {Requirement.parse('mccabe'): (), Requirement.parse('isort>=4.2.5'): (), Requirement.parse('six'): (), Requirement.parse('astroid>=1.5.1'): ()}
to_activate: [pylint 1.7.1 (/usr/lib/python3.6/site-packages), mccabe 0.6.1 (/usr/lib/python3.6/site-packages), isort 4.2.5 (/usr/lib/python3.6/site-packages), six 1.10.0 (/usr/lib/python3.6/site-packages)]
best: {'pylint': pylint 1.7.1 (/usr/lib/python3.6/site-packages), 'mccabe': mccabe 0.6.1 (/usr/lib/python3.6/site-packages), 'isort': isort 4.2.5 (/usr/lib/python3.6/site-packages), 'six': six 1.10.0 (/usr/lib/python3.6/site-packages), 'astroid': None}
processed: {Requirement.parse('pylint==1.7.1'): True, Requirement.parse('mccabe'): True, Requirement.parse('isort>=4.2.5'): True, Requirement.parse('six'): True}
extras: None
replace_conflicting: False
installer: None
env: <pkg_resources.Environment object at 0x7f1721e499e8>
requirements: []
self: <pkg_resources.WorkingSet object at 0x7f1721cdca90>

Comment 1 Christian Stadelmann 2017-05-15 17:18:26 UTC
Created attachment 1279057 [details]
File: backtrace

Comment 2 Christian Stadelmann 2017-05-15 17:18:28 UTC
Created attachment 1279058 [details]
File: cpuinfo

Comment 3 Christian Stadelmann 2017-05-15 17:18:30 UTC
Created attachment 1279059 [details]
File: namespaces

Comment 4 Christian Stadelmann 2017-05-15 17:20:05 UTC
The package `python3-astroid` is installed and can be imported into any python3 file using the `import astroid` statement.

Comment 5 Christian Stadelmann 2017-05-15 17:21:23 UTC
Probably a duplicate or result of bug #1404986.

Comment 6 Christian Dersch 2017-05-15 17:21:31 UTC
There was an issue in python-astroid-1.5.2-1.fc26, fixed in python-astroid-1.5.2-2.fc26, see https://bodhi.fedoraproject.org/updates/FEDORA-2017-a312783698

Comment 7 Fedora Update System 2017-05-15 17:22:42 UTC
pylint-1.7.1-1.fc26 python-astroid-1.5.2-2.fc26 python-lazy-object-proxy-1.3.1-1.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2017-a312783698

Comment 8 Fedora Update System 2017-05-16 06:08:52 UTC
pylint-1.7.1-1.fc26, python-astroid-1.5.2-2.fc26, python-lazy-object-proxy-1.3.1-1.fc26 has been pushed to the Fedora 26 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-a312783698

Comment 9 Fedora Update System 2017-05-29 09:26:13 UTC
pylint-1.7.1-1.fc26 python-astroid-1.5.2-4.fc26 python-lazy-object-proxy-1.3.1-1.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2017-a312783698

Comment 10 Fedora Update System 2017-05-29 23:05:13 UTC
pylint-1.7.1-1.fc26, python-astroid-1.5.2-4.fc26, python-lazy-object-proxy-1.3.1-1.fc26 has been pushed to the Fedora 26 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-a312783698

Comment 11 Fedora Update System 2017-06-09 18:57:04 UTC
pylint-1.7.1-1.fc26, python-astroid-1.5.2-4.fc26, python-lazy-object-proxy-1.3.1-1.fc26 has been pushed to the Fedora 26 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.