Parcels incompatible with Zarr >=3

Just in the process of updating some of my particle tracking code to work with Parcels v3.X and noticed that when I tried running it under conda/analysis3-latest, it crashed due to an “AttributeError: module ‘zarr.storage’ has no attribute’ ‘Store’ “ error.

Looking into things this seems to be due to an incompatibility between Parcels v3.1.0 and Zarr v3.X. Analysis3-latest currently has Parcels v3.1.0 which is intended for use with Zarr 2.X. To fix this you’d need to upgrade to Parcels v3.1.2 or later.

This isn’t an urgent issue, I can use an older conda/analysis3 build for now. But it’d be good to fix sometime.

Hi Chris,

totally missed this at the time - sorry I’m just replying.

I’ve just had a look at parcels 3.1.2 and it looks like that release pinned zarr < 3 - I think it’ll be parcels 4 before zarr v3 compatibility arrives unfortunately:

Also crosslink to this relevant topic here, which might be useful for others in the future: Issue using parcels in analysis3

Thanks. What does this imply for using Parcels under XP65 conda given analysis3-25.05 is to be depreciated soon? Have any of the current environments been reconfigured to use zarr 2.X?

zarr v2 is available in all the conda environments up to 25.08 (inclusive). We’ll try to maintain at least one legacy environment containing zarr v2 in the meantime so that Parcels can be used.

Unfortunately as things move on in the scientific python ecosystem, maintaining the availability of an environment with zarr v2 will become more difficult due to other dependencies updating and causing conflicts - so we’ll have to keep an eye out, hopefully the Parcels team can get zarr v3 compatibility sorted sooner rather than later!

cc. @rbeucher

I have updated the issue title to better reflect the problem.