Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

=dev-python/hatchling-1.26.0 emerge fails #201

Closed
org-tekeli-borisp opened this issue Nov 10, 2024 · 6 comments · Fixed by macaroni-os/kit-fixups#195
Closed

=dev-python/hatchling-1.26.0 emerge fails #201

org-tekeli-borisp opened this issue Nov 10, 2024 · 6 comments · Fixed by macaroni-os/kit-fixups#195
Labels
emerge failure Package does not emerge properly python-modules-kit

Comments

@org-tekeli-borisp
Copy link

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild     U  ] dev-python/hatchling-1.26.0::python-modules-kit [1.25.0::python-modules-kit] PYTHON_TARGETS="python3_9 -python3_10 -python3_7 -python3_8" 0 KiB

Total: 1 package (1 upgrade), Size of downloads: 0 KiB

Would you like to merge these packages? [Yes/No] 
>>> Verifying ebuild manifests
>>> Emerging (1 of 1) dev-python/hatchling-1.26.0::python-modules-kit
>>> Failed to emerge dev-python/hatchling-1.26.0, Log file:
>>>  '/run/portage/dev-python/hatchling-1.26.0/temp/build.log'
>>> Jobs: 0 of 1 complete, 1 failed                 Load avg: 2.47, 1.38, 1.10
 * Package:    dev-python/hatchling-1.26.0
 * Repository: python-modules-kit
 * USE:        amd64 elibc_glibc kernel_linux python_targets_python3_9 userland_GNU
 * FEATURES:   network-sandbox preserve-libs sandbox userpriv usersandbox
>>> Unpacking source...
>>> Unpacking hatchling-1.26.0.tar.gz to /run/portage/dev-python/hatchling-1.26.0/work
>>> Source unpacked in /run/portage/dev-python/hatchling-1.26.0/work
>>> Preparing source in /run/portage/dev-python/hatchling-1.26.0/work/hatchling-1.26.0 ...
 * Build system packages:
 *   dev-python/gpep517            : 16
 *   dev-python/installer          : 0.5.1-r1
>>> Source prepared.
>>> Configuring source in /run/portage/dev-python/hatchling-1.26.0/work/hatchling-1.26.0 ...
>>> Source configured.
>>> Compiling source in /run/portage/dev-python/hatchling-1.26.0/work/hatchling-1.26.0 ...
 * python3_9: running distutils-r1_run_phase distutils-r1_python_compile
 *   Building the wheel for hatchling-1.26.0 via hatchling.ouroboros
gpep517 build-wheel --backend hatchling.ouroboros --output-fd 3 --wheel-dir /run/portage/dev-python/hatchling-1.26.0/work/hatchling-1.26.0-python3_9/wheel
2024-11-10 17:11:25,108 gpep517 INFO Building wheel via backend hatchling.ouroboros
Traceback (most recent call last):
  File "/usr/lib/python-exec/python3.9/gpep517", line 4, in <module>
    sys.exit(main())
  File "/usr/lib/python3.9/site-packages/gpep517/__main__.py", line 439, in main
    return func(args)
  File "/usr/lib/python3.9/site-packages/gpep517/__main__.py", line 229, in build_wheel
    print(build_wheel_impl(args, args.wheel_dir), file=out)
  File "/usr/lib/python3.9/site-packages/gpep517/__main__.py", line 221, in build_wheel_impl
    wheel_name = backend.build_wheel(str(wheel_dir), args.config_json)
  File "/run/portage/dev-python/hatchling-1.26.0/work/hatchling-1.26.0/src/hatchling/build.py", line 58, in build_wheel
    return os.path.basename(next(builder.build(directory=wheel_directory, versions=['standard'])))
  File "/run/portage/dev-python/hatchling-1.26.0/work/hatchling-1.26.0/src/hatchling/builders/plugin/interface.py", line 90, in build
    self.metadata.validate_fields()
  File "/run/portage/dev-python/hatchling-1.26.0/work/hatchling-1.26.0/src/hatchling/metadata/core.py", line 266, in validate_fields
    self.core.validate_fields()
  File "/run/portage/dev-python/hatchling-1.26.0/work/hatchling-1.26.0/src/hatchling/metadata/core.py", line 1363, in validate_fields
    getattr(self, attribute)
  File "/run/portage/dev-python/hatchling-1.26.0/work/hatchling-1.26.0/src/hatchling/metadata/core.py", line 677, in license
    from packaging.licenses import canonicalize_license_expression
ModuleNotFoundError: No module named 'packaging.licenses'
 * ERROR: dev-python/hatchling-1.26.0::python-modules-kit failed (compile phase):
 *   Wheel build failed
 * 
 * Call stack:
 *     ebuild.sh, line   93:  Called src_compile
 *   environment, line 3566:  Called distutils-r1_src_compile
 *   environment, line 1593:  Called _distutils-r1_run_foreach_impl 'distutils-r1_python_compile'
 *   environment, line  699:  Called python_foreach_impl 'distutils-r1_run_phase' 'distutils-r1_python_compile'
 *   environment, line 3167:  Called multibuild_foreach_variant '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'distutils-r1_python_compile'
 *   environment, line 2641:  Called _multibuild_run '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'distutils-r1_python_compile'
 *   environment, line 2639:  Called _python_multibuild_wrapper 'distutils-r1_run_phase' 'distutils-r1_python_compile'
 *   environment, line 1085:  Called distutils-r1_run_phase 'distutils-r1_python_compile'
 *   environment, line 1575:  Called distutils-r1_python_compile
 *   environment, line 1398:  Called distutils_pep517_install '/run/portage/dev-python/hatchling-1.26.0/work/hatchling-1.26.0-python3_9/install'
 *   environment, line 1895:  Called die
 * The specific snippet of code:
 *       local wheel=$("${cmd[@]}" 3>&1 1>&2 || die "Wheel build failed");
 * 
 * If you need support, post the output of `emerge --info '=dev-python/hatchling-1.26.0::python-modules-kit'`,
 * the complete build log and the output of `emerge -pqv '=dev-python/hatchling-1.26.0::python-modules-kit'`.
 * The complete build log is located at '/run/portage/dev-python/hatchling-1.26.0/temp/build.log'.
 * The ebuild environment file is located at '/run/portage/dev-python/hatchling-1.26.0/temp/environment'.
 * Working directory: '/run/portage/dev-python/hatchling-1.26.0/work/hatchling-1.26.0'
 * S: '/run/portage/dev-python/hatchling-1.26.0/work/hatchling-1.26.0'

@org-tekeli-borisp org-tekeli-borisp added emerge failure Package does not emerge properly python-modules-kit labels Nov 10, 2024
@org-tekeli-borisp
Copy link
Author

No module named 'packaging.licenses'?

  File "/run/portage/dev-python/hatchling-1.26.0/work/hatchling-1.26.0/src/hatchling/metadata/core.py", line 677, in license
    from packaging.licenses import canonicalize_license_expression
ModuleNotFoundError: No module named 'packaging.licenses'

@org-tekeli-borisp
Copy link
Author

@geaaru I do not have enough know how in the whole python universe
Anything to do with pypa/packaging#828 ?

@org-tekeli-borisp
Copy link
Author

Seems like two day ago the PEP 639 has been released with the 24.2 version https://github.com/pypa/packaging/releases

@org-tekeli-borisp
Copy link
Author

We have =dev-python/packaging-21.3
image

@org-tekeli-borisp
Copy link
Author

image

@org-tekeli-borisp
Copy link
Author

Yep Bingo!

~ # emerge -av packaging

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild     U  ] dev-python/packaging-24.2::public-overlay [21.3::python-modules-kit] PYTHON_TARGETS="python3_9 -python2_7 -python3_10 -python3_7 -python3_8" 161 KiB

Total: 1 package (1 upgrade), Size of downloads: 161 KiB

Would you like to merge these packages? [Yes/No] 
>>> Verifying ebuild manifests
>>> Emerging (1 of 1) dev-python/packaging-24.2::public-overlay
>>> Installing (1 of 1) dev-python/packaging-24.2::public-overlay
>>> Recording dev-python/packaging in "world" favorites file...
>>> Jobs: 1 of 1 complete                           Load avg: 1.88, 1.75, 1.31
>>> Auto-cleaning packages...

>>> No outdated packages were found on your system.

 * GNU info directory index is up-to-date.
~ # emerge -av dev-python/hatchling

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild     U  ] dev-python/hatchling-1.26.0::python-modules-kit [1.25.0::python-modules-kit] PYTHON_TARGETS="python3_9 -python3_10 -python3_7 -python3_8" 0 KiB

Total: 1 package (1 upgrade), Size of downloads: 0 KiB

Would you like to merge these packages? [Yes/No] 
>>> Verifying ebuild manifests
>>> Emerging (1 of 1) dev-python/hatchling-1.26.0::python-modules-kit
>>> Installing (1 of 1) dev-python/hatchling-1.26.0::python-modules-kit
>>> Jobs: 1 of 1 complete                           Load avg: 1.90, 1.76, 1.34
>>> Auto-cleaning packages...

>>> No outdated packages were found on your system.

 * GNU info directory index is up-to-date.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
emerge failure Package does not emerge properly python-modules-kit
Projects
None yet
1 participant