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
{{ message }}
Repository navigation
After upgrading Python from 3.12.5 to 3.13: Missing _version.py file in lz4 package causing ModuleNotFoundError #290
I am experiencing an issue with the lz4 package in Python. After reinstalling Python and the lz4 library, I encountered a ModuleNotFoundError related to a missing _version.py file. I've upgraded from Python version 3.12.5 to 3.13.
Here’s a summary of my setup and the steps I’ve taken:
Environment Details:
When running my script, I receive the following error:
ModuleNotFoundError: No module named 'lz4._version'
This error occurs specifically in the browser_cookie3 package, which attempts to import lz4.block.
Steps Taken:
Checked for Installation of lz4:
I verified that lz4 is installed using pip show lz4. It confirmed the installation but did not indicate the presence of the _version.py file.
Reinstalled lz4:
I uninstalled and reinstalled the package using:
pip uninstall lz4
pip install lz4
Checked the Installation Directory:
I navigated to the lz4 installation directory (e.g., C:\Program Files\Python313\Lib\site-packages\lz4) but did not find the _version.py file.
Tried Installing Different Versions:
I attempted to install older versions of lz4, but the issue persisted with the missing file.
Explored Alternative Installation:
I considered downloading the lz4 package directly from GitHub, but I wanted to check if anyone else has encountered this issue and found a solution.
Request for Help:
If anyone has experienced similar issues or knows how to resolve this problem, I would greatly appreciate your guidance. Is there a specific reason why _version.py is missing in my installation? Any help would be invaluable!
Activity
sacrificerXY commentedon Dec 20, 2024
Idk how this all works but in my case, I've cloned the repo and manually done
pip install/pip wheelwhile also modifying this part:python-lz4/setup.py
Lines 70 to 75 in 546d6d5
I just uncommented that whole section and added an extra line that forced
use_system_liblz4toFalse.Again, I'm not at all familiar with any of these things so I'm not sure what side-effects this will have.
cclauss commentedon Oct 23, 2025
Is this still happening in the current release?