Skip to content

Nightly build is failing #2809

@github-actions

Description

@github-actions

The Nightly workflow is failing.
The tests failed.
Log:

Details
ERROR: while parsing the following warning configuration:

error::metpy.deprecation.MetpyDeprecationWarning

This error occurred:

Traceback (most recent call last):
File "/opt/hostedtoolcache/Python/3.10.8/x64/lib/python3.10/site-packages/_pytest/config/init.py", line 1690, in parse_warning_filter
category: Type[Warning] = resolve_warning_category(category)
File "/opt/hostedtoolcache/Python/3.10.8/x64/lib/python3.10/site-packages/_pytest/config/init.py", line 1728, in _resolve_warning_category
m = import(module, None, None, [klass])
File "/opt/hostedtoolcache/Python/3.10.8/x64/lib/python3.10/site-packages/metpy/init.py", line 35, in
from .xarray import * # noqa: F401, F403, E402
File "/opt/hostedtoolcache/Python/3.10.8/x64/lib/python3.10/site-packages/metpy/xarray.py", line 31, in
from .units import (_mutate_arguments, DimensionalityError, is_quantity, UndefinedUnitError,
File "/opt/hostedtoolcache/Python/3.10.8/x64/lib/python3.10/site-packages/metpy/units.py", line 86, in
units = setup_registry(pint.get_application_registry())
File "/opt/hostedtoolcache/Python/3.10.8/x64/lib/python3.10/site-packages/metpy/units.py", line 67, in setup_registry
reg.define('percent = 0.01 = %')
File "/opt/hostedtoolcache/Python/3.10.8/x64/lib/python3.10/site-packages/pint/facets/plain/registry.py", line 414, in define
self._helper_dispatch_adder(definition)
File "/opt/hostedtoolcache/Python/3.10.8/x64/lib/python3.10/site-packages/pint/facets/plain/registry.py", line 437, in _helper_dispatch_adder
adder_func(definition)
File "/opt/hostedtoolcache/Python/3.10.8/x64/lib/python3.10/site-packages/pint/facets/group/registry.py", line 82, in _add_unit
super()._add_unit(definition)
File "/opt/hostedtoolcache/Python/3.10.8/x64/lib/python3.10/site-packages/pint/facets/nonmultiplicative/registry.py", line 69, in _add_unit
super()._add_unit(definition)
File "/opt/hostedtoolcache/Python/3.10.8/x64/lib/python3.10/site-packages/pint/facets/plain/registry.py", line 503, in _add_unit
self._helper_adder(definition, self._units, self._units_casei)
File "/opt/hostedtoolcache/Python/3.10.8/x64/lib/python3.10/site-packages/pint/facets/plain/registry.py", line 443, in _helper_adder
self._helper_single_adder(
File "/opt/hostedtoolcache/Python/3.10.8/x64/lib/python3.10/site-packages/pint/facets/plain/registry.py", line 465, in _helper_single_adder
raise RedefinitionError(key, type(value))
pint.errors.RedefinitionError: Cannot redefine 'percent' (<class 'pint.delegates.txt_defparser.plain.UnitDefinition'>)

The documentation build failed.
Log:

Details
python override_check.py
Traceback (most recent call last):
  File "/home/runner/work/MetPy/MetPy/docs/override_check.py", line 22, in 
    i = importlib.import_module(module)
  File "/opt/hostedtoolcache/Python/3.10.8/x64/lib/python3.10/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "", line 1050, in _gcd_import
  File "", line 1027, in _find_and_load
  File "", line 992, in _find_and_load_unlocked
  File "", line 241, in _call_with_frames_removed
  File "", line 1050, in _gcd_import
  File "", line 1027, in _find_and_load
  File "", line 992, in _find_and_load_unlocked
  File "", line 241, in _call_with_frames_removed
  File "", line 1050, in _gcd_import
  File "", line 1027, in _find_and_load
  File "", line 1006, in _find_and_load_unlocked
  File "", line 688, in _load_unlocked
  File "", line 883, in exec_module
  File "", line 241, in _call_with_frames_removed
  File "/opt/hostedtoolcache/Python/3.10.8/x64/lib/python3.10/site-packages/metpy/__init__.py", line 35, in 
    from .xarray import *  # noqa: F401, F403, E402
  File "/opt/hostedtoolcache/Python/3.10.8/x64/lib/python3.10/site-packages/metpy/xarray.py", line 31, in 
    from .units import (_mutate_arguments, DimensionalityError, is_quantity, UndefinedUnitError,
  File "/opt/hostedtoolcache/Python/3.10.8/x64/lib/python3.10/site-packages/metpy/units.py", line 86, in 
    units = setup_registry(pint.get_application_registry())
  File "/opt/hostedtoolcache/Python/3.10.8/x64/lib/python3.10/site-packages/metpy/units.py", line 67, in setup_registry
    reg.define('percent = 0.01 = %')
  File "/opt/hostedtoolcache/Python/3.10.8/x64/lib/python3.10/site-packages/pint/facets/plain/registry.py", line 414, in define
    self._helper_dispatch_adder(definition)
  File "/opt/hostedtoolcache/Python/3.10.8/x64/lib/python3.10/site-packages/pint/facets/plain/registry.py", line 437, in _helper_dispatch_adder
    adder_func(definition)
  File "/opt/hostedtoolcache/Python/3.10.8/x64/lib/python3.10/site-packages/pint/facets/group/registry.py", line 82, in _add_unit
    super()._add_unit(definition)
  File "/opt/hostedtoolcache/Python/3.10.8/x64/lib/python3.10/site-packages/pint/facets/nonmultiplicative/registry.py", line 69, in _add_unit
    super()._add_unit(definition)
  File "/opt/hostedtoolcache/Python/3.10.8/x64/lib/python3.10/site-packages/pint/facets/plain/registry.py", line 503, in _add_unit
    self._helper_adder(definition, self._units, self._units_casei)
  File "/opt/hostedtoolcache/Python/3.10.8/x64/lib/python3.10/site-packages/pint/facets/plain/registry.py", line 443, in _helper_adder
    self._helper_single_adder(
  File "/opt/hostedtoolcache/Python/3.10.8/x64/lib/python3.10/site-packages/pint/facets/plain/registry.py", line 465, in _helper_single_adder
    raise RedefinitionError(key, type(value))
pint.errors.RedefinitionError: Cannot redefine 'percent' ()
make: *** [Makefile:24: overridecheck] Error 1
Linkchecker output:
Details

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: MaintenanceUpdates and clean ups (but not wrong)

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions