-
|
In For Python 3.14 and above, the module is included with Python (https://docs.python.org/3/library/compression.zstd.html) and it includes this exception. For earlier versions, the module is imported as The pip package on which the Python implementation is based also contains Am I missing something or is this a bug in litdata? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
|
This is a bug. The code in Fix: Replace Then update imports to |
Beta Was this translation helpful? Give feedback.
-
|
Thanks @stf976 and @anntnzrb for pointing this out! 🙌 You're right — the fallback We'll get a fix in soon. Thanks again for raising it! |
Beta Was this translation helpful? Give feedback.
This is a bug. The code in
/src/litdata/raw/indexer.pycatcheszstd.ZstdError, but thezstdPyPI package only exposeszstd.Error, notZstdError.Fix: Replace
zstdwithpyzstdinrequirements/test.txt:Then update imports to
import pyzstd as zstdfor Python < 3.14. Thepyzstdpackage providesZstdErrorand has an API compatible with Python 3.14'scompression.zstdmodule.