Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 870241 - dev-python/versioneer-0.26 : module 'versioneer' has no attribute 'get_version'
Summary: dev-python/versioneer-0.26 : module 'versioneer' has no attribute 'get_version'
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-09-15 15:22 UTC by Helmut Jarausch
Modified: 2022-10-17 06:17 UTC (History)
4 users (show)

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


Attachments
emerge --info gz-compressed (versioneer.info.gz,7.65 KB, application/gzip)
2022-09-15 15:22 UTC, Helmut Jarausch
Details
emerge --info (versioneer.info,21.59 KB, text/plain)
2022-09-16 15:34 UTC, Helmut Jarausch
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Helmut Jarausch 2022-09-15 15:22:03 UTC
Created attachment 805363 [details]
emerge --info  gz-compressed

dev-python/versioneer-0.26 fails to build with
 * Package:    dev-python/versioneer-0.26
 * Repository: local
 * Maintainer: python@gentoo.org
 * USE:        abi_x86_64 amd64 elibc_glibc kernel_linux python_targets_python3_10 userland_GNU
 * FEATURES:   network-sandbox preserve-libs sandbox splitdebug userpriv usersandbox
>>> [1m[37mcfg-update-1.8.2-r1[0m[0m: Creating checksum index...
>>> Unpacking source...
>>> Unpacking python-versioneer-0.26.gh.tar.gz to /var/tmp/portage/dev-python/versioneer-0.26/work
>>> Source unpacked in /var/tmp/portage/dev-python/versioneer-0.26/work
>>> Preparing source in /var/tmp/portage/dev-python/versioneer-0.26/work/python-versioneer-0.26 ...
 * Build system packages:
 *   dev-python/gpep517            : 9
 *   dev-python/installer          : 0.5.1-r1
 *   dev-python/setuptools         : 65.3.0
 *   dev-python/setuptools_scm     : 7.0.5
 *   dev-python/wheel              : 0.37.1-r1
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-python/versioneer-0.26/work/python-versioneer-0.26 ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/dev-python/versioneer-0.26/work/python-versioneer-0.26 ...
 * python3_10: running distutils-r1_run_phase distutils-r1_python_compile
 *   Building the wheel for python-versioneer-0.26 via setuptools.build_meta
gpep517 build-wheel --backend setuptools.build_meta --output-fd 3 --wheel-dir /var/tmp/portage/dev-python/versioneer-0.26/work/python-versioneer-0.26-python3_10/wheel
2022-09-15 14:29:59,455 gpep517 INFO Building wheel via backend setuptools.build_meta
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 322, in main
    return func(args)
  File "/usr/lib/python3.10/site-packages/gpep517/__main__.py", line 122, in build_wheel
    print(build_wheel_impl(args, args.wheel_dir), file=out)
  File "/usr/lib/python3.10/site-packages/gpep517/__main__.py", line 105, in build_wheel_impl
    wheel_name = backend.build_wheel(str(wheel_dir), args.config_json)
  File "/usr/lib/python3.10/site-packages/setuptools/build_meta.py", line 412, in build_wheel
    return self._build_with_temp_dir(['bdist_wheel'], '.whl',
  File "/usr/lib/python3.10/site-packages/setuptools/build_meta.py", line 397, in _build_with_temp_dir
    self.run_setup()
  File "/usr/lib/python3.10/site-packages/setuptools/build_meta.py", line 335, in run_setup
    exec(code, locals())
  File "<string>", line 143, in <module>
AttributeError: module 'versioneer' has no attribute 'get_version'
 * ERROR: dev-python/versioneer-0.26::local failed (compile phase):
 *   Wheel build failed
 * 
 * Call stack:
 *     ebuild.sh, line  122:  Called src_compile
 *   environment, line 3373:  Called distutils-r1_src_compile
 *   environment, line 1595:  Called _distutils-r1_run_foreach_impl 'distutils-r1_python_compile'
 *   environment, line  734:  Called python_foreach_impl 'distutils-r1_run_phase' 'distutils-r1_python_compile'
 *   environment, line 3061:  Called multibuild_foreach_variant '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'distutils-r1_python_compile'
 *   environment, line 2624:  Called _multibuild_run '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'distutils-r1_python_compile'
 *   environment, line 2622:  Called _python_multibuild_wrapper 'distutils-r1_run_phase' 'distutils-r1_python_compile'
 *   environment, line 1061:  Called distutils-r1_run_phase 'distutils-r1_python_compile'
 *   environment, line 1577:  Called distutils-r1_python_compile
 *   environment, line 1401:  Called distutils_pep517_install '/var/tmp/portage/dev-python/versioneer-0.26/work/python-versioneer-0.26-python3_10/install'
 *   environment, line 1900:  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/versioneer-0.26::local'`,
 * the complete build log and the output of `emerge -pqv '=dev-python/versioneer-0.26::local'`.
 * The complete build log is located at '/var/tmp/portage/dev-python/versioneer-0.26/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-python/versioneer-0.26/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-python/versioneer-0.26/work/python-versioneer-0.26'
 * S: '/var/tmp/portage/dev-python/versioneer-0.26/work/python-versioneer-0.26'
Comment 1 Stephan Hartmann (RETIRED) gentoo-dev 2022-09-15 15:26:12 UTC
You are building from your local overlay. Feel free to reopen if you can reproduce with versioneer in ::gentoo.
Comment 2 Helmut Jarausch 2022-09-16 15:33:54 UTC
Building dev-python/versioneer-0.26::gentoo fails
 
 * Package:    dev-python/versioneer-0.26
 * Repository: gentoo
 * Maintainer: python@gentoo.org
 * USE:        abi_x86_64 amd64 elibc_glibc kernel_linux python_targets_python3_10 userland_GNU
 * FEATURES:   network-sandbox preserve-libs sandbox splitdebug userpriv usersandbox
>>> cfg-update-1.8.2-r1: Creating checksum index...
>>> Unpacking source...
>>> Unpacking python-versioneer-0.26.gh.tar.gz to /var/tmp/portage/dev-python/versioneer-0.26/work
>>> Source unpacked in /var/tmp/portage/dev-python/versioneer-0.26/work
>>> Preparing source in /var/tmp/portage/dev-python/versioneer-0.26/work/python-versioneer-0.26 ...
 * Build system packages:
 *   dev-python/gpep517            : 9
 *   dev-python/installer          : 0.5.1-r1
 *   dev-python/setuptools         : 65.3.0
 *   dev-python/setuptools_scm     : 7.0.5
 *   dev-python/wheel              : 0.37.1-r1
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-python/versioneer-0.26/work/python-versioneer-0.26 ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/dev-python/versioneer-0.26/work/python-versioneer-0.26 ...
 * python3_10: running distutils-r1_run_phase distutils-r1_python_compile
python3.10 setup.py build_ext -j 32
Traceback (most recent call last):
  File "/var/tmp/portage/dev-python/versioneer-0.26/work/python-versioneer-0.26/setup.py", line 143, in <module>
    VERSION = versioneer.get_version()
AttributeError: module 'versioneer' has no attribute 'get_version'
 * ERROR: dev-python/versioneer-0.26::gentoo failed (compile phase):
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line  122:  Called src_compile
 *   environment, line 3373:  Called distutils-r1_src_compile
 *   environment, line 1595:  Called _distutils-r1_run_foreach_impl 'distutils-r1_python_compile'
 *   environment, line  734:  Called python_foreach_impl 'distutils-r1_run_phase' 'distutils-r1_python_compile'
 *   environment, line 3061:  Called multibuild_foreach_variant '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'distutils-r1_python_compile'
 *   environment, line 2624:  Called _multibuild_run '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'distutils-r1_python_compile'
 *   environment, line 2622:  Called _python_multibuild_wrapper 'distutils-r1_run_phase' 'distutils-r1_python_compile'
 *   environment, line 1061:  Called distutils-r1_run_phase 'distutils-r1_python_compile'
 *   environment, line 1577:  Called distutils-r1_python_compile
 *   environment, line 1376:  Called esetup.py 'build_ext' '-j' '32'
 *   environment, line 2163:  Called die
 * The specific snippet of code:
 *       "${@}" || die -n;
 * 
 * If you need support, post the output of `emerge --info '=dev-python/versioneer-0.26::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-python/versioneer-0.26::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/dev-python/versioneer-0.26/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-python/versioneer-0.26/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-python/versioneer-0.26/work/python-versioneer-0.26'
 * S: '/var/tmp/portage/dev-python/versioneer-0.26/work/python-versioneer-0.26'
Comment 3 Helmut Jarausch 2022-09-16 15:34:46 UTC
Created attachment 805684 [details]
emerge --info
Comment 4 Aleksander Zatserkovnyy 2022-10-11 01:08:51 UTC
Fixed by removing old version of versioneer for me.
Comment 5 Iade Gesso 2022-10-14 20:33:37 UTC
Here the same... and, removing the old version and installing the newer fixed the issue.


Iade
Comment 6 François Bissey 2022-10-16 22:11:25 UTC
Same here. Removing and installing again fixed it. Feels like a case for a hard blocker.
Comment 7 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2022-10-17 04:21:24 UTC
I'm going to guess it's a problem with sys.path.  Lemme try to reproduce.
Comment 8 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2022-10-17 04:47:54 UTC
Reproduced and sent reproducer upstream.  I think I can manage a blocker-free hack, though ;-).
Comment 9 Larry the Git Cow gentoo-dev 2022-10-17 05:28:54 UTC
The bug has been closed via the following commit(s):

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

commit b7836c0d545d8e0bd995521ce8ea328e310153ab
Author:     Michał Górny <mgorny@gentoo.org>
AuthorDate: 2022-10-17 04:53:26 +0000
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: 2022-10-17 05:28:48 +0000

    dev-python/versioneer: Workaround build failure against older ver.
    
    Closes: https://bugs.gentoo.org/870241
    Signed-off-by: Michał Górny <mgorny@gentoo.org>

 dev-python/versioneer/versioneer-0.26.ebuild | 8 ++++++++
 1 file changed, 8 insertions(+)
Comment 10 François Bissey 2022-10-17 06:17:25 UTC
(In reply to Michał Górny from comment #8)
> Reproduced and sent reproducer upstream.  I think I can manage a
> blocker-free hack, though ;-).

That sounded silly as soon as I did hit submit :)