Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Bug in DCGM Python3 bindings

Open
#262 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
38/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
python
Domain
api

Research direction

Start with bindings/python3/DcgmDiag.py, especially the import logger line, and compare it with the other Python binding modules listed in the issue. Re-run python3 -c "import DcgmDiag" and from DcgmDiag import DcgmDiag; done means both imports succeed without requiring an absent logger.py file.

Written by the indexing model from the issue text.

Description

Python3 bindings for DCGM 4.2.3 contains DcgmDiag Module. This module is unimportable because of a "logger" module.

root@ccw-1-3-gpu-210:/usr/share/datacenter-gpu-manager-4/bindings/python3# pwd
/usr/share/datacenter-gpu-manager-4/bindings/python3
root@ccw-1-3-gpu-210:/usr/share/datacenter-gpu-manager-4/bindings/python3# python3 -c "import DcgmDiag"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/share/datacenter-gpu-manager-4/bindings/python3/DcgmDiag.py", line 18, in <module>
    import logger
ModuleNotFoundError: No module named 'logger'
(.venv) root@ccw-1-3-gpu-210:/usr/share/datacenter-gpu-manager-4/bindings/python3# python3 -c "from DcgmDiag import DcgmDiag"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/share/datacenter-gpu-manager-4/bindings/python3/DcgmDiag.py", line 18, in <module>
    import logger
ModuleNotFoundError: No module named 'logger'

These bindings come from DCGM version 4.2.3.

dcgmi --version

dcgmi  version: 4.2.3

"logger.py" is not a file contained in the package:

dpkg -L datacenter-gpu-manager-4-core | grep -E '/logger\.py$'

All other imports work successfully:

(.venv) root@ccw-1-3-gpu-210:/usr/share/datacenter-gpu-manager-4/bindings/python3# python3 -c "import dcgm_fields,dcgm_structs,pydcgm"
(.venv) root@ccw-1-3-gpu-210:/usr/share/datacenter-gpu-manager-4/bindings/python3# ls
DcgmDiag.py        DcgmGroup.py   DcgmJsonReader.py  DcgmReader.py  DcgmSystem.py  common         dcgm_collectd_plugin.py  dcgm_field_helpers.py  dcgm_fields_collectd.py  dcgm_fluentd.py  dcgm_telegraf.py  denylist_recommendations.py
DcgmFieldGroup.py  DcgmHandle.py  DcgmLogging.py     DcgmStatus.py  __pycache__    dcgm_agent.py  dcgm_errors.py           dcgm_fields.py         dcgm_fields_internal.py  dcgm_structs.py  dcgmvalue.py      pydcgm.py
Dominant language
C++
Stars
809
Forks
115
Avg merge
6d 10h
Merged PRs (30d)
1

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from NVIDIA/DCGM

All issues in NVIDIA/DCGM

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.