I am having errors on opendap access (any of them):
import xarray as xr url = "https://erddap.emodnet.eu/erddap/griddap/bathymetry_2022" url = "https://ihthredds.ihcantabria.com/thredds/dodsC/Bathymetry/Global/Gebco_2020.nc" ds = xr.open_dataset(url)
The point is that only ocurrs when i deploy and test the code on an ubuntu-latest machine using (pyenv+pip), see summary of the action:
my dependencies are defined on pyproject.toml file like this:
dependencies = [ "geopandas", "xarray", "netCDF4", "h5netcdf", "scipy", "pydap", "zarr", "fsspec", "cftime", "pooch", "dask[complete]", "ipykernel", "matplotlib", "owslib", "shapely", "geojson", "pytest>=7", "lxml", "python-dotenv", ]
However, If I use conda on wsl unbuntu 20.04 LTS with this environment.yml, works fine:
name: pyteseo-dev channels: - conda-forge - defaults dependencies: - python>=3.7 - xarray - dask - netcdf4 - bottleneck - ipykernel - matplotlib - geopandas - owslib - shapely - geojson - pytest>=7 - coverage - flit - black - sphinx - myst-nb - sphinx-autoapi - sphinx_rtd_theme - pre_commit - flake8 - pydap - lxml - scipy - python-dotenv
Public repository here: pyTESEO
What did you expect to happen?I expect to pass all tests
Minimal Complete Verifiable Exampleimport xarray as xr url = "https://erddap.emodnet.eu/erddap/griddap/bathymetry_2022" url = "https://ihthredds.ihcantabria.com/thredds/dodsC/Bathymetry/Global/Gebco_2020.nc" ds = xr.open_dataset(url)MVCE confirmation
No response
Anything else we need to know?No response
EnvironmentRetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4