Zarr.jl icon indicating copy to clipboard operation
Zarr.jl copied to clipboard

getCompressor fails

Open felixcremer opened this issue 6 months ago • 1 comments

I am trying to open a zarr file from an s3 bucket which I constructed myself using Zarr.jl This fails with the following error and I don't really understand what is happening.

julia> e039path
"s3://europe-forest-change/intermediates/E039N009_rqatrend_VH_A030_thresh_3.0.zarr/"

julia> zopen(e039path)
ERROR: MethodError: no method matching getCompressor(::Dict{String, Any})
The function `getCompressor` exists, but no method is defined for this combination of argument types.
Stacktrace:
  [1] Zarr.Metadata(d::Dict{String, Any}, fill_as_missing::Bool)
    @ Zarr ~/Documents/FAIRSENDD/worldmap/dev/Zarr/src/metadata.jl:165
  [2] Zarr.Metadata(s::String, fill_as_missing::Bool)
    @ Zarr ~/Documents/FAIRSENDD/worldmap/dev/Zarr/src/metadata.jl:152
  [3] getmetadata(s::S3Store, p::String, fill_as_missing::Bool)
    @ Zarr ~/Documents/FAIRSENDD/worldmap/dev/Zarr/src/Storage/Storage.jl:118
  [4] ZArray(s::S3Store, mode::String, path::String; fill_as_missing::Bool)
    @ Zarr ~/Documents/FAIRSENDD/worldmap/dev/Zarr/src/ZArray.jl:112
  [5] zopen_noerr(s::S3Store, mode::String; consolidated::Bool, path::String, lru::Int64, fill_as_missing::Bool)
    @ Zarr ~/Documents/FAIRSENDD/worldmap/dev/Zarr/src/ZGroup.jl:52
  [6] ZGroup(s::S3Store, mode::String, path::String; fill_as_missing::Bool)
    @ Zarr ~/Documents/FAIRSENDD/worldmap/dev/Zarr/src/ZGroup.jl:23
  [7] ZGroup
    @ ~/.julia/packages/Zarr/3QSdj/src/ZGroup.jl:17 [inlined]
  [8] zopen_noerr(s::S3Store, mode::String; consolidated::Bool, path::String, lru::Int64, fill_as_missing::Bool)
    @ Zarr ~/Documents/FAIRSENDD/worldmap/dev/Zarr/src/ZGroup.jl:54
  [9] #zopen#100
    @ ~/.julia/packages/Zarr/3QSdj/src/ZGroup.jl:95 [inlined]
 [10] zopen(s::String, mode::String; kwargs::@Kwargs{})
    @ Zarr ~/Documents/FAIRSENDD/worldmap/dev/Zarr/src/ZGroup.jl:110
 [11] zopen
    @ ~/.julia/packages/Zarr/3QSdj/src/ZGroup.jl:108 [inlined]
 [12] zopen(s::String)
    @ Zarr ~/Documents/FAIRSENDD/worldmap/dev/Zarr/src/ZGroup.jl:108
 [13] top-level scope
    @ REPL[240]:1

felixcremer avatar Jun 19 '25 14:06 felixcremer

https://github.com/JuliaIO/Zarr.jl/blob/1275f422c1b71ca2960f8c172321a66a17ed313e/src/Compressors/Compressors.jl#L55 exists so I am very confused

asinghvi17 avatar Aug 31 '25 19:08 asinghvi17