[Debian-pan-maintainers] Bug#1141635: fastparquet: AttributeError on import - module 'cramjam' has no attribute 'gzip'
Daniel Kahn Gillmor
dkg at debian.org
Thu Jul 23 11:44:36 BST 2026
Control: forwarded 1141635 https://github.com/dask/fastparquet/issues/984
Control: affects 1141635 python3-cramjam
On Tue 2026-07-07 19:21:03 +0100, Rebecca N. Palmer wrote:
> 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.
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.
--dkg
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 324 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/debian-pan-maintainers/attachments/20260723/022ae121/attachment.sig>
More information about the Debian-pan-maintainers
mailing list