Skip to content

pynvml warning causing CI failure #9110

@jacobtomlinson

Description

@jacobtomlinson

CI is failing with pynvml errors https://github.com/dask/distributed/actions/runs/17616908367/job/50052323428?pr=9109

ERROR: while parsing the following warning configuration:

  ignore::distributed.versions.VersionMismatchWarning

This error occurred:

Traceback (most recent call last):
  File "/home/runner/miniconda3/envs/dask-distributed/lib/python3.10/site-packages/_pytest/config/__init__.py", line 1918, in parse_warning_filter
Warning: ory: type[Warning] = _resolve_warning_category(category_)
  File "/home/runner/miniconda3/envs/dask-distributed/lib/python3.10/site-packages/_pytest/config/__init__.py", line 1956, in _resolve_warning_category
    m = __import__(module, None, None, [klass])
  File "/home/runner/work/distributed/distributed/distributed/__init__.py", line 23, in <module>
    from distributed.actor import Actor, ActorFuture, BaseActorFuture
  File "/home/runner/work/distributed/distributed/distributed/actor.py", line 15, in <module>
    from distributed.client import Future
  File "/home/runner/work/distributed/distributed/distributed/client.py", line 65, in <module>
    from distributed import cluster_dump, preloading
  File "/home/runner/work/distributed/distributed/distributed/preloading.py", line 18, in <module>
    from distributed.core import Server
  File "/home/runner/work/distributed/distributed/distributed/core.py", line 53, in <module>
    from distributed.system_monitor import SystemMonitor
  File "/home/runner/work/distributed/distributed/distributed/system_monitor.py", line 14, in <module>
    from distributed.diagnostics import nvml
  File "/home/runner/work/distributed/distributed/distributed/diagnostics/nvml.py", line 14, in <module>
    import pynvml
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1002, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 945, in _find_spec
  File "/home/runner/miniconda3/envs/dask-distributed/lib/python3.10/site-packages/_pynvml_redirector.py", line 29, in find_spec
    warnings.warn(PYNVML_MSG, FutureWarning, stacklevel=2)
FutureWarning: The pynvml package is deprecated. Please install nvidia-ml-py instead. If you did not install pynvml directly, please report this to the maintainers of the package that installed pynvml for you.

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