Skip to content

zarr 2.18.7 incompatibility? "'int' object is not callable" #156

@hyanwong

Description

@hyanwong

It appears as if compressed_array.nbytes_stored is an integer in zarr v2, not a function (which it is in zarr v3)

tszip.compress(ts_pq, "unified_genealogy/hgdp_tgp_sgdp_high_cov_ancients_chr9.tsz")
Traceback (most recent call last):
  File "<python-input-10>", line 1, in <module>
    tszip.compress(ts_pq, "unified_genealogy/hgdp_tgp_sgdp_high_cov_ancients_chr9.tsz")
    ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/well/kelleher/users/sbk774/conda/skylake/envs/adna/lib/python3.14/site-packages/tszip/compression.py", line 110, in compress
    compress_zarr(ts, root, variants_only=variants_only, chunk_size=chunk_size)
    ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/well/kelleher/users/sbk774/conda/skylake/envs/adna/lib/python3.14/site-packages/tszip/compression.py", line 269, in compress_zarr
    col.compress(root, compressor)
    ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^
  File "/well/kelleher/users/sbk774/conda/skylake/envs/adna/lib/python3.14/site-packages/tszip/compression.py", line 165, in compress
    nbytes_stored = compressed_array.nbytes_stored()
TypeError: 'int' object is not callable
>>> import zarr
>>> zarr.__version__
'2.18.7'
>>> tszip.__version__
'0.3.1'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions