You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Warnings from system/unittests at 2024-05-14 in github python 3.12 action.
Many warnings because of usage of deprecated pkg_resources, e.g. by cdsapi that are also documented in ecmwf/cdsapi#89:
../../../../../opt/hostedtoolcache/Python/3.12.3/x64/lib/python3.12/site-packages/cdsapi/api.py:17
/opt/hostedtoolcache/Python/3.12.3/x64/lib/python3.12/site-packages/cdsapi/api.py:17: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
import pkg_resources
Many others by pydap, seems to be documented in pydap/pydap#319:
../../../../../opt/hostedtoolcache/Python/3.12.3/x64/lib/python3.12/site-packages/pkg_resources/__init__.py:2832
/opt/hostedtoolcache/Python/3.12.3/x64/lib/python3.12/site-packages/pkg_resources/__init__.py:2832: DeprecationWarning: Deprecated call to `pkg_resources.declare_namespace('pydap')`.
Implementing implicit namespace packages (as specified in PEP 420) is preferred to `pkg_resources.declare_namespace`. See https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages
declare_namespace(pkg)
../../../../../opt/hostedtoolcache/Python/3.12.3/x64/lib/python3.12/site-packages/pkg_resources/__init__.py:2832
/opt/hostedtoolcache/Python/3.12.3/x64/lib/python3.12/site-packages/pkg_resources/__init__.py:2832: DeprecationWarning: Deprecated call to `pkg_resources.declare_namespace('pydap.responses')`.
Implementing implicit namespace packages (as specified in PEP 420) is preferred to `pkg_resources.declare_namespace`. See https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages
declare_namespace(pkg)
../../../../../opt/hostedtoolcache/Python/3.12.3/x64/lib/python3.12/site-packages/pkg_resources/__init__.py:2317
../../../../../opt/hostedtoolcache/Python/3.12.3/x64/lib/python3.12/site-packages/pkg_resources/__init__.py:2317
../../../../../opt/hostedtoolcache/Python/3.12.3/x64/lib/python3.12/site-packages/pkg_resources/__init__.py:2317
/opt/hostedtoolcache/Python/3.12.3/x64/lib/python3.12/site-packages/pkg_resources/__init__.py:2317: DeprecationWarning: Deprecated call to `pkg_resources.declare_namespace('pydap')`.
Implementing implicit namespace packages (as specified in PEP 420) is preferred to `pkg_resources.declare_namespace`. See https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages
declare_namespace(parent)
../../../../../opt/hostedtoolcache/Python/3.12.3/x64/lib/python3.12/site-packages/pkg_resources/__init__.py:2832
/opt/hostedtoolcache/Python/3.12.3/x64/lib/python3.12/site-packages/pkg_resources/__init__.py:2832: DeprecationWarning: Deprecated call to `pkg_resources.declare_namespace('pydap.handlers')`.
Implementing implicit namespace packages (as specified in PEP 420) is preferred to `pkg_resources.declare_namespace`. See https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages
declare_namespace(pkg)
../../../../../opt/hostedtoolcache/Python/3.12.3/x64/lib/python3.12/site-packages/pkg_resources/__init__.py:2832
/opt/hostedtoolcache/Python/3.12.3/x64/lib/python3.12/site-packages/pkg_resources/__init__.py:2832: DeprecationWarning: Deprecated call to `pkg_resources.declare_namespace('pydap.tests')`.
Implementing implicit namespace packages (as specified in PEP 420) is preferred to `pkg_resources.declare_namespace`. See https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages
declare_namespace(pkg)
../../../../../opt/hostedtoolcache/Python/3.12.3/x64/lib/python3.12/site-packages/xugrid/data/sample_data.py:16
/opt/hostedtoolcache/Python/3.12.3/x64/lib/python3.12/site-packages/xugrid/data/sample_data.py:16: DeprecationWarning: pathlib.Path.__enter__() is deprecated and scheduled for removal in Python 3.13; Path objects as a context manager is a no-op
with importlib.resources.files("xugrid.data") as path:
Caused by pydantic:
../../../../../opt/hostedtoolcache/Python/3.12.3/x64/lib/python3.12/site-packages/pydantic/v1/fields.py:437
/opt/hostedtoolcache/Python/3.12.3/x64/lib/python3.12/site-packages/pydantic/v1/fields.py:437: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC).
return smart_deepcopy(self.default) if self.default_factory is None else self.default_factory()
Caused by copernicusmarine, reported to helpdesk on 16-5-2024:
tests/test_download.py: 11 warnings
tests/test_observations.py: 20 warnings
/opt/hostedtoolcache/Python/3.12.3/x64/lib/python3.12/site-packages/cachier/core.py:222: DeprecationWarning: `ignore_cache` is deprecated and will be removed in a future release, use `cachier__` alternative instead.
ignore_cache = _pop_kwds_with_deprecation(
tests/test_download.py::test_download_cmems_my
tests/test_observations.py::test_ssh_retrieve_data[cmems]
/opt/hostedtoolcache/Python/3.12.3/x64/lib/python3.12/site-packages/aiohttp/connector.py:776: DeprecationWarning: The object should be created within an async function
super().__init__(
tests/test_download.py::test_download_cmems_my
tests/test_observations.py::test_ssh_retrieve_data[cmems]
/opt/hostedtoolcache/Python/3.12.3/x64/lib/python3.12/site-packages/aiohttp/connector.py:788: DeprecationWarning: The object should be created within an async function
resolver = DefaultResolver(loop=self._loop)
tests/test_download.py::test_download_cmems_my
tests/test_observations.py::test_ssh_retrieve_data[cmems]
/opt/hostedtoolcache/Python/3.12.3/x64/lib/python3.12/site-packages/copernicusmarine/core_functions/sessions.py:36: DeprecationWarning: The object should be created within an async function
return aiohttp.ClientSession(connector=connector, trust_env=TRUST_ENV)
tests/test_download.py::test_download_cmems_my
tests/test_observations.py::test_ssh_retrieve_data[cmems]
/opt/hostedtoolcache/Python/3.12.3/x64/lib/python3.12/site-packages/aiohttp/cookiejar.py:84: DeprecationWarning: The object should be created within an async function
super().__init__(loop=loop)
tests/test_download.py::test_download_cmems_my
tests/test_download.py::test_download_cmems_my
tests/test_download.py::test_download_cmems_my
tests/test_download.py::test_download_cmems_forecast
tests/test_download.py::test_download_cmems_forecast
/opt/hostedtoolcache/Python/3.12.3/x64/lib/python3.12/site-packages/copernicusmarine/core_functions/services_utils.py:538: DeprecationWarning: The 'warn' method is deprecated, use 'warning' instead
logger.warn(
Caused by dfm_tools:
tests/test_interpolate_grid2bnd.py::test_interp_uds_to_plipoints
/opt/hostedtoolcache/Python/3.12.3/x64/lib/python3.12/site-packages/dask/array/reductions.py:654: RuntimeWarning: All-NaN slice encountered
return np.nanmax(x_chunk, axis=axis, keepdims=keepdims)
tests/test_observations.py::test_ssh_netcdf_overview
/home/runner/work/dfm_tools/dfm_tools/dfm_tools/observations.py:1053: FutureWarning: 'H' is deprecated and will be removed in a future version, please use 'h' instead.
time_hr_uniq = ds_slice.time.to_pandas().index.round("H").drop_duplicates()
The text was updated successfully, but these errors were encountered:
Warnings from system/unittests at 2024-05-14 in github python 3.12 action.
Many warnings because of usage of deprecated
pkg_resources
, e.g. bycdsapi
that are also documented in ecmwf/cdsapi#89:Many others by pydap, seems to be documented in pydap/pydap#319:
Caused by xugrid, reported in Deltares/xugrid#194:
Caused by pydantic:
Caused by copernicusmarine, reported to helpdesk on 16-5-2024:
Caused by dfm_tools:
The text was updated successfully, but these errors were encountered: