Open
Description
Trying to run the tests with Python 3.14, I run into ImportError. This is new, doesn't happen with Python 3.13.
I test with Python 3.14, because I prepare an update of the main Python in Fedora Linux 43 and try to rebuild all Python packages as such.
$ tox -e py314
py314: commands[0]> pytest --cov=lz4/block --cov=lz4/frame --tb=long tests/block tests/frame
ImportError while loading conftest '/home/ksurma/dev/python-lz4/tests/frame/conftest.py'.
tests/frame/conftest.py:2: in <module>
import lz4.frame as lz4frame
lz4/frame/__init__.py:30: in <module>
from . import _compression
E ImportError: cannot import name '_compression' from partially initialized module 'lz4.frame' (most likely due to a circular import) (/home/ksurma/dev/python-lz4/lz4/frame/__init__.py)
Or just on an installed project in Python 3.14 venv:
$ python
>>> import lz4.frame as lz4frame
Traceback (most recent call last):
File "/home/ksurma/dev/python-lz4/lz4/frame/__init__.py", line 28, in <module>
import _compression # Python 3.6 and later
^^^^^^^^^^^^^^^^^^^
ModuleNotFoundError: No module named '_compression'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<python-input-0>", line 1, in <module>
import lz4.frame as lz4frame
File "/home/ksurma/dev/python-lz4/lz4/frame/__init__.py", line 30, in <module>
from . import _compression
ImportError: cannot import name '_compression' from partially initialized module 'lz4.frame' (most likely due to a circular import) (/home/ksurma/dev/python-lz4/lz4/frame/__init__.py)
Metadata
Metadata
Assignees
Labels
No labels