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.

Edit: I have a watcher on the release supporting zarr v3, will update when it becomes available.

Following maint: bump minimum dependency versions according to policy by jhamman · Pull Request #11231 · pydata/xarray · GitHub, xarray no longer supports zarr 2.X.

This was released in xarray=2026.4.0.

Hopefully this will lead to the zarr ecosystem fragmentation across v2 and v3 resolving soon.

To the best of my knowledge/understanding:

  • Parcels v4 is out, and
  • it supports zarr v3
    Any chance we can get this into a recent analysis-3 so I can play around with it? It looks like parcels v4 has better support for MOM6 as opposed to just pretending it’s NEMO

Thanks!

I’ll see what I can do @jemmajeffree

A first try gives me a lot of incompability issues… I’ll have to dig a bit more…

Thanks! I’ve now got a pixi environment working with it for the moment, so it’s not urgent or a blocker on my end.

Way to go!

I agree that it would be awesome to have this!! There’s an old version of parcels in 25.08, it’d be great to have a new one before 25.08 disappears!

Helloo!! I was wondering how is this going? There’s quite a bit of interest in the community in this library it’d be awesome to keep having it supported in the conda environments. The old versions we currently have are buggy and annoying to run (@nmalan and myself have suffered through some of it haha), so a new version would be awesome on that regard too. Perhaps @CharlesTurner knows?

@nmalan I think you’ve been struggling with this also?

@adele-morrison , yes I remember having to do a bunch of workarounds - so I am OK for my current project but it would be great to have the issue resolved, especially as we move towards MOM6

Parcels 4 might be the solution but it introduces some API changes. 4.0.3 has been released and I am looking if we can add it.

OK can someone give it a go with analysis3-26.12 please?