Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 877978 Details for
Bug 919382
dev-python/lz4-4.3.2 fails tests: ModuleNotFoundError: No module named 'lz4._version'
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
build.log
file_919382.txt (text/plain), 32.72 KB, created by
matoro
on 2023-12-07 01:26:05 UTC
(
hide
)
Description:
build.log
Filename:
MIME Type:
Creator:
matoro
Created:
2023-12-07 01:26:05 UTC
Size:
32.72 KB
patch
obsolete
> * Package: dev-python/lz4-4.3.2:0 > * Repository: gentoo > * Maintainer: prometheanfire@gentoo.org python@gentoo.org > * USE: alpha elibc_glibc kernel_linux python_targets_python3_11 test > * FEATURES: keeptemp network-sandbox preserve-libs sandbox test userpriv usersandbox >>>> Unpacking source... >>>> Unpacking lz4-4.3.2.tar.gz to /var/tmp/portage/dev-python/lz4-4.3.2/work >>>> Source unpacked in /var/tmp/portage/dev-python/lz4-4.3.2/work >>>> Preparing source in /var/tmp/portage/dev-python/lz4-4.3.2/work/lz4-4.3.2 ... > * Build system packages: > * dev-python/gpep517 : 15 > * dev-python/installer : 0.7.0 > * dev-python/cython : 3.0.6 > * dev-python/setuptools : 69.0.2-r1 > * dev-python/setuptools-rust : > * dev-python/setuptools-scm : 8.0.4 > * dev-python/wheel : 0.42.0 >>>> Source prepared. >>>> Configuring source in /var/tmp/portage/dev-python/lz4-4.3.2/work/lz4-4.3.2 ... >>>> Source configured. >>>> Compiling source in /var/tmp/portage/dev-python/lz4-4.3.2/work/lz4-4.3.2 ... > * python3_11: running distutils-r1_run_phase distutils-r1_python_compile > * Building the wheel for lz4-4.3.2 via setuptools.build_meta >gpep517 build-wheel --prefix=/usr --backend setuptools.build_meta --output-fd 3 --wheel-dir /var/tmp/portage/dev-python/lz4-4.3.2/work/lz4-4.3.2-python3_11/wheel >2023-12-07 00:35:36,121 gpep517 INFO Building wheel via backend setuptools.build_meta >/usr/lib/python3.11/site-packages/setuptools_scm/_integration/setuptools.py:90: UserWarning: version of lz4 already set > warnings.warn(f"version of {dist_name} already set") >2023-12-07 00:35:37,201 root INFO running bdist_wheel >2023-12-07 00:35:37,437 root INFO running build >2023-12-07 00:35:37,437 root INFO running build_py >2023-12-07 00:35:37,491 root INFO creating /var/tmp/portage/dev-python/lz4-4.3.2/work/lz4-4.3.2-python3_11/build >2023-12-07 00:35:37,492 root INFO creating /var/tmp/portage/dev-python/lz4-4.3.2/work/lz4-4.3.2-python3_11/build/lib.linux-alpha-cpython-311 >2023-12-07 00:35:37,497 root INFO creating /var/tmp/portage/dev-python/lz4-4.3.2/work/lz4-4.3.2-python3_11/build/lib.linux-alpha-cpython-311/lz4 >2023-12-07 00:35:37,501 root INFO copying lz4/version.py -> /var/tmp/portage/dev-python/lz4-4.3.2/work/lz4-4.3.2-python3_11/build/lib.linux-alpha-cpython-311/lz4 >2023-12-07 00:35:37,505 root INFO copying lz4/__init__.py -> /var/tmp/portage/dev-python/lz4-4.3.2/work/lz4-4.3.2-python3_11/build/lib.linux-alpha-cpython-311/lz4 >2023-12-07 00:35:37,511 root INFO creating /var/tmp/portage/dev-python/lz4-4.3.2/work/lz4-4.3.2-python3_11/build/lib.linux-alpha-cpython-311/lz4/frame >2023-12-07 00:35:37,514 root INFO copying lz4/frame/__init__.py -> /var/tmp/portage/dev-python/lz4-4.3.2/work/lz4-4.3.2-python3_11/build/lib.linux-alpha-cpython-311/lz4/frame >2023-12-07 00:35:37,520 root INFO creating /var/tmp/portage/dev-python/lz4-4.3.2/work/lz4-4.3.2-python3_11/build/lib.linux-alpha-cpython-311/lz4/block >2023-12-07 00:35:37,523 root INFO copying lz4/block/__init__.py -> /var/tmp/portage/dev-python/lz4-4.3.2/work/lz4-4.3.2-python3_11/build/lib.linux-alpha-cpython-311/lz4/block >2023-12-07 00:35:37,532 root WARNING warning: build_py: byte-compiling is disabled, skipping. > >2023-12-07 00:35:37,533 root INFO running build_ext >2023-12-07 00:35:39,402 root INFO building 'lz4._version' extension >2023-12-07 00:35:39,403 root INFO creating /var/tmp/portage/dev-python/lz4-4.3.2/work/lz4-4.3.2-python3_11/build/temp.linux-alpha-cpython-311 >2023-12-07 00:35:39,409 root INFO creating /var/tmp/portage/dev-python/lz4-4.3.2/work/lz4-4.3.2-python3_11/build/temp.linux-alpha-cpython-311/lz4 >2023-12-07 00:35:39,412 root INFO alpha-unknown-linux-gnu-gcc -Wsign-compare -mieee -DNDEBUG -mieee -pipe -O2 -mcpu=ev4 -DNDEBUG -fPIC -I/usr/include/python3.11 -c lz4/_version.c -o /var/tmp/portage/dev-python/lz4-4.3.2/work/lz4-4.3.2-python3_11/build/temp.linux-alpha-cpython-311/lz4/_version.o >2023-12-07 00:35:40,608 root INFO alpha-unknown-linux-gnu-gcc -shared -Wl,-O1 -Wl,--as-needed -mieee -pipe -O2 -mcpu=ev4 -DNDEBUG /var/tmp/portage/dev-python/lz4-4.3.2/work/lz4-4.3.2-python3_11/build/temp.linux-alpha-cpython-311/lz4/_version.o -L/usr/lib -llz4 -o /var/tmp/portage/dev-python/lz4-4.3.2/work/lz4-4.3.2-python3_11/build/lib.linux-alpha-cpython-311/lz4/_version.cpython-311-alpha-linux-gnu.so >2023-12-07 00:35:40,727 root INFO building 'lz4.block._block' extension >2023-12-07 00:35:40,731 root INFO creating /var/tmp/portage/dev-python/lz4-4.3.2/work/lz4-4.3.2-python3_11/build/temp.linux-alpha-cpython-311/lz4/block >2023-12-07 00:35:40,735 root INFO alpha-unknown-linux-gnu-gcc -Wsign-compare -mieee -DNDEBUG -mieee -pipe -O2 -mcpu=ev4 -DNDEBUG -fPIC -I/usr/include/python3.11 -c lz4/block/_block.c -o /var/tmp/portage/dev-python/lz4-4.3.2/work/lz4-4.3.2-python3_11/build/temp.linux-alpha-cpython-311/lz4/block/_block.o >2023-12-07 00:35:42,338 root INFO alpha-unknown-linux-gnu-gcc -shared -Wl,-O1 -Wl,--as-needed -mieee -pipe -O2 -mcpu=ev4 -DNDEBUG /var/tmp/portage/dev-python/lz4-4.3.2/work/lz4-4.3.2-python3_11/build/temp.linux-alpha-cpython-311/lz4/block/_block.o -L/usr/lib -llz4 -o /var/tmp/portage/dev-python/lz4-4.3.2/work/lz4-4.3.2-python3_11/build/lib.linux-alpha-cpython-311/lz4/block/_block.cpython-311-alpha-linux-gnu.so >2023-12-07 00:35:42,545 root INFO building 'lz4.frame._frame' extension >2023-12-07 00:35:42,549 root INFO creating /var/tmp/portage/dev-python/lz4-4.3.2/work/lz4-4.3.2-python3_11/build/temp.linux-alpha-cpython-311/lz4/frame >2023-12-07 00:35:42,552 root INFO alpha-unknown-linux-gnu-gcc -Wsign-compare -mieee -DNDEBUG -mieee -pipe -O2 -mcpu=ev4 -DNDEBUG -fPIC -I/usr/include/python3.11 -c lz4/frame/_frame.c -o /var/tmp/portage/dev-python/lz4-4.3.2/work/lz4-4.3.2-python3_11/build/temp.linux-alpha-cpython-311/lz4/frame/_frame.o >2023-12-07 00:35:45,033 root INFO alpha-unknown-linux-gnu-gcc -shared -Wl,-O1 -Wl,--as-needed -mieee -pipe -O2 -mcpu=ev4 -DNDEBUG /var/tmp/portage/dev-python/lz4-4.3.2/work/lz4-4.3.2-python3_11/build/temp.linux-alpha-cpython-311/lz4/frame/_frame.o -L/usr/lib -llz4 -o /var/tmp/portage/dev-python/lz4-4.3.2/work/lz4-4.3.2-python3_11/build/lib.linux-alpha-cpython-311/lz4/frame/_frame.cpython-311-alpha-linux-gnu.so >2023-12-07 00:35:45,240 wheel INFO installing to /var/tmp/portage/dev-python/lz4-4.3.2/work/lz4-4.3.2-python3_11/build/bdist.linux-alpha/wheel >2023-12-07 00:35:45,240 root INFO running install >2023-12-07 00:35:45,368 root INFO running install_lib >2023-12-07 00:35:45,413 root INFO creating /var/tmp/portage/dev-python/lz4-4.3.2/work/lz4-4.3.2-python3_11/build/bdist.linux-alpha >2023-12-07 00:35:45,415 root INFO creating /var/tmp/portage/dev-python/lz4-4.3.2/work/lz4-4.3.2-python3_11/build/bdist.linux-alpha/wheel >2023-12-07 00:35:45,418 root INFO creating /var/tmp/portage/dev-python/lz4-4.3.2/work/lz4-4.3.2-python3_11/build/bdist.linux-alpha/wheel/lz4 >2023-12-07 00:35:45,422 root INFO creating /var/tmp/portage/dev-python/lz4-4.3.2/work/lz4-4.3.2-python3_11/build/bdist.linux-alpha/wheel/lz4/frame >2023-12-07 00:35:45,425 root INFO copying /var/tmp/portage/dev-python/lz4-4.3.2/work/lz4-4.3.2-python3_11/build/lib.linux-alpha-cpython-311/lz4/frame/__init__.py -> /var/tmp/portage/dev-python/lz4-4.3.2/work/lz4-4.3.2-python3_11/build/bdist.linux-alpha/wheel/lz4/frame >2023-12-07 00:35:45,430 root INFO copying /var/tmp/portage/dev-python/lz4-4.3.2/work/lz4-4.3.2-python3_11/build/lib.linux-alpha-cpython-311/lz4/frame/_frame.cpython-311-alpha-linux-gnu.so -> /var/tmp/portage/dev-python/lz4-4.3.2/work/lz4-4.3.2-python3_11/build/bdist.linux-alpha/wheel/lz4/frame >2023-12-07 00:35:45,436 root INFO copying /var/tmp/portage/dev-python/lz4-4.3.2/work/lz4-4.3.2-python3_11/build/lib.linux-alpha-cpython-311/lz4/_version.cpython-311-alpha-linux-gnu.so -> /var/tmp/portage/dev-python/lz4-4.3.2/work/lz4-4.3.2-python3_11/build/bdist.linux-alpha/wheel/lz4 >2023-12-07 00:35:45,441 root INFO copying /var/tmp/portage/dev-python/lz4-4.3.2/work/lz4-4.3.2-python3_11/build/lib.linux-alpha-cpython-311/lz4/version.py -> /var/tmp/portage/dev-python/lz4-4.3.2/work/lz4-4.3.2-python3_11/build/bdist.linux-alpha/wheel/lz4 >2023-12-07 00:35:45,445 root INFO copying /var/tmp/portage/dev-python/lz4-4.3.2/work/lz4-4.3.2-python3_11/build/lib.linux-alpha-cpython-311/lz4/__init__.py -> /var/tmp/portage/dev-python/lz4-4.3.2/work/lz4-4.3.2-python3_11/build/bdist.linux-alpha/wheel/lz4 >2023-12-07 00:35:45,450 root INFO creating /var/tmp/portage/dev-python/lz4-4.3.2/work/lz4-4.3.2-python3_11/build/bdist.linux-alpha/wheel/lz4/block >2023-12-07 00:35:45,454 root INFO copying /var/tmp/portage/dev-python/lz4-4.3.2/work/lz4-4.3.2-python3_11/build/lib.linux-alpha-cpython-311/lz4/block/_block.cpython-311-alpha-linux-gnu.so -> /var/tmp/portage/dev-python/lz4-4.3.2/work/lz4-4.3.2-python3_11/build/bdist.linux-alpha/wheel/lz4/block >2023-12-07 00:35:45,459 root INFO copying /var/tmp/portage/dev-python/lz4-4.3.2/work/lz4-4.3.2-python3_11/build/lib.linux-alpha-cpython-311/lz4/block/__init__.py -> /var/tmp/portage/dev-python/lz4-4.3.2/work/lz4-4.3.2-python3_11/build/bdist.linux-alpha/wheel/lz4/block >2023-12-07 00:35:45,462 root WARNING warning: install_lib: byte-compiling is disabled, skipping. > >2023-12-07 00:35:45,462 root INFO running install_egg_info >2023-12-07 00:35:45,520 root INFO running egg_info >2023-12-07 00:35:45,560 root INFO writing lz4.egg-info/PKG-INFO >2023-12-07 00:35:45,576 root INFO writing dependency_links to lz4.egg-info/dependency_links.txt >2023-12-07 00:35:45,585 root INFO writing requirements to lz4.egg-info/requires.txt >2023-12-07 00:35:45,589 root INFO writing top-level names to lz4.egg-info/top_level.txt >ERROR setuptools_scm._file_finders.git listing git files failed - pretending there aren't any >2023-12-07 00:35:45,790 root INFO reading manifest file 'lz4.egg-info/SOURCES.txt' >2023-12-07 00:35:45,799 root INFO reading manifest template 'MANIFEST.in' >2023-12-07 00:35:45,803 root INFO adding license file 'LICENSE' >2023-12-07 00:35:45,817 root INFO writing manifest file 'lz4.egg-info/SOURCES.txt' >2023-12-07 00:35:45,820 root INFO Copying lz4.egg-info to /var/tmp/portage/dev-python/lz4-4.3.2/work/lz4-4.3.2-python3_11/build/bdist.linux-alpha/wheel/lz4-4.3.2-py3.11.egg-info >2023-12-07 00:35:45,835 root INFO running install_scripts >2023-12-07 00:35:45,867 wheel INFO creating /var/tmp/portage/dev-python/lz4-4.3.2/work/lz4-4.3.2-python3_11/build/bdist.linux-alpha/wheel/lz4-4.3.2.dist-info/WHEEL >2023-12-07 00:35:45,873 wheel INFO creating '/var/tmp/portage/dev-python/lz4-4.3.2/work/lz4-4.3.2-python3_11/wheel/.tmp-qyuq0cvh/lz4-4.3.2-cp311-cp311-linux_alpha.whl' and adding '/var/tmp/portage/dev-python/lz4-4.3.2/work/lz4-4.3.2-python3_11/build/bdist.linux-alpha/wheel' to it >2023-12-07 00:35:45,878 wheel INFO adding 'lz4/__init__.py' >2023-12-07 00:35:45,883 wheel INFO adding 'lz4/_version.cpython-311-alpha-linux-gnu.so' >2023-12-07 00:35:45,889 wheel INFO adding 'lz4/version.py' >2023-12-07 00:35:45,894 wheel INFO adding 'lz4/block/__init__.py' >2023-12-07 00:35:45,898 wheel INFO adding 'lz4/block/_block.cpython-311-alpha-linux-gnu.so' >2023-12-07 00:35:45,905 wheel INFO adding 'lz4/frame/__init__.py' >2023-12-07 00:35:45,910 wheel INFO adding 'lz4/frame/_frame.cpython-311-alpha-linux-gnu.so' >2023-12-07 00:35:45,918 wheel INFO adding 'lz4-4.3.2.dist-info/LICENSE' >2023-12-07 00:35:45,921 wheel INFO adding 'lz4-4.3.2.dist-info/METADATA' >2023-12-07 00:35:45,925 wheel INFO adding 'lz4-4.3.2.dist-info/WHEEL' >2023-12-07 00:35:45,928 wheel INFO adding 'lz4-4.3.2.dist-info/top_level.txt' >2023-12-07 00:35:45,931 wheel INFO adding 'lz4-4.3.2.dist-info/RECORD' >2023-12-07 00:35:45,934 wheel INFO removing /var/tmp/portage/dev-python/lz4-4.3.2/work/lz4-4.3.2-python3_11/build/bdist.linux-alpha/wheel >2023-12-07 00:35:45,949 gpep517 INFO The backend produced /var/tmp/portage/dev-python/lz4-4.3.2/work/lz4-4.3.2-python3_11/wheel/lz4-4.3.2-cp311-cp311-linux_alpha.whl > * Installing lz4-4.3.2-cp311-cp311-linux_alpha.whl to /var/tmp/portage/dev-python/lz4-4.3.2/work/lz4-4.3.2-python3_11/install >gpep517 install-wheel --destdir=/var/tmp/portage/dev-python/lz4-4.3.2/work/lz4-4.3.2-python3_11/install --interpreter=/usr/bin/python3.11 --prefix=/usr --optimize=all /var/tmp/portage/dev-python/lz4-4.3.2/work/lz4-4.3.2-python3_11/wheel/lz4-4.3.2-cp311-cp311-linux_alpha.whl >2023-12-07 00:35:47,071 gpep517 INFO Installing /var/tmp/portage/dev-python/lz4-4.3.2/work/lz4-4.3.2-python3_11/wheel/lz4-4.3.2-cp311-cp311-linux_alpha.whl into /var/tmp/portage/dev-python/lz4-4.3.2/work/lz4-4.3.2-python3_11/install >2023-12-07 00:35:47,246 gpep517 INFO Installation complete >>>> Source compiled. >>>> Test phase: dev-python/lz4-4.3.2 > * python3_11: running distutils-r1_run_phase python_test > * The directory lz4 occludes package installed for python3.11. > * The installed package includes additional files: > * > * lz4/_version.cpython-311-alpha-linux-gnu.so > * lz4/block/_block.cpython-311-alpha-linux-gnu.so > * lz4/frame/_frame.cpython-311-alpha-linux-gnu.so > * > * For more information on occluded packages, please see: > * https://projects.gentoo.org/python/guide/test.html#importerrors-for-c-extensions >python3.11 -m pytest -vv -ra -l -Wdefault --color=yes -o console_output_style=count -p no:cov -p no:flake8 -p no:flakes -p no:pylint -p no:markdown -p no:sugar -p no:xvfb -p no:pytest-describe -p no:plus -p no:tavern --ignore tests/stream >========================================================================= test session starts ========================================================================= >platform linux -- Python 3.11.7, pytest-7.4.3, pluggy-1.3.0 -- /var/tmp/portage/dev-python/lz4-4.3.2/work/lz4-4.3.2-python3_11/install/usr/bin/python3.11 >cachedir: .pytest_cache >rootdir: /var/tmp/portage/dev-python/lz4-4.3.2/work/lz4-4.3.2 >configfile: tox.ini >collecting ... collected 0 items / 1 error > >=============================================================================== ERRORS ================================================================================ >____________________________________________________________________ ERROR collecting test session ____________________________________________________________________ > >self = <_pytest.config.PytestPluginManager object at 0x20000d9e390> >conftestpath = PosixPath('/var/tmp/portage/dev-python/lz4-4.3.2/work/lz4-4.3.2/tests/frame/conftest.py'), importmode = 'prepend' >rootpath = PosixPath('/var/tmp/portage/dev-python/lz4-4.3.2/work/lz4-4.3.2') > > def _importconftest( > self, conftestpath: Path, importmode: Union[str, ImportMode], rootpath: Path > ) -> types.ModuleType: > existing = self.get_plugin(str(conftestpath)) > if existing is not None: > return cast(types.ModuleType, existing) > > pkgpath = resolve_package_path(conftestpath) > if pkgpath is None: > _ensure_removed_sysmodule(conftestpath.stem) > > try: >> mod = import_path(conftestpath, mode=importmode, root=rootpath) > >conftestpath = PosixPath('/var/tmp/portage/dev-python/lz4-4.3.2/work/lz4-4.3.2/tests/frame/conftest.py') >exc_info = (<class 'ModuleNotFoundError'>, > ModuleNotFoundError("No module named 'lz4._version'"), > <traceback object at 0x200024ce240>) >existing = None >importmode = 'prepend' >pkgpath = PosixPath('/var/tmp/portage/dev-python/lz4-4.3.2/work/lz4-4.3.2/tests/frame') >rootpath = PosixPath('/var/tmp/portage/dev-python/lz4-4.3.2/work/lz4-4.3.2') >self = <_pytest.config.PytestPluginManager object at 0x20000d9e390> > >/usr/lib/python3.11/site-packages/_pytest/config/__init__.py:641: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >p = PosixPath('/var/tmp/portage/dev-python/lz4-4.3.2/work/lz4-4.3.2/tests/frame/conftest.py') > > def import_path( > p: Union[str, "os.PathLike[str]"], > *, > mode: Union[str, ImportMode] = ImportMode.prepend, > root: Path, > ) -> ModuleType: > """Import and return a module from the given path, which can be a file (a module) or > a directory (a package). > > The import mechanism used is controlled by the `mode` parameter: > > * `mode == ImportMode.prepend`: the directory containing the module (or package, taking > `__init__.py` files into account) will be put at the *start* of `sys.path` before > being imported with `importlib.import_module`. > > * `mode == ImportMode.append`: same as `prepend`, but the directory will be appended > to the end of `sys.path`, if not already in `sys.path`. > > * `mode == ImportMode.importlib`: uses more fine control mechanisms provided by `importlib` > to import the module, which avoids having to muck with `sys.path` at all. It effectively > allows having same-named test modules in different places. > > :param root: > Used as an anchor when mode == ImportMode.importlib to obtain > a unique name for the module being imported so it can safely be stored > into ``sys.modules``. > > :raises ImportPathMismatchError: > If after importing the given `path` and the module `__file__` > are different. Only raised in `prepend` and `append` modes. > """ > mode = ImportMode(mode) > > path = Path(p) > > if not path.exists(): > raise ImportError(path) > > if mode is ImportMode.importlib: > module_name = module_name_from_path(path, root) > with contextlib.suppress(KeyError): > return sys.modules[module_name] > > for meta_importer in sys.meta_path: > spec = meta_importer.find_spec(module_name, [str(path.parent)]) > if spec is not None: > break > else: > spec = importlib.util.spec_from_file_location(module_name, str(path)) > > if spec is None: > raise ImportError(f"Can't find module {module_name} at location {path}") > mod = importlib.util.module_from_spec(spec) > sys.modules[module_name] = mod > spec.loader.exec_module(mod) # type: ignore[union-attr] > insert_missing_modules(sys.modules, module_name) > return mod > > pkg_path = resolve_package_path(path) > if pkg_path is not None: > pkg_root = pkg_path.parent > names = list(path.with_suffix("").relative_to(pkg_root).parts) > if names[-1] == "__init__": > names.pop() > module_name = ".".join(names) > else: > pkg_root = path.parent > module_name = path.stem > > # Change sys.path permanently: restoring it at the end of this function would cause surprising > # problems because of delayed imports: for example, a conftest.py file imported by this function > # might have local imports, which would fail at runtime if we restored sys.path. > if mode is ImportMode.append: > if str(pkg_root) not in sys.path: > sys.path.append(str(pkg_root)) > elif mode is ImportMode.prepend: > if str(pkg_root) != sys.path[0]: > sys.path.insert(0, str(pkg_root)) > else: > assert_never(mode) > >> importlib.import_module(module_name) > >mode = <ImportMode.prepend: 'prepend'> >module_name = 'frame.conftest' >names = ['frame', 'conftest'] >p = PosixPath('/var/tmp/portage/dev-python/lz4-4.3.2/work/lz4-4.3.2/tests/frame/conftest.py') >path = PosixPath('/var/tmp/portage/dev-python/lz4-4.3.2/work/lz4-4.3.2/tests/frame/conftest.py') >pkg_path = PosixPath('/var/tmp/portage/dev-python/lz4-4.3.2/work/lz4-4.3.2/tests/frame') >pkg_root = PosixPath('/var/tmp/portage/dev-python/lz4-4.3.2/work/lz4-4.3.2/tests') >root = PosixPath('/var/tmp/portage/dev-python/lz4-4.3.2/work/lz4-4.3.2') > >/usr/lib/python3.11/site-packages/_pytest/pathlib.py:567: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >name = 'frame.conftest', package = None > > def import_module(name, package=None): > """Import a module. > > The 'package' argument is required when performing a relative import. It > specifies the package to use as the anchor point from which to resolve the > relative import to an absolute import. > > """ > level = 0 > if name.startswith('.'): > if not package: > msg = ("the 'package' argument is required to perform a relative " > "import for {!r}") > raise TypeError(msg.format(name)) > for character in name: > if character != '.': > break > level += 1 >> return _bootstrap._gcd_import(name[level:], package, level) > >level = 0 >name = 'frame.conftest' >package = None > >/usr/lib/python3.11/importlib/__init__.py:126: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >name = 'frame.conftest', package = None, level = 0 > >> ??? > >level = 0 >name = 'frame.conftest' >package = None > ><frozen importlib._bootstrap>:1204: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >name = 'frame.conftest', import_ = <function _gcd_import at 0x20000d43d80> > >> ??? > >import_ = <function _gcd_import at 0x20000d43d80> >module = <object object at 0x20000d78050> >name = 'frame.conftest' > ><frozen importlib._bootstrap>:1176: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >name = 'frame.conftest', import_ = <function _gcd_import at 0x20000d43d80> > >> ??? > >child = 'conftest' >import_ = <function _gcd_import at 0x20000d43d80> >name = 'frame.conftest' >parent = 'frame' >parent_module = <module 'frame' from '/var/tmp/portage/dev-python/lz4-4.3.2/work/lz4-4.3.2/tests/frame/__init__.py'> >parent_spec = ModuleSpec(name='frame', loader=<_frozen_importlib_external.SourceFileLoader object at 0x200024ce0d0>, origin='/var/tmp/portage/dev-python/lz4-4.3.2/work/lz4-4.3.2/tests/frame/__init__.py', submodule_search_locations=['/var/tmp/portage/dev-python/lz4-4.3.2/work/lz4-4.3.2/tests/frame']) >path = ['/var/tmp/portage/dev-python/lz4-4.3.2/work/lz4-4.3.2/tests/frame'] >spec = ModuleSpec(name='frame.conftest', loader=<_pytest.assertion.rewrite.AssertionRewritingHook object at 0x20002369c50>, origin='/var/tmp/portage/dev-python/lz4-4.3.2/work/lz4-4.3.2/tests/frame/conftest.py') > ><frozen importlib._bootstrap>:1147: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >spec = ModuleSpec(name='frame.conftest', loader=<_pytest.assertion.rewrite.AssertionRewritingHook object at 0x20002369c50>, origin='/var/tmp/portage/dev-python/lz4-4.3.2/work/lz4-4.3.2/tests/frame/conftest.py') > >> ??? > >module = <module 'frame.conftest' from '/var/tmp/portage/dev-python/lz4-4.3.2/work/lz4-4.3.2/tests/frame/conftest.py'> >spec = ModuleSpec(name='frame.conftest', loader=<_pytest.assertion.rewrite.AssertionRewritingHook object at 0x20002369c50>, origin='/var/tmp/portage/dev-python/lz4-4.3.2/work/lz4-4.3.2/tests/frame/conftest.py') > ><frozen importlib._bootstrap>:690: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <_pytest.assertion.rewrite.AssertionRewritingHook object at 0x20002369c50> >module = <module 'frame.conftest' from '/var/tmp/portage/dev-python/lz4-4.3.2/work/lz4-4.3.2/tests/frame/conftest.py'> > > def exec_module(self, module: types.ModuleType) -> None: > assert module.__spec__ is not None > assert module.__spec__.origin is not None > fn = Path(module.__spec__.origin) > state = self.config.stash[assertstate_key] > > self._rewritten_names[module.__name__] = fn > > # The requested module looks like a test file, so rewrite it. This is > # the most magical part of the process: load the source, rewrite the > # asserts, and load the rewritten source. We also cache the rewritten > # module code in a special pyc. We must be aware of the possibility of > # concurrent pytest processes rewriting and loading pycs. To avoid > # tricky race conditions, we maintain the following invariant: The > # cached pyc is always a complete, valid pyc. Operations on it must be > # atomic. POSIX's atomic rename comes in handy. > write = not sys.dont_write_bytecode > cache_dir = get_cache_dir(fn) > if write: > ok = try_makedirs(cache_dir) > if not ok: > write = False > state.trace(f"read only directory: {cache_dir}") > > cache_name = fn.name[:-3] + PYC_TAIL > pyc = cache_dir / cache_name > # Notice that even if we're in a read-only directory, I'm going > # to check for a cached pyc. This may not be optimal... > co = _read_pyc(fn, pyc, state.trace) > if co is None: > state.trace(f"rewriting {fn!r}") > source_stat, co = _rewrite_test(fn, self.config) > if write: > self._writing_pyc = True > try: > _write_pyc(state, co, source_stat, pyc) > finally: > self._writing_pyc = False > else: > state.trace(f"found cached rewritten pyc for {fn}") >> exec(co, module.__dict__) > >cache_dir = PosixPath('/var/tmp/portage/dev-python/lz4-4.3.2/work/lz4-4.3.2/tests/frame/__pycache__') >cache_name = 'conftest.cpython-311-pytest-7.4.3.pyc' >co = <code object <module> at 0x200022b5900, file "/var/tmp/portage/dev-python/lz4-4.3.2/work/lz4-4.3.2/tests/frame/conftest.py", line 1> >fn = PosixPath('/var/tmp/portage/dev-python/lz4-4.3.2/work/lz4-4.3.2/tests/frame/conftest.py') >module = <module 'frame.conftest' from '/var/tmp/portage/dev-python/lz4-4.3.2/work/lz4-4.3.2/tests/frame/conftest.py'> >pyc = PosixPath('/var/tmp/portage/dev-python/lz4-4.3.2/work/lz4-4.3.2/tests/frame/__pycache__/conftest.cpython-311-pytest-7.4.3.pyc') >self = <_pytest.assertion.rewrite.AssertionRewritingHook object at 0x20002369c50> >source_stat = os.stat_result(st_mode=33188, st_ino=73293, st_dev=1792, st_nlink=1, st_uid=250, st_gid=250, st_size=1426, st_atime=1701909317, st_mtime=1672439999, st_ctime=1701909317) >state = <_pytest.assertion.AssertionState object at 0x2000235a350> >write = False > >/usr/lib/python3.11/site-packages/_pytest/assertion/rewrite.py:186: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > > import pytest >> import lz4.frame as lz4frame > >__builtins__ = <builtins> >__cached__ = '/var/tmp/portage/dev-python/lz4-4.3.2/work/lz4-4.3.2/tests/frame/__pycache__/conftest.cpython-311.pyc' >__doc__ = None >__file__ = '/var/tmp/portage/dev-python/lz4-4.3.2/work/lz4-4.3.2/tests/frame/conftest.py' >__loader__ = <_pytest.assertion.rewrite.AssertionRewritingHook object at 0x20002369c50> >__name__ = 'frame.conftest' >__package__ = 'frame' >__spec__ = ModuleSpec(name='frame.conftest', loader=<_pytest.assertion.rewrite.AssertionRewritingHook object at 0x20002369c50>, origin='/var/tmp/portage/dev-python/lz4-4.3.2/work/lz4-4.3.2/tests/frame/conftest.py') >pytest = <module 'pytest' from '/usr/lib/python3.11/site-packages/pytest/__init__.py'> > >tests/frame/conftest.py:2: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > > # 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 >========================================================================== warnings summary =========================================================================== >tests/block/conftest.py:12 > /var/tmp/portage/dev-python/lz4-4.3.2/work/lz4-4.3.2/tests/block/conftest.py:12: ResourceWarning: unclosed file <_io.BufferedReader name='/var/tmp/portage/dev-python/lz4-4.3.2/work/lz4-4.3.2/tests/block/numpy_byte_array.bin'> > (bytearray(open(os.path.join(os.path.dirname(__file__), 'numpy_byte_array.bin'), 'rb').read())) > Enable tracemalloc to get traceback where the object was allocated. > See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info. > >-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html >======================================================================= short test summary info ======================================================================= >ERROR - ModuleNotFoundError: No module named 'lz4._version' >!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! stopping after 1 failures !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! >!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! >===================================================================== 1 warning, 1 error in 1.52s ===================================================================== > * ERROR: dev-python/lz4-4.3.2::gentoo failed (test phase): > * pytest failed with python3.11 > * > * Call stack: > * ebuild.sh, line 136: Called src_test > * environment, line 3975: Called distutils-r1_src_test > * environment, line 1971: Called _distutils-r1_run_foreach_impl 'python_test' > * environment, line 714: Called python_foreach_impl 'distutils-r1_run_phase' 'python_test' > * environment, line 3580: Called multibuild_foreach_variant '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_test' > * environment, line 3086: Called _multibuild_run '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_test' > * environment, line 3084: Called _python_multibuild_wrapper 'distutils-r1_run_phase' 'python_test' > * environment, line 1194: Called distutils-r1_run_phase 'python_test' > * environment, line 1894: Called python_test > * environment, line 3862: Called distutils-r1_python_test > * environment, line 1837: Called epytest > * environment, line 2508: Called die > * The specific snippet of code: > * "${@}" || die -n "pytest failed with ${EPYTHON}"; > * > * If you need support, post the output of `emerge --info '=dev-python/lz4-4.3.2::gentoo'`, > * the complete build log and the output of `emerge -pqv '=dev-python/lz4-4.3.2::gentoo'`. > * The complete build log is located at '/var/tmp/portage/dev-python/lz4-4.3.2/temp/build.log'. > * The ebuild environment file is located at '/var/tmp/portage/dev-python/lz4-4.3.2/temp/environment'. > * Working directory: '/var/tmp/portage/dev-python/lz4-4.3.2/work/lz4-4.3.2' > * S: '/var/tmp/portage/dev-python/lz4-4.3.2/work/lz4-4.3.2'
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 919382
: 877978