You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
hi!
so today we tried to add python 3.14 to our github action, and we're facing an error that seems to be comming from this package
django_valkey/compressors/lz4.py:1: in <module>
from lz4.frame import compress
.venv/lib/python3.14/site-packages/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/runner/work/django-valkey/django-valkey/.venv/lib/python3.14/site-packages/lz4/frame/__init__.py)
if this is a problem on our side, i would be thankful to get a hint 🙌
but it works with all the other python versions
i understand that you don't yet support 3.14, just opening this for a heads up
<frozen importlib._bootstrap>:491: RuntimeWarning: The global interpreter lock (GIL) has been enabled
to load module 'lz4._version', which has not declared that it can run safely without the GIL.
To override this behavior and keep the GIL disabled (at your own risk), run with PYTHON_GIL=0
or -Xgil=0.
Activity
Build wheels for Python 3.14
cclauss commentedon Sep 24, 2025
%
uvx --with=lz4 python3.14t -c"import lz4"Duplicate of:
amirreza-sf80 commentedon Sep 24, 2025
ah
sorry, didn't see that
cclauss commentedon Oct 20, 2025
Is this fixed on the
masterbranch?Build wheels for Python 3.14
Build wheels for Python 3.14
ikrommyd commentedon Oct 31, 2025
Looks okay to me on my machine.
cclauss commentedon Nov 3, 2025
Fixed in v4.4.5? https://github.com/python-lz4/python-lz4/releases --> https://pypi.org/project/lz4
This now works:
%
uvx --with=lz4 python3.14t -c"from lz4.frame import compress"cclauss commentedon Dec 1, 2025
@amirreza8002 Are you still blocked on this issue or can it be closed?
amirreza-sf80 commentedon Dec 1, 2025
yup
seems ok