Skip to content

Bug in DCGM Python3 bindings #262

@aditigaur4

Description

@aditigaur4

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

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