This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: pkg_resources seems to treat python 3.10 as python 3.1
Type: behavior Stage:
Components: Installation Versions: Python 3.10
process
Status: open Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: RhinosF1, xtreak
Priority: normal Keywords:

Created on 2020-12-25 19:35 by RhinosF1, last changed 2022-04-11 14:59 by admin.

Messages (5)
msg383760 - (view) Author: RhinosF1 (RhinosF1) Date: 2020-12-25 19:35
As seen in https://github.com/MirahezeBots/MirahezeBots/pull/380/checks?check_run_id=1609121656, pkg_resources is throwing errors about version conflicts as it seems it thinks 3.10 is 3.1 or similar. This was fixed for PyPA/Pip in https://github.com/pypa/pip/issues/6730 so it installs from pip fine.
msg386789 - (view) Author: RhinosF1 (RhinosF1) Date: 2021-02-10 16:44
Adding log before it gets cleaned up as too old.

2020-12-25T17:42:03.0730305Z Traceback (most recent call last):
2020-12-25T17:42:03.0733282Z   File "/opt/hostedtoolcache/Python/3.10.0-alpha.3/x64/lib/python3.10/site-packages/pkg_resources/__init__.py", line 584, in _build_master
2020-12-25T17:42:03.0736279Z     ws.require(__requires__)
2020-12-25T17:42:03.0737901Z   File "/opt/hostedtoolcache/Python/3.10.0-alpha.3/x64/lib/python3.10/site-packages/pkg_resources/__init__.py", line 901, in require
2020-12-25T17:42:03.0739330Z     needed = self.resolve(parse_requirements(requirements))
2020-12-25T17:42:03.0742242Z   File "/opt/hostedtoolcache/Python/3.10.0-alpha.3/x64/lib/python3.10/site-packages/pkg_resources/__init__.py", line 792, in resolve
2020-12-25T17:42:03.0744366Z     raise VersionConflict(dist, req).with_context(dependent_req)
2020-12-25T17:42:03.0747963Z pkg_resources.ContextualVersionConflict: (geoip2 4.1.0 (/opt/hostedtoolcache/Python/3.10.0-alpha.3/x64/lib/python3.10/site-packages), Requirement.parse('geoip2<3.0'), {'sopel'})
2020-12-25T17:42:03.0754140Z 
2020-12-25T17:42:03.0754883Z During handling of the above exception, another exception occurred:
2020-12-25T17:42:03.0755487Z 
2020-12-25T17:42:03.0756004Z Traceback (most recent call last):
2020-12-25T17:42:03.0757250Z   File "/opt/hostedtoolcache/Python/3.10.0-alpha.3/x64/bin/sopel", line 6, in <module>
2020-12-25T17:42:03.0758216Z     from pkg_resources import load_entry_point
2020-12-25T17:42:03.0759775Z   File "/opt/hostedtoolcache/Python/3.10.0-alpha.3/x64/lib/python3.10/site-packages/pkg_resources/__init__.py", line 3262, in <module>
2020-12-25T17:42:03.0760984Z     def _initialize_master_working_set():
2020-12-25T17:42:03.0762804Z   File "/opt/hostedtoolcache/Python/3.10.0-alpha.3/x64/lib/python3.10/site-packages/pkg_resources/__init__.py", line 3245, in _call_aside
2020-12-25T17:42:03.0763832Z     f(*args, **kwargs)
2020-12-25T17:42:03.0765396Z   File "/opt/hostedtoolcache/Python/3.10.0-alpha.3/x64/lib/python3.10/site-packages/pkg_resources/__init__.py", line 3274, in _initialize_master_working_set
2020-12-25T17:42:03.0766668Z     working_set = WorkingSet._build_master()
2020-12-25T17:42:03.0768222Z   File "/opt/hostedtoolcache/Python/3.10.0-alpha.3/x64/lib/python3.10/site-packages/pkg_resources/__init__.py", line 586, in _build_master
2020-12-25T17:42:03.0769460Z     return cls._build_from_requirements(__requires__)
2020-12-25T17:42:03.0771154Z   File "/opt/hostedtoolcache/Python/3.10.0-alpha.3/x64/lib/python3.10/site-packages/pkg_resources/__init__.py", line 599, in _build_from_requirements
2020-12-25T17:42:03.0772389Z     dists = ws.resolve(reqs, Environment())
2020-12-25T17:42:03.0773911Z   File "/opt/hostedtoolcache/Python/3.10.0-alpha.3/x64/lib/python3.10/site-packages/pkg_resources/__init__.py", line 787, in resolve
2020-12-25T17:42:03.0775227Z     raise DistributionNotFound(req, requirers)
2020-12-25T17:42:03.0776843Z pkg_resources.DistributionNotFound: The 'geoip2<3.0' distribution was not found and is required by sopel
2020-12-25T17:42:03.0924206Z ##[error]Process completed with exit code 1.
msg386790 - (view) Author: RhinosF1 (RhinosF1) Date: 2021-02-10 16:50
Can't seem to reproduce on alpha 5.

https://github.com/MirahezeBots/MirahezeBots/pull/431/checks?check_run_id=1873007567

https://github.com/python/cpython/compare/v3.10.0a3...v3.10.0a5 doesn't load for me so not sure when it was fixed.
msg386792 - (view) Author: Karthikeyan Singaravelan (xtreak) * (Python committer) Date: 2021-02-10 17:06
setuptools and pip were upgraded in alpha 5 which could have fixed this : https://github.com/python/cpython/commit/4d11ecbb5ed78e6259ee27289c7638aad795f473
msg386794 - (view) Author: RhinosF1 (RhinosF1) Date: 2021-02-10 17:22
Thanks. Very likely!
History
Date User Action Args
2022-04-11 14:59:39adminsetgithub: 86910
2021-02-10 17:22:42RhinosF1setmessages: + msg386794
2021-02-10 17:06:40xtreaksetnosy: + xtreak
messages: + msg386792
2021-02-10 16:51:48RhinosF1settype: compile error -> behavior
2021-02-10 16:50:25RhinosF1setresolution: fixed
messages: + msg386790
2021-02-10 16:44:42RhinosF1setmessages: + msg386789
2020-12-25 19:35:20RhinosF1create