Hi,

I have not updated my system for a while. And my emerge command failed with
these errors. How do I fix the poetry's build failures?

Thanks,
Hung

>>> Compiling source in
/tmp/portage/dev-python/poetry-core-1.8.1/work/poetry-core-1.8.1 ...
 * python3_11: running distutils-r1_run_phase distutils-r1_python_compile
 *   Building the wheel for poetry-core-1.8.1 via poetry.core.masonry.api
python3.11 -m gpep517 build-wheel --prefix=/usr --backend
poetry.core.masonry.api --output-fd 3 --wheel-dir
/tmp/portage/dev-python/poetry-core-1.8.1/work/poetry-core-1.8.1-python3_11/wheel
2024-01-07 19:14:19,775 gpep517 INFO Building wheel via backend
poetry.core.masonry.api
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 429,
in <module>
    sys.exit(main())
             ^^^^^^
  File "/usr/lib/python3.11/site-packages/gpep517/__main__.py", line 425,
in main
    return func(args)
           ^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/gpep517/__main__.py", line 215,
in build_wheel
    print(build_wheel_impl(args, args.wheel_dir), file=out)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/gpep517/__main__.py", line 207,
in build_wheel_impl
    wheel_name = backend.build_wheel(str(wheel_dir), args.config_json)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/poetry/core/masonry/api.py", line
66, in build_wheel
    poetry = Factory().create_poetry(Path(".").resolve(), with_dev=False)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/poetry/core/factory.py", line 43,
in create_poetry
    raise RuntimeError("The Poetry configuration is invalid:\n" + message)
RuntimeError: The Poetry configuration is invalid:
  - Additional properties are not allowed ('group' was unexpected)

 * ERROR: dev-python/poetry-core-1.8.1::gentoo failed (compile phase):
 *   Wheel build failed
 *
 * Call stack:
 *     ebuild.sh, line  136:  Called src_compile
 *   environment, line 3878:  Called distutils-r1_src_compile
 *   environment, line 1866:  Called _distutils-r1_run_foreach_impl
'distutils-r1_python_compile'
 *   environment, line  728:  Called python_foreach_impl
'distutils-r1_run_phase' 'distutils-r1_python_compile'
 *   environment, line 3495:  Called multibuild_foreach_variant
'_python_multibuild_wrapper' 'distutils-r1_run_phase'
'distutils-r1_python_compile'
 *   environment, line 3052:  Called _multibuild_run
'_python_multibuild_wrapper' 'distutils-r1_run_phase'
'distutils-r1_python_compile'
 *   environment, line 3050:  Called _python_multibuild_wrapper
'distutils-r1_run_phase' 'distutils-r1_python_compile'
 *   environment, line 1151:  Called distutils-r1_run_phase
'distutils-r1_python_compile'
 *   environment, line 1848:  Called distutils-r1_python_compile
 *   environment, line 1663:  Called distutils_pep517_install
'/tmp/portage/dev-python/poetry-core-1.8.1/work/poetry-core-1.8.1-python3_11/install'
 *   environment, line 2204:  Called die
 * The specific snippet of code:
 *       local wheel=$("${cmd[@]}" 3>&1 1>&2 || die "Wheel build failed");

Attachment: emerge-info.log
Description: Binary data

Reply via email to