Skip to content
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

Pin netCDF4-python version to pre 1.6 #160

Merged
merged 3 commits into from
Oct 14, 2022
Merged

Pin netCDF4-python version to pre 1.6 #160

merged 3 commits into from
Oct 14, 2022

Conversation

SorooshMani-NOAA
Copy link
Collaborator

As of now versions 1.6 and above result in errors on GitHub actions when trying to open hamtide .nc files:

During handling of the above exception, another exception occurred:

    def test_open_w_xr():
>       ds = xr.open_dataset(url)

tests/test_github_action.py:16: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
../../../.local/lib/python3.8/site-packages/xarray/backends/api.py:539: in open_dataset
    backend_ds = backend.open_dataset(
../../../.local/lib/python3.8/site-packages/xarray/backends/netCDF4_.py:555: in open_dataset
    store = NetCDF4DataStore.open(
../../../.local/lib/python3.8/site-packages/xarray/backends/netCDF4_.py:384: in open
    return cls(manager, group=group, mode=mode, lock=lock, autoclose=autoclose)
../../../.local/lib/python3.8/site-packages/xarray/backends/netCDF4_.py:332: in __init__
    self.format = self.ds.data_model
../../../.local/lib/python3.8/site-packages/xarray/backends/netCDF4_.py:393: in ds
    return self._acquire()
../../../.local/lib/python3.8/site-packages/xarray/backends/netCDF4_.py:387: in _acquire
    with self._manager.acquire_context(needs_lock) as root:
/usr/lib/python3.8/contextlib.py:113: in __enter__
    return next(self.gen)
../../../.local/lib/python3.8/site-packages/xarray/backends/file_manager.py:189: in acquire_context
    file, cached = self._acquire_with_cache_info(needs_lock)
../../../.local/lib/python3.8/site-packages/xarray/backends/file_manager.py:207: in _acquire_with_cache_info
    file = self._opener(*self._args, **kwargs)
src/netCDF4/_netCDF4.pyx:24[63](https://github.com/noaa-ocs-modeling/adcircpy/actions/runs/3251212919/jobs/5335909325#step:6:64): in netCDF4._netCDF4.Dataset.__init__
    ???
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

>   ???
E   OSError: [Errno -[68](https://github.com/noaa-ocs-modeling/adcircpy/actions/runs/3251212919/jobs/5335909325#step:6:69)] NetCDF: I/O failure: b'https://icdc.cen.uni-hamburg.de/thredds/dodsC/ftpthredds/hamtide//m2.hamtide11a.nc'

src/netCDF4/_netCDF4.pyx:2026: OSError
----------------------------- Captured stderr call -----------------------------
Note:Caching=1
Error:curl error: Problem with the SSL CA cert (path? access rights?)
curl error details: 
Warning:oc_open: Could not read url

@SorooshMani-NOAA SorooshMani-NOAA added the bug Something isn't working label Oct 14, 2022
@SorooshMani-NOAA SorooshMani-NOAA merged commit d580f28 into main Oct 14, 2022
@SorooshMani-NOAA
Copy link
Collaborator Author

See Unidata/netcdf-c#2459

@SorooshMani-NOAA SorooshMani-NOAA deleted the depend/netcdf branch October 14, 2022 17:55
@SorooshMani-NOAA SorooshMani-NOAA self-assigned this Oct 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant