zarr-python
zarr-python copied to clipboard
`cannot import name 'LZ4' from 'numcodecs'` test failure on `=zarr-2.16.1`
Zarr version
2.14.2, 2.16.1
Numcodecs version
0.12.1. 0.11.0
Python Version
3.11
Operating System
Linux
Installation
Gentoo Portage
Description
The tests fail with an import error from numcodecs.
Numcodecs tests pass however.
I assume this might be because some numcodecs extras are reqzuired by zarr, if that is the case these tests should either not fail, or if they cover core functionality, it should be described somewhere what numcodecs extras are required.
This is the snippet:
_________________________________________________ ERROR collecting zarr/tests/test_sync.py _________________________________________________
ImportError while importing test module '/var/tmp/portage/dev-python/zarr-2.16.1/work/zarr-2.16.1/zarr/tests/test_sync.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.11/site-packages/_pytest/python.py:617: in _importtestmodule
mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
/usr/lib/python3.11/site-packages/_pytest/pathlib.py:567: in import_path
importlib.import_module(module_name)
/usr/lib/python3.11/importlib/__init__.py:126: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1204: in _gcd_import
???
<frozen importlib._bootstrap>:1176: in _find_and_load
???
<frozen importlib._bootstrap>:1147: in _find_and_load_unlocked
???
<frozen importlib._bootstrap>:690: in _load_unlocked
???
/usr/lib/python3.11/site-packages/_pytest/assertion/rewrite.py:186: in exec_module
exec(co, module.__dict__)
zarr/tests/test_sync.py:20: in <module>
from zarr.tests.test_core import TestArray
/usr/lib/python3.11/site-packages/_pytest/assertion/rewrite.py:186: in exec_module
exec(co, module.__dict__)
zarr/tests/test_core.py:13: in <module>
from numcodecs import (
E ImportError: cannot import name 'LZ4' from 'numcodecs' (/usr/lib/python3.11/site-packages/numcodecs/__init__.py)
Steps to reproduce
Full build log: https://ppb.chymera.eu/bcceeb.log
Additional output
Multiple zarr and numcodecs versions are listed, because I tried multiple versions. This keeps happening.