Issue: when emerge -avuDN @world was run to upgrade the system, and the /etc/portage/make.conf also was updated PYTHON_TARGETS="python3_10 python3_11" PYTHON_SINGLE_TARGET="python3_10" as news said. The setuptools package still faied to install, and then caused many python related packages failure. Reproduction: every run of "emerge -avuDN @world" will 100% percent experience this issue, no matter how PYTHON_TARGETS and PYTHON_SINGLE_TARGET were set in /etc/portage/make.conf Reproducible: Always Steps to Reproduce: just run the command: emerge -avuDN @world Actual Results: when it goes package dev-python/setuptools, then encountered issue and block all following packages. Expected Results: emerge -avuDN @world could smoothly upgrade the system
Created attachment 865965 [details] emerge --info
Created attachment 865966 [details] emerge -pqv '=dev-python/setuptools-67.8.0-r1
Created attachment 865967 [details] ebuild environment
Created attachment 865968 [details] build log
We really need to add some error handling into setuptools.
(In reply to Sam James from comment #5) > We really need to add some error handling into setuptools. Hello Sam, then based on current situation and logs, anything manual that I can do to workaround this issue? cause my virtualization environment was impacted a little by this upgrade now.
Could you try running this for me: qfile -o /usr/lib/python*/site-packages/*/* and show the output?
(In reply to Sam James from comment #7) > Could you try running this for me: qfile -o > /usr/lib/python*/site-packages/*/* > > and show the output? localhost ~ # qfile -o /usr/lib/python*/site-packages/*/* /usr/lib/python3.11/site-packages/anyio-3.7.0-py3.11.egg/anyio /usr/lib/python3.11/site-packages/anyio-3.7.0-py3.11.egg/EGG-INFO /usr/lib/python3.11/site-packages/appdirs-1.4.4-py3.11.egg/appdirs.py /usr/lib/python3.11/site-packages/appdirs-1.4.4-py3.11.egg/EGG-INFO /usr/lib/python3.11/site-packages/appdirs-1.4.4-py3.11.egg/__pycache__ /usr/lib/python3.11/site-packages/click-8.1.3-py3.11.egg/click /usr/lib/python3.11/site-packages/click-8.1.3-py3.11.egg/EGG-INFO /usr/lib/python3.11/site-packages/Flask-2.2.5-py3.11.egg/EGG-INFO /usr/lib/python3.11/site-packages/Flask-2.2.5-py3.11.egg/flask /usr/lib/python3.11/site-packages/Flask_Cors-3.0.10-py3.11.egg/EGG-INFO /usr/lib/python3.11/site-packages/Flask_Cors-3.0.10-py3.11.egg/flask_cors /usr/lib/python3.11/site-packages/h11-0.14.0-py3.11.egg/EGG-INFO /usr/lib/python3.11/site-packages/h11-0.14.0-py3.11.egg/h11 /usr/lib/python3.11/site-packages/httpcore-0.16.3-py3.11.egg/EGG-INFO /usr/lib/python3.11/site-packages/httpcore-0.16.3-py3.11.egg/httpcore /usr/lib/python3.11/site-packages/httpx-0.23.3-py3.11.egg/EGG-INFO /usr/lib/python3.11/site-packages/httpx-0.23.3-py3.11.egg/httpx /usr/lib/python3.11/site-packages/itsdangerous-2.1.2-py3.11.egg/EGG-INFO /usr/lib/python3.11/site-packages/itsdangerous-2.1.2-py3.11.egg/itsdangerous /usr/lib/python3.11/site-packages/loguru-0.6.0-py3.11.egg/EGG-INFO /usr/lib/python3.11/site-packages/loguru-0.6.0-py3.11.egg/loguru /usr/lib/python3.11/site-packages/markdown_it_py-2.2.0-py3.11.egg/EGG-INFO /usr/lib/python3.11/site-packages/markdown_it_py-2.2.0-py3.11.egg/markdown_it /usr/lib/python3.11/site-packages/mdurl-0.1.2-py3.11.egg/EGG-INFO /usr/lib/python3.11/site-packages/mdurl-0.1.2-py3.11.egg/mdurl /usr/lib/python3.11/site-packages/Pandora_ChatGPT-1.1.6-py3.11.egg/EGG-INFO /usr/lib/python3.11/site-packages/Pandora_ChatGPT-1.1.6-py3.11.egg/pandora /usr/lib/python3.11/site-packages/requests-2.28.2-py3.11.egg/EGG-INFO /usr/lib/python3.11/site-packages/requests-2.28.2-py3.11.egg/requests /usr/lib/python3.11/site-packages/rfc3986-1.5.0-py3.11.egg/EGG-INFO /usr/lib/python3.11/site-packages/rfc3986-1.5.0-py3.11.egg/rfc3986 /usr/lib/python3.11/site-packages/rich-13.3.5-py3.11.egg/EGG-INFO /usr/lib/python3.11/site-packages/rich-13.3.5-py3.11.egg/rich /usr/lib/python3.11/site-packages/sentry_sdk-1.17.0-py3.11.egg/EGG-INFO /usr/lib/python3.11/site-packages/sentry_sdk-1.17.0-py3.11.egg/sentry_sdk /usr/lib/python3.11/site-packages/sniffio-1.3.0-py3.11.egg/EGG-INFO /usr/lib/python3.11/site-packages/sniffio-1.3.0-py3.11.egg/sniffio /usr/lib/python3.11/site-packages/socksio-1.0.0-py3.11.egg/EGG-INFO /usr/lib/python3.11/site-packages/socksio-1.0.0-py3.11.egg/socksio /usr/lib/python3.11/site-packages/waitress-2.1.2-py3.11.egg/EGG-INFO /usr/lib/python3.11/site-packages/waitress-2.1.2-py3.11.egg/waitress /usr/lib/python3.11/site-packages/Werkzeug-2.2.3-py3.11.egg/EGG-INFO /usr/lib/python3.11/site-packages/Werkzeug-2.2.3-py3.11.egg/werkzeug
Hello any workaround for this issue? any hint? I'm asking this because, I just noticed that for now, there is even no chance to pull gentoo repository due to this issue, which may lead to be unable to pull future fix to resolve this. Here are the logs to pull latest gentoo repository: localhost ~ # emaint sync -r gentoo >>> Syncing repository 'gentoo' into '/var/db/repos/gentoo'... /usr/bin/git fetch origin --depth 1 remote: Enumerating objects: 532, done. remote: Counting objects: 100% (464/464), done. remote: Compressing objects: 100% (80/80), done. remote: Total 215 (delta 148), reused 197 (delta 134), pack-reused 0 Receiving objects: 100% (215/215), 100.13 KiB | 89.00 KiB/s, done. Resolving deltas: 100% (148/148), completed with 127 local objects. From https://github.com/gentoo-mirror/gentoo + ead05aeac9...f3ccebb2bf stable -> origin/stable (forced update) !!! Verifying against specified key requires gemato-14.5+ installed * IMPORTANT: 3 config files in '/etc' need updating. * See the CONFIGURATION FILES and CONFIGURATION FILES UPDATE TOOLS * sections of the emerge man page to learn how to update config files. Action: sync for repo: gentoo, returned code = 1
(In reply to Yuhu.Zhao from comment #8) > (In reply to Sam James from comment #7) > > Could you try running this for me: qfile -o > > /usr/lib/python*/site-packages/*/* > > > > and show the output? > > localhost ~ # qfile -o /usr/lib/python*/site-packages/*/* > /usr/lib/python3.11/site-packages/anyio-3.7.0-py3.11.egg/anyio Please delete all of these it returned then try a world upgrade again.
(In reply to Sam James from comment #10) > (In reply to Yuhu.Zhao from comment #8) > > (In reply to Sam James from comment #7) > > > Could you try running this for me: qfile -o > > > /usr/lib/python*/site-packages/*/* > > > > > > and show the output? > > > > localhost ~ # qfile -o /usr/lib/python*/site-packages/*/* > > /usr/lib/python3.11/site-packages/anyio-3.7.0-py3.11.egg/anyio > > Please delete all of these it returned then try a world upgrade again. Much appreciated, after delete all of above related orphan files, then the world upgrade works. and with this python3.10 to python3.11 introduction: https://www.gentoo.org/support/news-items/2023-04-02-python3-11.html and finally, my system all go well. A long way to go to play well with gentoo. Thank you! Will close this bug.
It turned out not a real bug, but some of my actions caused it. So close it as invalid.