#1141635 fastparquet: AttributeError on import - module 'cramjam' has no attribute 'gzip'

Package:
python3-fastparquet
Source:
python3-fastparquet
Description:
python implementation of the parquet format
Submitter:
Rebecca N. Palmer
Date:
2026-07-23 10:55:02 UTC
Severity:
normal
#1141635#5
Date:
2026-07-07 18:21:03 UTC
From:
To:
I am currently upgrading pandas, and as part of this, attempted to test
its parquet I/O functionality.  This failed to even import fastparquet,
with the error

AttributeError: module 'cramjam' has no attribute 'gzip'.  Did you mean:
'bzip2'?

e.g. https://salsa.debian.org/science-team/pandas/-/jobs/9907658

(fastparquet's own autopkgtest does not actually test anything, because
plain pybuild-autopkgtest cannot find the tests.  This is probably a bug
in itself.)

I do not know whether this bug is actually in fastparquet or in cramjam;
it is not *obviously* known to either upstream.

#1141635#10
Date:
2026-07-23 10:44:36 UTC
From:
To:
Control: forwarded 1141635 https://github.com/dask/fastparquet/issues/984
Control: affects 1141635 python3-cramjam

This looks like it's due to this patch in cramjam:

https://salsa.debian.org/python-team/packages/python-cramjam/-/blob/master/debian/patches/drop-cramjam-unsupported?ref_type=heads

which removes gzip support entirely.

The fastparquet package could change compression.py to only
conditionally include gzip support based on whether cramjam.gzip is
present.  However, fastparquet appears to actually use gzip as the
default compression algorithm in a few different places, so perhaps
someone with a better understanding of the parquet ecosystem can think
through the implications of such a change better than i can.