Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 910694 - dev-python/setuptools-67.8.0-r1: install issue caused the whole emerge @world failure
Summary: dev-python/setuptools-67.8.0-r1: install issue caused the whole emerge @world...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-07-22 16:01 UTC by Yuhu.Zhao
Modified: 2023-07-26 09:48 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (emerge-info,7.31 KB, text/plain)
2023-07-22 16:06 UTC, Yuhu.Zhao
Details
emerge -pqv '=dev-python/setuptools-67.8.0-r1 (emerge-pqv,646 bytes, text/plain)
2023-07-22 16:08 UTC, Yuhu.Zhao
Details
ebuild environment (ebuild-environment,162.39 KB, text/plain)
2023-07-22 16:08 UTC, Yuhu.Zhao
Details
build log (build.log,58.03 KB, text/plain)
2023-07-22 16:10 UTC, Yuhu.Zhao
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Yuhu.Zhao 2023-07-22 16:01:38 UTC
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
Comment 1 Yuhu.Zhao 2023-07-22 16:06:56 UTC
Created attachment 865965 [details]
emerge --info
Comment 2 Yuhu.Zhao 2023-07-22 16:08:00 UTC
Created attachment 865966 [details]
emerge -pqv '=dev-python/setuptools-67.8.0-r1
Comment 3 Yuhu.Zhao 2023-07-22 16:08:44 UTC
Created attachment 865967 [details]
ebuild environment
Comment 4 Yuhu.Zhao 2023-07-22 16:10:21 UTC
Created attachment 865968 [details]
build log
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-07-22 17:36:03 UTC
We really need to add some error handling into setuptools.
Comment 6 Yuhu.Zhao 2023-07-23 14:41:04 UTC
(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.
Comment 7 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-07-23 21:03:10 UTC
Could you try running this for me: qfile -o /usr/lib/python*/site-packages/*/*

and show the output?
Comment 8 Yuhu.Zhao 2023-07-24 16:20:14 UTC
(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
Comment 9 Yuhu.Zhao 2023-07-25 08:59:47 UTC
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
Comment 10 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-07-25 11:14:16 UTC
(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.
Comment 11 Yuhu.Zhao 2023-07-26 09:47:02 UTC
(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.
Comment 12 Yuhu.Zhao 2023-07-26 09:48:23 UTC
It turned out not a real bug, but some of my actions caused it. So close it as invalid.