Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 892679 - dev-python/isort-5.11.4 install fails due to missing dependency
Summary: dev-python/isort-5.11.4 install fails due to missing dependency
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-01-30 21:35 UTC by Scott Furry
Modified: 2023-02-07 14:50 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Scott Furry 2023-01-30 21:35:54 UTC
Rebuilding python dependent packages produced an error with dev-python/isort-5.11.4 installation. Log file indicates that a dependency (pypi.org/project/pip-shims/) is missing for installation. Package pip-shims does not appear to exist in gentoo tree.


Reproducible: Always




Log File Output
----------------
 * Package:    dev-python/isort-5.11.4:0
 * Repository: gentoo
 * Maintainer: python@gentoo.org williamh@gentoo.org
 * Upstream:   https://github.com/PyCQA/isort/issues
 * USE:        abi_x86_64 amd64 elibc_glibc kernel_linux python_targets_python3_10 userland_GNU
 * FEATURES:   network-sandbox preserve-libs sandbox userpriv usersandbox
>>> Unpacking source...
>>> Unpacking isort-5.11.4.gh.tar.gz to /var/tmp/portage/dev-python/isort-5.11.4/work
>>> Source unpacked in /var/tmp/portage/dev-python/isort-5.11.4/work
>>> Preparing source in /var/tmp/portage/dev-python/isort-5.11.4/work/isort-5.11.4 ...
 * Build system packages:
 *   dev-python/gpep517            : 13
 *   dev-python/installer          : 0.6.0
 *   dev-python/poetry-core        : 1.5.0
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-python/isort-5.11.4/work/isort-5.11.4 ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/dev-python/isort-5.11.4/work/isort-5.11.4 ...
 * python3_10: running distutils-r1_run_phase distutils-r1_python_compile
 *   Building the wheel for isort-5.11.4 via poetry.core.masonry.api
gpep517 build-wheel --backend poetry.core.masonry.api --output-fd 3 --wheel-dir /var/tmp/portage/dev-python/isort-5.11.4/work/isort-5.11.4-python3_10/wheel
2023-01-30 14:17:56,305 gpep517 INFO Building wheel via backend poetry.core.masonry.api
Traceback (most recent call last):
  File "/usr/lib/python-exec/python3.10/gpep517", line 4, in <module>
    sys.exit(main())
  File "/usr/lib/python3.10/site-packages/gpep517/__main__.py", line 406, in main
    return func(args)
  File "/usr/lib/python3.10/site-packages/gpep517/__main__.py", line 202, in build_wheel
    print(build_wheel_impl(args, args.wheel_dir), file=out)
  File "/usr/lib/python3.10/site-packages/gpep517/__main__.py", line 194, in build_wheel_impl
    wheel_name = backend.build_wheel(str(wheel_dir), args.config_json)
  File "/usr/lib/python3.10/site-packages/poetry/core/masonry/api.py", line 53, in build_wheel
    poetry = Factory().create_poetry(Path(".").resolve(), with_groups=False)
  File "/usr/lib/python3.10/site-packages/poetry/core/factory.py", line 57, in create_poetry
    raise RuntimeError("The Poetry configuration is invalid:\n" + message)
RuntimeError: The Poetry configuration is invalid:
  - [extras.pipfile_deprecated_finder.2] 'pip-shims<=0.3.4' does not match '^[a-zA-Z-_.0-9]+$'

 * ERROR: dev-python/isort-5.11.4::gentoo failed (compile phase):
 *   Wheel build failed
 * 
 * Call stack:
 *     ebuild.sh, line  136:  Called src_compile
 *   environment, line 3356:  Called distutils-r1_src_compile
 *   environment, line 1553:  Called _distutils-r1_run_foreach_impl 'distutils-r1_python_compile'
 *   environment, line  727:  Called python_foreach_impl 'distutils-r1_run_phase' 'distutils-r1_python_compile'
 *   environment, line 3046:  Called multibuild_foreach_variant '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'distutils-r1_python_compile'
 *   environment, line 2610:  Called _multibuild_run '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'distutils-r1_python_compile'
 *   environment, line 2608:  Called _python_multibuild_wrapper 'distutils-r1_run_phase' 'distutils-r1_python_compile'
 *   environment, line 1039:  Called distutils-r1_run_phase 'distutils-r1_python_compile'
 *   environment, line 1535:  Called distutils-r1_python_compile
 *   environment, line 1356:  Called distutils_pep517_install '/var/tmp/portage/dev-python/isort-5.11.4/work/isort-5.11.4-python3_10/install'
 *   environment, line 1876:  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/isort-5.11.4::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-python/isort-5.11.4::gentoo'`.
 * The complete build log is located at '/var/log/portage/build/dev-python/isort-5.11.4:20230130-211711.log'.
 * For convenience, a symlink to the build log is located at '/var/tmp/portage/dev-python/isort-5.11.4/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-python/isort-5.11.4/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-python/isort-5.11.4/work/isort-5.11.4'
 * S: '/var/tmp/portage/dev-python/isort-5.11.4/work/isort-5.11.4'
-----------
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2023-02-07 14:45:47 UTC
Actually, this seems to be an error in pyproject.toml that triggers with newer poetry-core.  I'm going to patch it.
Comment 2 Larry the Git Cow gentoo-dev 2023-02-07 14:50:46 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b4f5b919fa681b54de41de184f80a6ef36242a2e

commit b4f5b919fa681b54de41de184f80a6ef36242a2e
Author:     Michał Górny <mgorny@gentoo.org>
AuthorDate: 2023-02-07 14:46:04 +0000
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: 2023-02-07 14:46:46 +0000

    dev-python/isort: Fix poetry syntax error in 5.11.4
    
    Closes: https://bugs.gentoo.org/892679
    Signed-off-by: Michał Górny <mgorny@gentoo.org>

 dev-python/isort/isort-5.11.4.ebuild | 2 ++
 1 file changed, 2 insertions(+)