View previous topic :: View next topic |
Author |
Message |
szatox Advocate
Joined: 27 Aug 2013 Posts: 3421
|
Posted: Mon Jul 29, 2024 9:15 pm Post subject: Python update 3.11 -> 3.12 / requests fails to build |
|
|
I finally decided to unfreeze python version and go back to following defaults.
Automatic update failed; trying "safer upgrade procedure"... Which failed the same way:
Code: | # emerge -pqv '=dev-python/requests-2.32.3::gentoo'
[ebuild R ] dev-python/requests-2.32.3 USE="(test-rust) -socks5 -test" PYTHON_TARGETS="python3_11 python3_12* -pypy3 -python3_10 -python3_13"
|
Code: | ~~/snip/~~
File "/usr/lib/python3.11/site-packages/setuptools/build_meta.py", line 497, in run_setup
super().run_setup(setup_script=setup_script)
File "/usr/lib/python3.11/site-packages/setuptools/build_meta.py", line 313, in run_setup
exec(code, locals())
File "<string>", line 7, in <module>
ModuleNotFoundError: No module named 'setuptools.command.test'
* ERROR: dev-python/requests-2.32.3::gentoo failed (compile phase):
* Wheel build failed
*
* Call stack:
* ebuild.sh, line 136: Called src_compile
* environment, line 3989: Called distutils-r1_src_compile
* environment, line 1931: Called _distutils-r1_run_foreach_impl 'distutils-r1_python_compile'
* environment, line 760: Called python_foreach_impl 'distutils-r1_run_phase' 'distutils-r1_python_compile'
* environment, line 3598: Called multibuild_foreach_variant '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'distutils-r1_python_compile'
* environment, line 3104: Called _multibuild_run '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'distutils-r1_python_compile'
* environment, line 3102: Called _python_multibuild_wrapper 'distutils-r1_run_phase' 'distutils-r1_python_compile'
* environment, line 1233: Called distutils-r1_run_phase 'distutils-r1_python_compile'
* environment, line 1913: Called distutils-r1_python_compile
* environment, line 1728: Called distutils_pep517_install '/tmp/portage/dev-python/requests-2.32.3/work/requests-2.32.3-python3_11/install'
* environment, line 2254: Called die
* The specific snippet of code:
* local wheel=$("${cmd[@]}" 3>&1 1>&2 || die "Wheel build failed");
|
Log suggests issues with setuptools, but setuptools looks fine:
Code: | # emerge -pqv 'setuptools'
[binary R ] dev-python/setuptools-72.0.0-2 USE="-test" PYTHON_TARGETS="python3_11 python3_12 -pypy3 -python3_10 -python3_13" |
emerge --with-bdeps=y didn't help either, at this point I have no idea what the cause might be. So, any hints? _________________ Make Computing Fun Again |
|
Back to top |
|
|
Ionen Developer
Joined: 06 Dec 2018 Posts: 2851
|
Posted: Tue Jul 30, 2024 12:32 am Post subject: |
|
|
Seems you got hit by (very recent) https://bugs.gentoo.org/936879 and it has nothing to do with python3.12, tl;dr updating to setuptools-72.1.0 first should sort this out. |
|
Back to top |
|
|
figueroa Advocate
Joined: 14 Aug 2005 Posts: 3005 Location: Edge of marsh USA
|
Posted: Tue Jul 30, 2024 4:58 am Post subject: |
|
|
I upgraded a system yesterday that had been last upgraded in April, so it was still on 3.11, with no python entries in make.conf or package.use. All I did was run emerge -uDUa @world, exit a couple of times to correct some indicated gliches, then let let it rip for almost 600 packages. Reboot, build latest 6.6.~ stable kernel, reboot again, and done.
It absolutely didn't require any magic or wizardry. All my expertise was nearly wasted. The main glitch was I depcleaned libreoffice-bin since it's still stuck on pyton-3.11. When I was done I emerged libreoffice from source. _________________ Andy Figueroa
hp pavilion hpe h8-1260t/2AB5; spinning rust x3
i7-2600 @ 3.40GHz; 16 gb; Radeon HD 7570
amd64/23.0/split-usr/desktop (stable), OpenRC, -systemd -pulseaudio -uefi |
|
Back to top |
|
|
szatox Advocate
Joined: 27 Aug 2013 Posts: 3421
|
Posted: Tue Jul 30, 2024 9:39 am Post subject: |
|
|
Ah, yes, it does look like that bug indeed. After another sync things got much better.
Thanks _________________ Make Computing Fun Again |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|