Skip to content

xxhash is currently a strict dependency for reading RNTuples #1271

@ariostas

Description

@ariostas

xxhash is currently a strict dependency for reading RNTuples even though it's not listed on pyproject.toml. The dependent code is here:

xxhash = uproot.extras.xxhash()
computed_checksum = xxhash.xxh64(data).intdigest()
if computed_checksum != expected_checksum:
raise ValueError(
f"""computed checksum {computed_checksum} didn't match expected checksum {expected_checksum}
in file {chunk.source.file_path}"""
)

which could simply be removed to remove the dependency.

For writing, there will be a strict dependency and there is no way to get around it, but maybe we can make uproot.extras.xxhash pick between xxhash and ppxxh (which is pure Python, so it works in WASM).

Metadata

Metadata

Assignees

Labels

installationTroubles installing the package

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions