Skip to content

Remove netCDF4<1.7.3 pin #6777

@pp-mo

Description

@pp-mo

Introduced by #6773 (but will soon need to be updated in the conda feedstock also)
Relevant issue links:

It may well be that we actually need a fix in Iris for this, but we're not pursuing that immediately.
The actual issue that occurs is a single test failure, visible in this fragment from the log:

___________________ TestDatasetAndPathLoads.test_basic_load ____________________
[gw0] linux -- Python 3.13.9 /home/runner/work/iris/iris/.nox/tests/bin/python3.13

self = <iris.tests.integration.netcdf.test_general.TestDatasetAndPathLoads testMethod=test_basic_load>

    def test_basic_load(self):
        # test loading from an open Dataset, in place of a filepath spec.
        ds = nc.Dataset(self.filepath)
>       result = iris.load_cube(ds, self.phenom_id)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

lib/iris/tests/integration/netcdf/test_general.py:384: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
lib/iris/loading.py:201: in load_cube
    cubes = _load_collection(uris, constraints, callback).combined().cubes()
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
lib/iris/loading.py:137: in _load_collection
    result = _CubeFilterCollection.from_cubes(cubes, constraints)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
lib/iris/loading.py:93: in from_cubes
    for c in cubes:
             ^^^^^
lib/iris/loading.py:28: in _generate_cubes
    uri_tuples = sorted(iris.io.decode_uri(uri) for uri in uris)
                                                           ^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

>   ???
E   TypeError: Dataset is not iterable. Consider iterating on Dataset.variables.

src/netCDF4/_netCDF4.pyx:2569: TypeError

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions