I'm packaging your module as an rpm package so I'm using the typical PEP517 based build, install and test cycle used on building packages from non-root account.
python3 -sBm build -w --no-isolation
because I'm calling build with --no-isolation I'm using during all processes only locally installed modules
install .whl file in </install/prefix> using 'installer` module
run pytest with $PYTHONPATH pointing to sitearch and sitelib inside </install/prefix>
build is performed in env which is cut off from access to the public network (pytest is executed with -m "not network")
Here is pytest output:
```console
+ PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-numcodecs-0.12.1-2.fc35.x86_64/usr/lib64/python3.8/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-numcodecs-0.12.1-2.fc35.x86_64/usr/lib/python3.8/site-packages
+ /usr/bin/pytest -ra -m 'not network'
============================= test session starts ==============================
platform linux -- Python 3.8.18, pytest-8.0.0, pluggy-1.3.0
rootdir: /home/tkloczko/rpmbuild/BUILD/numcodecs-0.12.1
configfile: pyproject.toml
testpaths: numcodecs
collected 9 items / 71 errors
==================================== ERRORS ====================================
____________________ ERROR collecting numcodecs/__init__.py ____________________
numcodecs/__init__.py:91: in
from numcodecs.shuffle import Shuffle
numcodecs/shuffle.py:4: in
from ._shuffle import _doShuffle, _doUnshuffle
E ModuleNotFoundError: No module named 'numcodecs._shuffle'
____________________ ERROR collecting numcodecs/bitround.py ____________________
/usr/lib64/python3.8/importlib/__init__.py:127: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
:1014: in _gcd_import
???
:991: in _find_and_load
???
:961: in _find_and_load_unlocked
???
:219: in _call_with_frames_removed
???
:1014: in _gcd_import
???
:991: in _find_and_load
???
:975: in _find_and_load_unlocked
???
:671: in _load_unlocked
???
:843: in exec_module
???
:219: in _call_with_frames_removed
???
numcodecs/__init__.py:91: in
from numcodecs.shuffle import Shuffle
numcodecs/shuffle.py:4: in
from ._shuffle import _doShuffle, _doUnshuffle
E ModuleNotFoundError: No module named 'numcodecs._shuffle'
___________________ ERROR collecting numcodecs/checksum32.py ___________________
/usr/lib64/python3.8/importlib/__init__.py:127: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
:1014: in _gcd_import
???
:991: in _find_and_load
???
:961: in _find_and_load_unlocked
???
:219: in _call_with_frames_removed
???
:1014: in _gcd_import
???
:991: in _find_and_load
???
:975: in _find_and_load_unlocked
???
:671: in _load_unlocked
???
:843: in exec_module
???
:219: in _call_with_frames_removed
???
numcodecs/__init__.py:91: in
from numcodecs.shuffle import Shuffle
numcodecs/shuffle.py:4: in
from ._shuffle import _doShuffle, _doUnshuffle
E ModuleNotFoundError: No module named 'numcodecs._shuffle'
______________________ ERROR collecting numcodecs/json.py ______________________
/usr/lib64/python3.8/importlib/__init__.py:127: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
:1014: in _gcd_import
???
:991: in _find_and_load
???
:961: in _find_and_load_unlocked
???
:219: in _call_with_frames_removed
???
:1014: in _gcd_import
???
:991: in _find_and_load
???
:975: in _find_and_load_unlocked
???
:671: in _load_unlocked
???
:843: in exec_module
???
:219: in _call_with_frames_removed
???
numcodecs/__init__.py:91: in
from numcodecs.shuffle import Shuffle
numcodecs/shuffle.py:4: in
from ._shuffle import _doShuffle, _doUnshuffle
E ModuleNotFoundError: No module named 'numcodecs._shuffle'
____________________ ERROR collecting numcodecs/msgpacks.py ____________________
/usr/lib64/python3.8/importlib/__init__.py:127: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
:1014: in _gcd_import
???
:991: in _find_and_load
???
:961: in _find_and_load_unlocked
???
:219: in _call_with_frames_removed
???
:1014: in _gcd_import
???
:991: in _find_and_load
???
:975: in _find_and_load_unlocked
???
:671: in _load_unlocked
???
:843: in exec_module
???
:219: in _call_with_frames_removed
???
numcodecs/__init__.py:91: in
from numcodecs.shuffle import Shuffle
numcodecs/shuffle.py:4: in
from ._shuffle import _doShuffle, _doUnshuffle
E ModuleNotFoundError: No module named 'numcodecs._shuffle'
____________________ ERROR collecting numcodecs/shuffle.py _____________________
numcodecs/shuffle.py:4: in
from ._shuffle import _doShuffle, _doUnshuffle
E ModuleNotFoundError: No module named 'numcodecs._shuffle'
_________________ ERROR collecting numcodecs/tests/__init__.py _________________
/usr/lib64/python3.8/importlib/__init__.py:127: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
:1014: in _gcd_import
???
:991: in _find_and_load
???
:961: in _find_and_load_unlocked
???
:219: in _call_with_frames_removed
???
:1014: in _gcd_import
???
:991: in _find_and_load
???
:975: in _find_and_load_unlocked
???
:671: in _load_unlocked
???
:843: in exec_module
???
:219: in _call_with_frames_removed
???
numcodecs/__init__.py:91: in
from numcodecs.shuffle import Shuffle
numcodecs/shuffle.py:4: in
from ._shuffle import _doShuffle, _doUnshuffle
E ModuleNotFoundError: No module named 'numcodecs._shuffle'
__________________ ERROR collecting numcodecs/tests/common.py __________________
/usr/lib64/python3.8/importlib/__init__.py:127: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
:1014: in _gcd_import
???
:991: in _find_and_load
???
:961: in _find_and_load_unlocked
???
:219: in _call_with_frames_removed
???
:1014: in _gcd_import
???
:991: in _find_and_load
???
:961: in _find_and_load_unlocked
???
:219: in _call_with_frames_removed
???
:1014: in _gcd_import
???
:991: in _find_and_load
???
:975: in _find_and_load_unlocked
???
:671: in _load_unlocked
???
:843: in exec_module
???
:219: in _call_with_frames_removed
???
numcodecs/__init__.py:91: in
from numcodecs.shuffle import Shuffle
numcodecs/shuffle.py:4: in
from ._shuffle import _doShuffle, _doUnshuffle
E ModuleNotFoundError: No module named 'numcodecs._shuffle'
_____ ERROR collecting numcodecs/tests/package_with_entrypoint/__init__.py _____
/usr/lib64/python3.8/importlib/__init__.py:127: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
:1014: in _gcd_import
???
:991: in _find_and_load
???
:961: in _find_and_load_unlocked
???
:219: in _call_with_frames_removed
???
:1014: in _gcd_import
???
:991: in _find_and_load
???
:961: in _find_and_load_unlocked
???
:219: in _call_with_frames_removed
???
:1014: in _gcd_import
???
:991: in _find_and_load
???
:975: in _find_and_load_unlocked
???
:671: in _load_unlocked
???
:843: in exec_module
???
:219: in _call_with_frames_removed
???
numcodecs/__init__.py:91: in
from numcodecs.shuffle import Shuffle
numcodecs/shuffle.py:4: in
from ._shuffle import _doShuffle, _doUnshuffle
E ModuleNotFoundError: No module named 'numcodecs._shuffle'
_______________ ERROR collecting numcodecs/tests/test_astype.py ________________
/usr/lib64/python3.8/importlib/__init__.py:127: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
:1014: in _gcd_import
???
:991: in _find_and_load
???
:961: in _find_and_load_unlocked
???
:219: in _call_with_frames_removed
???
:1014: in _gcd_import
???
:991: in _find_and_load
???
:961: in _find_and_load_unlocked
???
:219: in _call_with_frames_removed
???
:1014: in _gcd_import
???
:991: in _find_and_load
???
:975: in _find_and_load_unlocked
???
:671: in _load_unlocked
???
:843: in exec_module
???
:219: in _call_with_frames_removed
???
numcodecs/__init__.py:91: in
from numcodecs.shuffle import Shuffle
numcodecs/shuffle.py:4: in
from ._shuffle import _doShuffle, _doUnshuffle
E ModuleNotFoundError: No module named 'numcodecs._shuffle'
_______________ ERROR collecting numcodecs/tests/test_astype.py ________________
ImportError while importing test module '/home/tkloczko/rpmbuild/BUILD/numcodecs-0.12.1/numcodecs/tests/test_astype.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib64/python3.8/importlib/__init__.py:127: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
numcodecs/__init__.py:91: in
from numcodecs.shuffle import Shuffle
numcodecs/shuffle.py:4: in
from ._shuffle import _doShuffle, _doUnshuffle
E ModuleNotFoundError: No module named 'numcodecs._shuffle'
_______________ ERROR collecting numcodecs/tests/test_base64.py ________________
/usr/lib64/python3.8/importlib/__init__.py:127: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
:1014: in _gcd_import
???
:991: in _find_and_load
???
:961: in _find_and_load_unlocked
???
:219: in _call_with_frames_removed
???
:1014: in _gcd_import
???
:991: in _find_and_load
???
:961: in _find_and_load_unlocked
???
:219: in _call_with_frames_removed
???
:1014: in _gcd_import
???
:991: in _find_and_load
???
:975: in _find_and_load_unlocked
???
:671: in _load_unlocked
???
:843: in exec_module
???
:219: in _call_with_frames_removed
???
numcodecs/__init__.py:91: in
from numcodecs.shuffle import Shuffle
numcodecs/shuffle.py:4: in
from ._shuffle import _doShuffle, _doUnshuffle
E ModuleNotFoundError: No module named 'numcodecs._shuffle'
_______________ ERROR collecting numcodecs/tests/test_base64.py ________________
ImportError while importing test module '/home/tkloczko/rpmbuild/BUILD/numcodecs-0.12.1/numcodecs/tests/test_base64.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib64/python3.8/importlib/__init__.py:127: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
numcodecs/__init__.py:91: in
from numcodecs.shuffle import Shuffle
numcodecs/shuffle.py:4: in
from ._shuffle import _doShuffle, _doUnshuffle
E ModuleNotFoundError: No module named 'numcodecs._shuffle'
______________ ERROR collecting numcodecs/tests/test_bitround.py _______________
/usr/lib64/python3.8/importlib/__init__.py:127: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
:1014: in _gcd_import
???
:991: in _find_and_load
???
:961: in _find_and_load_unlocked
???
:219: in _call_with_frames_removed
???
:1014: in _gcd_import
???
:991: in _find_and_load
???
:961: in _find_and_load_unlocked
???
:219: in _call_with_frames_removed
???
:1014: in _gcd_import
???
:991: in _find_and_load
???
:975: in _find_and_load_unlocked
???
:671: in _load_unlocked
???
:843: in exec_module
???
:219: in _call_with_frames_removed
???
numcodecs/__init__.py:91: in
from numcodecs.shuffle import Shuffle
numcodecs/shuffle.py:4: in
from ._shuffle import _doShuffle, _doUnshuffle
E ModuleNotFoundError: No module named 'numcodecs._shuffle'
______________ ERROR collecting numcodecs/tests/test_bitround.py _______________
ImportError while importing test module '/home/tkloczko/rpmbuild/BUILD/numcodecs-0.12.1/numcodecs/tests/test_bitround.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib64/python3.8/importlib/__init__.py:127: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
numcodecs/__init__.py:91: in
from numcodecs.shuffle import Shuffle
numcodecs/shuffle.py:4: in
from ._shuffle import _doShuffle, _doUnshuffle
E ModuleNotFoundError: No module named 'numcodecs._shuffle'
________________ ERROR collecting numcodecs/tests/test_blosc.py ________________
/usr/lib64/python3.8/importlib/__init__.py:127: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
:1014: in _gcd_import
???
:991: in _find_and_load
???
:961: in _find_and_load_unlocked
???
:219: in _call_with_frames_removed
???
:1014: in _gcd_import
???
:991: in _find_and_load
???
:961: in _find_and_load_unlocked
???
:219: in _call_with_frames_removed
???
:1014: in _gcd_import
???
:991: in _find_and_load
???
:975: in _find_and_load_unlocked
???
:671: in _load_unlocked
???
:843: in exec_module
???
:219: in _call_with_frames_removed
???
numcodecs/__init__.py:91: in
from numcodecs.shuffle import Shuffle
numcodecs/shuffle.py:4: in
from ._shuffle import _doShuffle, _doUnshuffle
E ModuleNotFoundError: No module named 'numcodecs._shuffle'
________________ ERROR collecting numcodecs/tests/test_blosc.py ________________
ImportError while importing test module '/home/tkloczko/rpmbuild/BUILD/numcodecs-0.12.1/numcodecs/tests/test_blosc.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib64/python3.8/importlib/__init__.py:127: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
numcodecs/__init__.py:91: in
from numcodecs.shuffle import Shuffle
numcodecs/shuffle.py:4: in
from ._shuffle import _doShuffle, _doUnshuffle
E ModuleNotFoundError: No module named 'numcodecs._shuffle'
_________________ ERROR collecting numcodecs/tests/test_bz2.py _________________
/usr/lib64/python3.8/importlib/__init__.py:127: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
:1014: in _gcd_import
???
:991: in _find_and_load
???
:961: in _find_and_load_unlocked
???
:219: in _call_with_frames_removed
???
:1014: in _gcd_import
???
:991: in _find_and_load
???
:961: in _find_and_load_unlocked
???
:219: in _call_with_frames_removed
???
:1014: in _gcd_import
???
:991: in _find_and_load
???
:975: in _find_and_load_unlocked
???
:671: in _load_unlocked
???
:843: in exec_module
???
:219: in _call_with_frames_removed
???
numcodecs/__init__.py:91: in
from numcodecs.shuffle import Shuffle
numcodecs/shuffle.py:4: in
from ._shuffle import _doShuffle, _doUnshuffle
E ModuleNotFoundError: No module named 'numcodecs._shuffle'
_________________ ERROR collecting numcodecs/tests/test_bz2.py _________________
ImportError while importing test module '/home/tkloczko/rpmbuild/BUILD/numcodecs-0.12.1/numcodecs/tests/test_bz2.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib64/python3.8/importlib/__init__.py:127: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
numcodecs/__init__.py:91: in
from numcodecs.shuffle import Shuffle
numcodecs/shuffle.py:4: in
from ._shuffle import _doShuffle, _doUnshuffle
E ModuleNotFoundError: No module named 'numcodecs._shuffle'
_____________ ERROR collecting numcodecs/tests/test_categorize.py ______________
/usr/lib64/python3.8/importlib/__init__.py:127: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
:1014: in _gcd_import
???
:991: in _find_and_load
???
:961: in _find_and_load_unlocked
???
:219: in _call_with_frames_removed
???
:1014: in _gcd_import
???
:991: in _find_and_load
???
:961: in _find_and_load_unlocked
???
:219: in _call_with_frames_removed
???
:1014: in _gcd_import
???
:991: in _find_and_load
???
:975: in _find_and_load_unlocked
???
:671: in _load_unlocked
???
:843: in exec_module
???
:219: in _call_with_frames_removed
???
numcodecs/__init__.py:91: in
from numcodecs.shuffle import Shuffle
numcodecs/shuffle.py:4: in
from ._shuffle import _doShuffle, _doUnshuffle
E ModuleNotFoundError: No module named 'numcodecs._shuffle'
_____________ ERROR collecting numcodecs/tests/test_categorize.py ______________
ImportError while importing test module '/home/tkloczko/rpmbuild/BUILD/numcodecs-0.12.1/numcodecs/tests/test_categorize.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib64/python3.8/importlib/__init__.py:127: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
numcodecs/__init__.py:91: in
from numcodecs.shuffle import Shuffle
numcodecs/shuffle.py:4: in
from ._shuffle import _doShuffle, _doUnshuffle
E ModuleNotFoundError: No module named 'numcodecs._shuffle'
_____________ ERROR collecting numcodecs/tests/test_checksum32.py ______________
/usr/lib64/python3.8/importlib/__init__.py:127: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
:1014: in _gcd_import
???
:991: in _find_and_load
???
:961: in _find_and_load_unlocked
???
:219: in _call_with_frames_removed
???
:1014: in _gcd_import
???
:991: in _find_and_load
???
:961: in _find_and_load_unlocked
???
:219: in _call_with_frames_removed
???
:1014: in _gcd_import
???
:991: in _find_and_load
???
:975: in _find_and_load_unlocked
???
:671: in _load_unlocked
???
:843: in exec_module
???
:219: in _call_with_frames_removed
???
numcodecs/__init__.py:91: in
from numcodecs.shuffle import Shuffle
numcodecs/shuffle.py:4: in
from ._shuffle import _doShuffle, _doUnshuffle
E ModuleNotFoundError: No module named 'numcodecs._shuffle'
_____________ ERROR collecting numcodecs/tests/test_checksum32.py ______________
ImportError while importing test module '/home/tkloczko/rpmbuild/BUILD/numcodecs-0.12.1/numcodecs/tests/test_checksum32.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib64/python3.8/importlib/__init__.py:127: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
numcodecs/__init__.py:91: in
from numcodecs.shuffle import Shuffle
numcodecs/shuffle.py:4: in
from ._shuffle import _doShuffle, _doUnshuffle
E ModuleNotFoundError: No module named 'numcodecs._shuffle'
_______________ ERROR collecting numcodecs/tests/test_compat.py ________________
/usr/lib64/python3.8/importlib/__init__.py:127: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
:1014: in _gcd_import
???
:991: in _find_and_load
???
:961: in _find_and_load_unlocked
???
:219: in _call_with_frames_removed
???
:1014: in _gcd_import
???
:991: in _find_and_load
???
:961: in _find_and_load_unlocked
???
:219: in _call_with_frames_removed
???
:1014: in _gcd_import
???
:991: in _find_and_load
???
:975: in _find_and_load_unlocked
???
:671: in _load_unlocked
???
:843: in exec_module
???
:219: in _call_with_frames_removed
???
numcodecs/__init__.py:91: in
from numcodecs.shuffle import Shuffle
numcodecs/shuffle.py:4: in
from ._shuffle import _doShuffle, _doUnshuffle
E ModuleNotFoundError: No module named 'numcodecs._shuffle'
_______________ ERROR collecting numcodecs/tests/test_compat.py ________________
ImportError while importing test module '/home/tkloczko/rpmbuild/BUILD/numcodecs-0.12.1/numcodecs/tests/test_compat.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib64/python3.8/importlib/__init__.py:127: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
numcodecs/__init__.py:91: in
from numcodecs.shuffle import Shuffle
numcodecs/shuffle.py:4: in
from ._shuffle import _doShuffle, _doUnshuffle
E ModuleNotFoundError: No module named 'numcodecs._shuffle'
________________ ERROR collecting numcodecs/tests/test_delta.py ________________
/usr/lib64/python3.8/importlib/__init__.py:127: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
:1014: in _gcd_import
???
:991: in _find_and_load
???
:961: in _find_and_load_unlocked
???
:219: in _call_with_frames_removed
???
:1014: in _gcd_import
???
:991: in _find_and_load
???
:961: in _find_and_load_unlocked
???
:219: in _call_with_frames_removed
???
:1014: in _gcd_import
???
:991: in _find_and_load
???
:975: in _find_and_load_unlocked
???
:671: in _load_unlocked
???
:843: in exec_module
???
I'm packaging your module as an rpm package so I'm using the typical PEP517 based build, install and test cycle used on building packages from non-root account.
python3 -sBm build -w --no-isolation
build
with--no-isolation
I'm using during all processes only locally installed modulescut off from access to the public network
(pytest is executed with-m "not network"
)List of installed modules in build env:
```console Package Version ----------------------------- -------- alabaster 0.7.16 Babel 2.14.0 build 1.0.3 charset-normalizer 3.3.2 cppclean 0.13 Cython 3.0.8 distro 1.9.0 dnf 4.19.0 docutils 0.20.1 exceptiongroup 1.1.3 gpg 1.23.2 idna 3.6 imagesize 1.4.1 importlib_metadata 7.0.1 iniconfig 2.0.0 installer 0.7.0 Jinja2 3.1.3 libdnf 0.73.0 MarkupSafe 2.1.3 numpy 1.24.4 numpydoc 1.6.0 packaging 23.2 pluggy 1.3.0 py-cpuinfo 9.0.0 Pygments 2.17.2 pyproject_hooks 1.0.0 pytest 8.0.0 python-dateutil 2.8.2 pytz 2024.1 requests 2.31.0 setuptools 69.1.0 setuptools-scm 8.0.4 six 1.16.0 snowballstemmer 2.2.0 Sphinx 7.1.2 sphinx-issues 3.0.1 sphinxcontrib-applehelp 1.0.4 sphinxcontrib-devhelp 1.0.5 sphinxcontrib-htmlhelp 2.0.5 sphinxcontrib-jsmath 1.0.1 sphinxcontrib-qthelp 1.0.7 sphinxcontrib-serializinghtml 1.1.10 tabulate 0.9.0 tomli 2.0.1 typing_extensions 4.9.0 urllib3 1.26.18 wheel 0.42.0 zipp 3.17.0 ```Please let me know if you need more details or want me to perform some diagnostics.