Skip to content
Discussion options

You must be logged in to vote

This is a bug. The code in /src/litdata/raw/indexer.py catches zstd.ZstdError, but the zstd PyPI package only exposes zstd.Error, not ZstdError.

Fix: Replace zstd with pyzstd in requirements/test.txt:

pyzstd; python_version < "3.14"

Then update imports to import pyzstd as zstd for Python < 3.14. The pyzstd package provides ZstdError and has an API compatible with Python 3.14's compression.zstd module.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by stf976
Comment options

You must be logged in to vote
1 reply
@stf976
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants