Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 919382 - dev-python/lz4-4.3.2 fails tests: ModuleNotFoundError: No module named 'lz4._version'
Summary: dev-python/lz4-4.3.2 fails tests: ModuleNotFoundError: No module named 'lz4._...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 891511
  Show dependency tree
 
Reported: 2023-12-07 01:25 UTC by matoro
Modified: 2023-12-09 16:38 UTC (History)
2 users (show)

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


Attachments
build.log (file_919382.txt,32.72 KB, text/plain)
2023-12-07 01:26 UTC, matoro
Details

Note You need to log in before you can comment on or make changes to this bug.
Description matoro archtester 2023-12-07 01:25:49 UTC
# Although the canonical way to get the package version is using pkg_resources
    # as below, this turns out to be very slow on systems with lots of packages.
    # So, until that is remedied, we'll import the version from a local file
    # created by setuptools_scm.
    
    # from pkg_resources import get_distribution, DistributionNotFound
    # try:
    #     __version__ = get_distribution(__name__).version
    # except DistributionNotFound:
    #     # package is not installed
    #     pass
    
    from .version import version as __version__
>   from ._version import (  # noqa: F401
        library_version_number,
        library_version_string,
    )
E   ModuleNotFoundError: No module named 'lz4._version'

__builtins__ = <builtins>
__cached__ = '/var/tmp/portage/dev-python/lz4-4.3.2/work/lz4-4.3.2/lz4/__pycache__/__init__.cpython-311.pyc'
__doc__    = None
__file__   = '/var/tmp/portage/dev-python/lz4-4.3.2/work/lz4-4.3.2/lz4/__init__.py'
__loader__ = <_frozen_importlib_external.SourceFileLoader object at 0x200024cf490>
__name__   = 'lz4'
__package__ = 'lz4'
__path__   = ['/var/tmp/portage/dev-python/lz4-4.3.2/work/lz4-4.3.2/lz4']
__spec__   = ModuleSpec(name='lz4', loader=<_frozen_importlib_external.SourceFileLoader object at 0x200024cf490>, origin='/var/tmp/portage/dev-python/lz4-4.3.2/work/lz4-4.3.2/lz4/__init__.py', submodule_search_locations=['/var/tmp/portage/dev-python/lz4-4.3.2/work/lz4-4.3.2/lz4'])
__version__ = '4.3.2'
version    = <module 'lz4.version' from '/var/tmp/portage/dev-python/lz4-4.3.2/work/lz4-4.3.2/lz4/version.py'>

lz4/__init__.py:14: ModuleNotFoundError

Reproducible: Always
Comment 1 matoro archtester 2023-12-07 01:26:05 UTC
Created attachment 877978 [details]
build.log
Comment 2 Leonardo Hernández Hernández 2023-12-07 02:30:31 UTC
Please include the output of `emerge --info`
Comment 3 matoro archtester 2023-12-07 02:35:29 UTC
Sample one, but I've reproduced this on multiple of my arch-testing systems.

Portage 3.0.56 (python 3.11.7-final-0, default/linux/alpha/17.0, gcc-13, glibc-2.37-r8, 6.6.4-gentoo-alpha alpha)
=================================================================
System uname: Linux-6.6.4-gentoo-alpha-alpha-EV68CB-with-glibc2.37
KiB Mem:     2062904 total,    746248 free
KiB Swap:   10485752 total,  10475192 free
Timestamp of repository gentoo: Wed, 06 Dec 2023 23:02:01 +0000
sh bash 5.2_p21-r1
ld GNU ld (Gentoo 2.41 p2) 2.41.0
app-misc/pax-utils:        1.3.7::gentoo
app-shells/bash:           5.2_p21-r1::gentoo
dev-lang/perl:             5.38.2::gentoo
dev-lang/python:           3.11.7::gentoo, 3.12.0_p1::gentoo
dev-util/cmake:            3.27.9::gentoo
dev-util/meson:            1.3.0-r2::gentoo
sys-apps/baselayout:       2.14-r1::gentoo
sys-apps/openrc:           0.52.1::gentoo
sys-apps/sandbox:          2.38::gentoo
sys-devel/autoconf:        2.71-r7::gentoo
sys-devel/automake:        1.16.5-r1::gentoo
sys-devel/binutils:        2.41-r2::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/gcc:             13.2.1_p20231014::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-devel/libtool:         2.4.7-r1::gentoo
sys-devel/make:            4.4.1-r1::gentoo
sys-kernel/linux-headers:  6.6::gentoo (virtual/os-headers)
sys-libs/glibc:            2.37-r8::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    volatile: False
    sync-rsync-extra-opts: 
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-max-age: 3

Binary Repositories:

gentoobinhost
    priority: 1
    sync-uri: https://gentoo.osuosl.org/releases/alpha/binpackages/17.0/alpha

ACCEPT_KEYWORDS="alpha ~alpha"
ACCEPT_LICENSE="@FREE"
CBUILD="alpha-unknown-linux-gnu"
CFLAGS="-mieee -pipe -O2 -mcpu=ev4"
CHOST="alpha-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-mieee -pipe -O2 -mcpu=ev4"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--autounmask=y --autounmask-continue=y"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME"
FCFLAGS="-mieee -pipe -O2 -mcpu=ev4"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-mieee -pipe -O2 -mcpu=ev4"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LEX="flex"
MAKEOPTS="-j1"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
SHELL="/sbin/nologin"
USE="acl alpha bzip2 cli crypt dri fortran gdbm iconv ipv6 libtirpc ncurses nls nptl openmp pam pcre readline split-usr ssl unicode xattr zlib" ADA_TARGET="gnat_2021" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-1" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11" RUBY_TARGETS="ruby31" VIDEO_CARDS="fbdev mga r128 radeon dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
Comment 4 Larry the Git Cow gentoo-dev 2023-12-09 16:38:43 UTC
The bug has been closed via the following commit(s):

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

commit c77d81a9200922cee141e00641772bdf85a39205
Author:     Michał Górny <mgorny@gentoo.org>
AuthorDate: 2023-12-09 16:21:28 +0000
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: 2023-12-09 16:36:58 +0000

    dev-python/lz4: Fix testing against freshly built version
    
    Closes: https://bugs.gentoo.org/919382
    Signed-off-by: Michał Górny <mgorny@gentoo.org>

 dev-python/lz4/lz4-4.3.2.ebuild | 17 ++++++++++++-----
 1 file changed, 12 insertions(+), 5 deletions(-)