Closed ThomasHaine closed 1 year ago
that is a very overwhelming error! I tried too and got the same issues.
To add context, oceanspy can open other files like LLC4320
and "get_started" just fine. Hard to tell what the error is, but I will take a look later tonight and / or tomorrow.
Looks like the issue has been discussed here, you'll probably have to pin NetCDF: https://github.com/pydata/xarray/issues/7549
Thanks @malmans2! Easy fix, and I'll start by correctly labeling this issue
OK. I figured it out. It is not netcdf4
that needs to be pinned down, but a library libnetcdf<4.8.2
(see https://github.com/SciTools/iris/issues/5187). version 4.8.1 works fine with 'netcdf4=1.6.2' (which I think is the current version installed in the Oceanography image).
I ran a test env in Sciserver and it all works fine (IGP can open and all)
PR coming soon!
This issue persists with the new version.
@Mikejmnez this was supposed to fix the issue, right?
@ThomasHaine did you install the new environment already?
@Mikejmnez I installed the oceanspy version from an hour ago that pins netcdf (see the version number in the previous comment). Is there something else to update?
Yeah. Either a new oceanography image with the corrected environment (pinned netcdf4) or, alternatively, you can open a terminal and do the following:
conda activate Oceanography
conda install netcdf4 = 1.6.1
that should install the correct version of netcdf4. You can check that that version got installed in the terminal
conda list
and check that not only netcdf4 == 1.6.1
but importantly, the libnetcdf<4.8.2
. This last one is the one with the problems.
If everthing is OK, then restart the notebook and try again
BTW - Mitya built a test Oceanography image which I tested with and works with oceanspy. It needs to be build again to get the latest PR of oceanspy (I had to do pip install to get the latest corrections). It should be available late Wed or by early Thurs.
Thanks @Mikejmnez, I understand now. And it works! I'll test the new Oceanography image when it's ready (please let me know).
@Mikejmnez, I haven't tested it yet, but I think the new release of libnetcdf is meant to fix the warnings: https://anaconda.org/conda-forge/libnetcdf
Great, I'll check this later today. Thanks @malmans2 !
New (16Mar23) Oceanography image on SciServer.
Description
Overwhelming error reporting when trying to open the dataset. Command never successfully returns with the opened dataset.
What I Did