View previous topic :: View next topic |
Author |
Message |
g047 n00b
Joined: 22 Aug 2022 Posts: 23
|
Posted: Mon Jun 03, 2024 12:15 pm Post subject: [SOLVED] python3.12 upgrade fails pycparser fails |
|
|
Followed the instructions, I don't have any specific PYTHON_TARGETS or PYTHON_SINGLE_TARGETS set, dev-python/pycparser still seems to require python_targets_3_11
Code: |
* Package: dev-python/pycparser-2.22:0
* Repository: gentoo
* Maintainer: python@gentoo.org
* USE: abi_x86_64 amd64 elibc_glibc kernel_linux python_targets_python3_11 python_targets_python3_12
* FEATURES: network-sandbox preserve-libs sandbox userpriv usersandbox
>>> Unpacking source...
>>> Unpacking pycparser-2.22.tar.gz to /var/tmp/portage/dev-python/pycparser-2.22/work
>>> Source unpacked in /var/tmp/portage/dev-python/pycparser-2.22/work
>>> Preparing source in /var/tmp/portage/dev-python/pycparser-2.22/work/pycparser-2.22 ...
* Build system packages:
* dev-python/gpep517 : 16
* dev-python/installer : 0.7.0
* dev-python/setuptools : 69.5.1-r1
* dev-python/setuptools-rust : 1.9.0
* dev-python/setuptools-scm : 8.1.0
* dev-python/wheel : 0.43.0
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-python/pycparser-2.22/work/pycparser-2.22 ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/dev-python/pycparser-2.22/work/pycparser-2.22 ...
* python3_11: running distutils-r1_run_phase distutils-r1_python_compile
* Building the wheel for pycparser-2.22 via setuptools.build_meta:__legacy__
python3.11 -m gpep517 build-wheel --prefix=/usr --backend setuptools.build_meta:__legacy__ --output-fd 3 --wheel-dir /var/tmp/portage/dev-python/pycparser-2.22/work/pycparser-2.22-python3_11/wheel
2024-06-03 14:02:07,852 gpep517 INFO Building wheel via backend setuptools.build_meta:__legacy__
Traceback (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "/usr/lib/python3.11/site-packages/gpep517/__main__.py", line 443, in <module>
sys.exit(main())
^^^^^^
File "/usr/lib/python3.11/site-packages/gpep517/__main__.py", line 439, in main
return func(args)
^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/gpep517/__main__.py", line 229, in build_wheel
print(build_wheel_impl(args, args.wheel_dir), file=out)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/gpep517/__main__.py", line 221, in build_wheel_impl
wheel_name = backend.build_wheel(str(wheel_dir), args.config_json)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/setuptools/build_meta.py", line 410, in build_wheel
return self._build_with_temp_dir(
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/setuptools/build_meta.py", line 395, in _build_with_temp_dir
self.run_setup()
File "/usr/lib/python3.11/site-packages/setuptools/build_meta.py", line 487, in run_setup
super().run_setup(setup_script=setup_script)
File "/usr/lib/python3.11/site-packages/setuptools/build_meta.py", line 311, in run_setup
exec(code, locals())
File "<string>", line 35, in <module>
File "/usr/lib/python3.11/site-packages/setuptools/__init__.py", line 104, in setup
return distutils.core.setup(**attrs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 146, in setup
_setup_distribution = dist = klass(attrs)
^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/setuptools/dist.py", line 307, in __init__
_Distribution.__init__(self, dist_attrs)
File "/usr/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 284, in __init__
self.finalize_options()
File "/usr/lib/python3.11/site-packages/setuptools/dist.py", line 657, in finalize_options
for ep in sorted(loaded, key=by_order):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/setuptools/dist.py", line 656, in <lambda>
loaded = map(lambda e: e.load(), filtered)
^^^^^^^^
File "/usr/lib/python3.11/importlib/metadata/__init__.py", line 202, in load
module = import_module(match.group('module'))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
File "<frozen importlib._bootstrap>", line 1126, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 940, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "/usr/lib/python3.11/site-packages/setuptools_rust/__init__.py", line 1, in <module>
from .build import build_rust
File "/usr/lib/python3.11/site-packages/setuptools_rust/build.py", line 28, in <module>
from .command import RustCommand
File "/usr/lib/python3.11/site-packages/setuptools_rust/command.py", line 7, in <module>
from .extension import RustExtension
File "/usr/lib/python3.11/site-packages/setuptools_rust/extension.py", line 21, in <module>
from semantic_version import SimpleSpec
ModuleNotFoundError: No module named 'semantic_version'
* ERROR: dev-python/pycparser-2.22::gentoo failed (compile phase):
* Wheel build failed
*
* Call stack:
* ebuild.sh, line 136: Called src_compile
* environment, line 4081: Called distutils-r1_src_compile
* environment, line 1960: Called _distutils-r1_run_foreach_impl 'distutils-r1_python_compile'
* environment, line 774: Called python_foreach_impl 'distutils-r1_run_phase' 'distutils-r1_python_compile'
* environment, line 3680: Called multibuild_foreach_variant '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'distutils-r1_python_compile'
* environment, line 3186: Called _multibuild_run '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'distutils-r1_python_compile'
* environment, line 3184: Called _python_multibuild_wrapper 'distutils-r1_run_phase' 'distutils-r1_python_compile'
* environment, line 1262: Called distutils-r1_run_phase 'distutils-r1_python_compile'
* environment, line 1942: Called distutils-r1_python_compile
* environment, line 1757: Called distutils_pep517_install '/var/tmp/portage/dev-python/pycparser-2.22/work/pycparser-2.22-python3_11/install'
* environment, line 2342: Called die
* The specific snippet of code:
* [[ -n ${wheel} ]] || die "No wheel name returned";
*
* If you need support, post the output of `emerge --info '=dev-python/pycparser-2.22::gentoo'`,
* the complete build log and the output of `emerge -pqv '=dev-python/pycparser-2.22::gentoo'`.
* The complete build log is located at '/var/tmp/portage/dev-python/pycparser-2.22/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/dev-python/pycparser-2.22/temp/environment'.
* Working directory: '/var/tmp/portage/dev-python/pycparser-2.22/work/pycparser-2.22'
* S: '/var/tmp/portage/dev-python/pycparser-2.22/work/pycparser-2.22'
|
Output of Code: | emerge -pqv '=dev-python/pycparser-2.22::gentoo' |
Code: | [ebuild R ] dev-python/pycparser-2.22 USE="-test" PYTHON_TARGETS="python3_11 python3_12* (-pypy3) -python3_10 (-python3_13)" |
Output for Code: | emerge --info '=dev-python/pycparser-2.22::gentoo' | can be found here https://bpa.st/LCWA
Thank you.
Last edited by g047 on Mon Jun 03, 2024 1:44 pm; edited 1 time in total |
|
Back to top |
|
|
g047 n00b
Joined: 22 Aug 2022 Posts: 23
|
Posted: Mon Jun 03, 2024 1:43 pm Post subject: |
|
|
Seems to be solved for now by first forcing dev-python/setuptools-rust-1.9.0 to emerge.
got the idea from https://forums.gentoo.org/viewtopic-t-1169231.html and by digging around a bit in my logs
Hopefully the rest goes uninterrupted! |
|
Back to top |
|
|
g0rg0n Tux's lil' helper
Joined: 18 Feb 2006 Posts: 98
|
Posted: Sat Jun 15, 2024 4:55 am Post subject: |
|
|
i'm starting to think emerge -D python is required before running world update to ensure all python packages are rebuilt with correct python targets... _________________ nicewarm.coffee |
|
Back to top |
|
|
logrusx Advocate
Joined: 22 Feb 2018 Posts: 2435
|
Posted: Sat Jun 15, 2024 5:41 am Post subject: |
|
|
g0rg0n wrote: | i'm starting to think emerge -D python is required before running world update to ensure all python packages are rebuilt with correct python targets... |
What's your world update command?
p.s. always include the command you're running when asking for help.
Best Regards,
Georgi |
|
Back to top |
|
|
sam_ Developer
Joined: 14 Aug 2020 Posts: 1970
|
Posted: Sat Jun 15, 2024 9:17 am Post subject: |
|
|
g0rg0n wrote: | i'm starting to think emerge -D python is required before running world update to ensure all python packages are rebuilt with correct python targets... |
Please pay attention to logrusx's reply, but I should say: no, this is not the case wrt your -D concern. The issue in this thread ended up being bug 933553 which is now fixed. |
|
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
|
|