NOAA-ORR-ERD / gridded

A single API for accessing / working with gridded model results on multiple grid types
https://noaa-orr-erd.github.io/gridded/index.html
The Unlicense
64 stars 14 forks source link

installed the new code of pygnome / gridded version 0.3.4 #73

Open larissafranklin23 opened 1 year ago

larissafranklin23 commented 1 year ago

Hello, I tried once again to install the PyGnome new code and it's installing the gridded 0.3.4. I already tried to update with conda intall gridded==0.3.6 and keep returning me the gridded 0.3.4. I also tried to download the gridded code here and tried to install in conda, but keep giving me the same error. Because of that I'm not being able to run my model. When I was using the gridded 0.3.0 was with some limitations but it was running.

image

coconnor8 commented 1 year ago

Which branch of pygnome are you using? The conda_requirements file shows which version of gridded you need. If you are using production branch then 0.3.0 is still in the requirements file for gridded. The main branch has 0.3.6

If you install gridded 0.3.6 and do pip show gridded it will show 0.3.4. If you do conda list gridded it should show 0.3.6. So you do have the right version, it just has an internal version that is incorrect. This is a bug that has been fixed in gridded 0.3.7.

ChrisBarker-NOAA commented 1 year ago

NOTE: there is a bug in some of the conda packages, where the version numbers don't match :-(

If you installed gridded with conda, then you should use conda to check the version number:

conda list gridded

As @coconnor8 said -- you need to match the versions (of all packages) with the branch / version you have of PyGNOME. The best way to do that is to do a full re-install of the conda packages after you update the PyGNOME code:

conda install --file conda_requiremetns.txt

or create a whole new environment:

conda create -n gnome --file conda_requirements.txt