-
Notifications
You must be signed in to change notification settings - Fork 285
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using a miniforge environment, iris can load data from .nc file but with a lot of errors #5195
Comments
For ref. the errors in the file look like this ...
|
This looks familiar : It is a current known problem / ongoing investigation, which appears to occur with later versions of libnetcdf / netCDF4 / hdf5. For now, we think the messages are effectively benign -- the operations themselves seem to complete successfully. The best workaround for now seems to be, to pin "libnetcdf < 4.9" as here. |
@SciTools/peloton We believe pinning "libnetcdf < 4.9" has solved this for now. We are going to close the issue as it no longer is an issue. If this becomes relevant again then feel free to reopen. |
📰 Custom Issue
I have found that miniforge is unable to load an iris cube without errors but interestingly miniconda can. I thought I would raise this as an issue, though it is not explicitly an iris code issue but a python environment/library dependency issue.
A minimum working example is as follows:
import iris
import glob
filename = iris.sample_data_path('ostia_monthly.nc')
f1 = glob.glob(filename)
cube = iris.load_cube(f1)
var = cube.data
When the above code is run using a miniforge environment (see py3.10 env), the error attached in the txt file is generated
error.txt. But when I run the same code using a minconda environment (see py3.10conda env) the code executes without error.
For context, here is the python environments I have been working with (using the Ubuntu 22.04 OS).
Working in a miniforge environment at version 22.9.0-2 which was set up using the following:
https://github.com/conda-forge/miniforge/releases/download/22.9.0-2/Miniforge-pypy3-Linux-x86_64.sh
Created a python environment at version 3.10:
conda create -n py3.10 python=3.10
conda install cube_helper iris pandas
What did work, was using a miniconda environment instead:
https://repo.anaconda.com/miniconda/Miniconda3-py310_23.1.0-1-Linux-x86_64.sh
create a python environment at version 3.10
conda create -n py3.10conda python=3.10
conda install pandas
conda install -c conda-forge cube_helper iris
The text was updated successfully, but these errors were encountered: