Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 903977 - dev-util/pkgdev-0.2.5 - ModuleNotFoundError: No module named 'snakeoil'
Summary: dev-util/pkgdev-0.2.5 - ModuleNotFoundError: No module named 'snakeoil'
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: PkgCore project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-04-07 12:39 UTC by William Throwe
Modified: 2023-04-07 14:58 UTC (History)
0 users

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


Attachments
emerge --info (emerge.info,6.04 KB, text/plain)
2023-04-07 12:39 UTC, William Throwe
Details

Note You need to log in before you can comment on or make changes to this bug.
Description William Throwe 2023-04-07 12:39:56 UTC
Created attachment 859678 [details]
emerge --info

When building with --buildpkgonly.  Looks like it needs a DEPEND in addition to the existing RDEPEND.

Build log:

 * Package:    dev-util/pkgdev-0.2.5:0
 * Repository: gentoo
 * Maintainer: pkgcore@gentoo.org
 * USE:        abi_x86_64 amd64 elibc_glibc kernel_linux python_targets_python3_10 userland_GNU
 * FEATURES:   compressdebug network-sandbox preserve-libs sandbox splitdebug userpriv usersandbox
>>> Unpacking source...
>>> Unpacking pkgdev-0.2.5.tar.gz to /var/tmp/portage/dev-util/pkgdev-0.2.5/work
>>> Source unpacked in /var/tmp/portage/dev-util/pkgdev-0.2.5/work
>>> Preparing source in /var/tmp/portage/dev-util/pkgdev-0.2.5/work/pkgdev-0.2.5 ...
 * Build system packages:
 *   dev-python/gpep517            : 13
 *   dev-python/installer          : 0.6.0
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-util/pkgdev-0.2.5/work/pkgdev-0.2.5 ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/dev-util/pkgdev-0.2.5/work/pkgdev-0.2.5 ...
 * python3_10: running distutils-r1_run_phase distutils-r1_python_compile
 *   Building the wheel for pkgdev-0.2.5 via py_build
gpep517 build-wheel --backend py_build --output-fd 3 --wheel-dir /var/tmp/portage/dev-util/pkgdev-0.2.5/work/pkgdev-0.2.5-python3_10/wheel
2023-04-07 08:32:48,431 gpep517 INFO Building wheel via backend py_build
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 "/var/tmp/portage/dev-util/pkgdev-0.2.5/work/pkgdev-0.2.5/./py_build.py", line 33, in build_wheel
    return prepare_pkgcore(callback)
  File "/var/tmp/portage/dev-util/pkgdev-0.2.5/work/pkgdev-0.2.5/./py_build.py", line 19, in prepare_pkgcore
    write_verinfo(cleanup_files)
  File "/var/tmp/portage/dev-util/pkgdev-0.2.5/work/pkgdev-0.2.5/./py_build.py", line 8, in write_verinfo
    from snakeoil.version import get_git_version
ModuleNotFoundError: No module named 'snakeoil'
 * ERROR: dev-util/pkgdev-0.2.5::gentoo failed (compile phase):
 *   Wheel build failed
 * 
 * Call stack:
 *     ebuild.sh, line  136:  Called src_compile
 *   environment, line 3522:  Called distutils-r1_src_compile
 *   environment, line 1570:  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 3197:  Called multibuild_foreach_variant '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'distutils-r1_python_compile'
 *   environment, line 2627:  Called _multibuild_run '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'distutils-r1_python_compile'
 *   environment, line 2625:  Called _python_multibuild_wrapper 'distutils-r1_run_phase' 'distutils-r1_python_compile'
 *   environment, line 1060:  Called distutils-r1_run_phase 'distutils-r1_python_compile'
 *   environment, line 1552:  Called distutils-r1_python_compile
 *   environment, line 1377:  Called distutils_pep517_install '/var/tmp/portage/dev-util/pkgdev-0.2.5/work/pkgdev-0.2.5-python3_10/install'
 *   environment, line 1893:  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-util/pkgdev-0.2.5::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-util/pkgdev-0.2.5::gentoo'`.
 * The complete build log is located at '/var/log/portage/build/dev-util/pkgdev-0.2.5:20230407-123245.log.gz'.
 * For convenience, a symlink to the build log is located at '/var/tmp/portage/dev-util/pkgdev-0.2.5/temp/build.log.gz'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-util/pkgdev-0.2.5/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-util/pkgdev-0.2.5/work/pkgdev-0.2.5'
 * S: '/var/tmp/portage/dev-util/pkgdev-0.2.5/work/pkgdev-0.2.5'
Comment 1 William Throwe 2023-04-07 12:44:11 UTC
Or maybe BDEPEND?  I haven't wrapped my head around all the new ones, yet.
Comment 2 Arthur Zamarin archtester Gentoo Infrastructure gentoo-dev Security 2023-04-07 14:54:47 UTC
OK, I see the problem, it indeed is missing from BDEPEND.
Comment 3 Larry the Git Cow gentoo-dev 2023-04-07 14:58:49 UTC
The bug has been closed via the following commit(s):

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

commit d68d27ad801ac5335ee225a5c3b0e8e885be594d
Author:     Arthur Zamarin <arthurzam@gentoo.org>
AuthorDate: 2023-04-07 14:57:29 +0000
Commit:     Arthur Zamarin <arthurzam@gentoo.org>
CommitDate: 2023-04-07 14:58:40 +0000

    dev-util/pkgdev: add missing bdep on snakeoil
    
    Used in `py_build.py` to create verinfo file.
    
    Closes: https://bugs.gentoo.org/903977
    Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>

 dev-util/pkgdev/pkgdev-0.2.5.ebuild | 1 +
 dev-util/pkgdev/pkgdev-9999.ebuild  | 1 +
 2 files changed, 2 insertions(+)