Bug 26977 - pylint error message on start: pkg_resources.DistributionNotFound: The 'lazy_object_proxy==1.4.*' distribution was not found and is required by astroid
Summary: pylint error message on start: pkg_resources.DistributionNotFound: The 'lazy_...
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Shlomi Fish
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-07-21 14:00 CEST by Olav Vitters
Modified: 2020-07-31 10:53 CEST (History)
1 user (show)

See Also:
Source RPM: python-astroid-2.4.1-1.mga8.src.rpm
CVE:
Status comment:


Attachments

Description Olav Vitters 2020-07-21 14:00:34 CEST
Description of problem:
Pylint doesn't want to start. Seems like a missing dependency? Could be something else.

Version-Release number of selected component (if applicable):
pylint-2.5.3-1.mga8.src.rpm

How reproducible:
Run pylint. It immediately gives an error message


Steps to Reproduce:
1. Run: pylint

Gives the following error message:
> $ pylint
> Traceback (most recent call last):
>   File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 584, in _build_master
>     ws.require(__requires__)
>   File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 901, in require
>     needed = self.resolve(parse_requirements(requirements))
>   File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 792, in resolve
>     raise VersionConflict(dist, req).with_context(dependent_req)
> pkg_resources.ContextualVersionConflict: (lazy-object-proxy 1.5.0 (/usr/lib64> /python3.8/site-packages), Requirement.parse('lazy_object_proxy==1.4.*'), {'astroid'})
> 
> During handling of the above exception, another exception occurred:
> 
> Traceback (most recent call last):
>   File "/bin/pylint", line 6, in <module>
>     from pkg_resources import load_entry_point
>   File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 3253, in <module>
>     def _initialize_master_working_set():
>   File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 3236, in _call_aside
>     f(*args, **kwargs)
>   File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 3265, in _initialize_master_working_set
>     working_set = WorkingSet._build_master()
>   File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 586, in _build_master
>     return cls._build_from_requirements(__requires__)
>   File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 599, in _build_from_requirements
>     dists = ws.resolve(reqs, Environment())
>   File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 787, in resolve
>     raise DistributionNotFound(req, requirers)
> pkg_resources.DistributionNotFound: The 'lazy_object_proxy==1.4.*' distribution was not found and is required by astroid
Comment 1 Lewis Smith 2020-07-21 21:08:56 CEST
[The package name is python3-pylint]
Thank you Olav for reporting this.

Assigning to the active maintainer Shlomi.

Assignee: bugsquad => shlomif

Comment 2 Jani Välimaa 2020-07-21 22:29:02 CEST
Fixed with python-astroid-2.4.2-1.mga8.

See Also: (none) => https://github.com/PyCQA/astroid/issues/800
CC: (none) => jani.valimaa
Source RPM: pylint-2.5.3-1.mga8.src.rpm => python-astroid-2.4.1-1.mga8.src.rpm

Comment 3 Jani Välimaa 2020-07-31 10:53:52 CEST
Closing as FIXED. Feel free to reopen, if needed.

Resolution: (none) => FIXED
Status: NEW => RESOLVED


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