Hide Forgot
Description of problem: With python3-astroid-2.3.3-2.gitace7b29.fc31, even plain pylint-3 --version now fails. Version-Release number of selected component (if applicable): python3-astroid-2.3.3-2.gitace7b29.fc31 python3-pylint-2.3.1-2.fc31.noarch How reproducible: Deterministic. Steps to Reproduce: 1. pylint-3 --version Actual results: Traceback (most recent call last): File "/usr/bin/pylint-3", line 6, in <module> from pkg_resources import load_entry_point File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 3250, in <module> @_call_aside File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 3234, in _call_aside f(*args, **kwargs) File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 3263, in _initialize_master_working_set working_set = WorkingSet._build_master() File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 583, in _build_master ws.require(__requires__) File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 900, in require needed = self.resolve(parse_requirements(requirements)) File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 786, in resolve raise DistributionNotFound(req, requirers) pkg_resources.DistributionNotFound: The 'typed-ast<1.5,>=1.4.0' distribution was not found and is required by astroid Expected results: pylint-3 2.3.1 astroid 2.3.3 Python 3.7.4 (default, Aug 12 2019, 14:45:07) [GCC 9.1.1 20190605 (Red Hat 9.1.1-2)] Additional info: Downgrading to python3-astroid-2.2.5-4.git28fc86f.fc31.noarch seems to help.
*** Bug 1787688 has been marked as a duplicate of this bug. ***
FEDORA-2020-b9a7ade736 has been submitted as an update to Fedora 31. https://bodhi.fedoraproject.org/updates/FEDORA-2020-b9a7ade736
python-lazy-object-proxy-1.4.3-1.fc31 has been pushed to the Fedora 31 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-2020-b9a7ade736
Even with python3-lazy-object-proxy-1.4.3-1.fc31.x86_64, I still get # pylint-3 --version Traceback (most recent call last): File "/usr/bin/pylint-3", line 6, in <module> from pkg_resources import load_entry_point File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 3250, in <module> @_call_aside File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 3234, in _call_aside f(*args, **kwargs) File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 3263, in _initialize_master_working_set working_set = WorkingSet._build_master() File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 583, in _build_master ws.require(__requires__) File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 900, in require needed = self.resolve(parse_requirements(requirements)) File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 786, in resolve raise DistributionNotFound(req, requirers) pkg_resources.DistributionNotFound: The 'typed-ast<1.5,>=1.4.0' distribution was not found and is required by astroid
Also fails with: python3-lazy-object-proxy-1.3.1-10.fc31.x86_64 as used in totem's rawhide CI: https://gitlab.gnome.org/GNOME/totem/-/jobs/546056
Do you have python3-typed_ast installed, and if not, does that fix it?
I would recommend to add python3-typed_ast as dependency in python3-astroid to ensure it's available on the system.
Doing so.
I also needed to force the installation of a newer version of python-lazy-object-proxy, as version 1.3 isn't new enough, and it would still fail at runtime. This also needs to be added as an explicit dependency in the package. raise DistributionNotFound(req, requirers) pkg_resources.DistributionNotFound: The 'lazy_object_proxy==1.4.*' distribution was not found and is required by astroid
Fresh installation of python3-pylint-2.3.1-2.fc31.noarch pulls in python3-astroid-2.3.3-2.gitace7b29.fc31.noarch but not python3-typed_ast. Downgrading python3-astroid to python3-astroid-2.2.5-4.git28fc86f.fc31.noarch pulls in python3-typed_ast-1.4.0-2.fc31.x86_64. Upgrading python3-astroid back to python3-astroid-2.3.3-2.gitace7b29.fc31.noarch keeps the python3-typed_ast installed and then I get the pkg_resources.DistributionNotFound: The 'lazy_object_proxy==1.4.*' distribution was not found and is required by astroid error. Upgrading python3-lazy-object-proxy to python3-lazy-object-proxy-1.4.3-1.fc31.x86_64 from updates-testing fixes the problem. So it seems like the python3-typed_ast dependency got lost with some of the latest build of python3-astroid.
python-astroid-2.3.3-3.gitace7b29.fc31 has been pushed to the Fedora 31 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-2020-a7ca62459a
Fresh installation of python3-pylint-2.3.1-2.fc31.noarch with https://kojipkgs.fedoraproject.org//packages/python-astroid/2.3.3/3.gitace7b29.fc31/noarch/python3-astroid-2.3.3-3.gitace7b29.fc31.noarch.rpm causes things to fail with # pylint-3 --version Traceback (most recent call last): File "/usr/bin/pylint-3", line 6, in <module> from pkg_resources import load_entry_point File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 3250, in <module> @_call_aside File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 3234, in _call_aside f(*args, **kwargs) File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 3263, in _initialize_master_working_set working_set = WorkingSet._build_master() File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 583, in _build_master ws.require(__requires__) File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 900, in require needed = self.resolve(parse_requirements(requirements)) File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 786, in resolve raise DistributionNotFound(req, requirers) pkg_resources.DistributionNotFound: The 'six~=1.12' distribution was not found and is required by astroid
FEDORA-2020-177c2edb58 has been submitted as an update to Fedora 31. https://bodhi.fedoraproject.org/updates/FEDORA-2020-177c2edb58
FEDORA-EPEL-2020-22d337d626 has been submitted as an update to Fedora EPEL 8. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2020-22d337d626
Installation with https://kojipkgs.fedoraproject.org//packages/python-astroid/2.3.3/4.gitace7b29.fc31/noarch/python3-astroid-2.3.3-4.gitace7b29.fc31.noarch.rpm pulls python3-typed_ast-1.4.0-2.fc31.x86_64 and python3-six-1.12.0-2.fc31.noarch in but the python3-lazy-object-proxy versioned dependency would be nice, to avoid # pylint-3 --version Traceback (most recent call last): File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 583, in _build_master ws.require(__requires__) File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 900, in require needed = self.resolve(parse_requirements(requirements)) File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 791, in resolve raise VersionConflict(dist, req).with_context(dependent_req) pkg_resources.ContextualVersionConflict: (lazy-object-proxy 1.3.1 (/usr/lib64/python3.7/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 "/usr/bin/pylint-3", line 6, in <module> from pkg_resources import load_entry_point File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 3250, in <module> @_call_aside File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 3234, in _call_aside f(*args, **kwargs) File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 3263, in _initialize_master_working_set working_set = WorkingSet._build_master() File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 585, in _build_master return cls._build_from_requirements(__requires__) File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 598, in _build_from_requirements dists = ws.resolve(reqs, Environment()) File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 786, in resolve raise DistributionNotFound(req, requirers) pkg_resources.DistributionNotFound: The 'lazy_object_proxy==1.4.*' distribution was not found and is required by astroid OTOH, manually upgrading to https://kojipkgs.fedoraproject.org//packages/python-lazy-object-proxy/1.4.3/1.fc31/x86_64/python3-lazy-object-proxy-1.4.3-1.fc31.x86_64.rpm fixes the issue, so if both the python3-lazy-object-proxy-1.4.3-1.fc31 and python3-astroid-2.3.3-4.gitace7b29.fc31 erratas are pushed, the problem will be solved even without the versioned dependency.
python-lazy-object-proxy-1.4.3-1.fc31 has been pushed to the Fedora 31 stable repository. If problems still persist, please make note of it in this bug report.
python-astroid-2.3.3-4.gitace7b29.fc31 has been pushed to the Fedora 31 stable repository. If problems still persist, please make note of it in this bug report.
python-astroid-2.3.3-4.gitace7b29.el8 has been pushed to the Fedora EPEL 8 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-EPEL-2020-22d337d626
python-astroid-2.3.3-6.gitace7b29.el8, python-lazy-object-proxy-1.4.3-2.el8 has been pushed to the Fedora EPEL 8 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-EPEL-2020-8841b40fce
python-astroid-2.3.3-6.gitace7b29.el8, python-lazy-object-proxy-1.4.3-2.el8 has been pushed to the Fedora EPEL 8 stable repository. If problems still persist, please make note of it in this bug report.