DCGM
DCGM copied to clipboard
Errors in DcgmReaderExample.py
Hi, there is an error when I tried to test /usr/local/dcgm/sdk_samples/scripts/DcgmReaderExample.py
. Could you help me figure out what's wrong with it?
Processing in field order by overriding the CustomerDataHandler() method
type of findBynameid <class 'ctypes.c_void_p'>
c_void_p(12)
Traceback (most recent call last):
File "DcgmReaderExample.py", line 95, in <module>
main()
File "DcgmReaderExample.py", line 88, in main
cdr.Process()
File "/usr/local/dcgm/bindings/python3/DcgmReader.py", line 440, in Process
self.Reconnect()
File "/usr/local/dcgm/bindings/python3/DcgmReader.py", line 342, in Reconnect
self.InitializeFromHandle()
File "/usr/local/dcgm/bindings/python3/DcgmReader.py", line 312, in InitializeFromHandle
self.GetFieldMetadata()
File "/usr/local/dcgm/bindings/python3/DcgmReader.py", line 400, in GetFieldMetadata
self.LogInfo("fieldGroupId: " + findByNameId + "\n")
TypeError: can only concatenate str (not "c_void_p") to str
I confirmed this is still present in 3.1.6 https://github.com/NVIDIA/DCGM/blob/4aedfaae1f7c8480e46b8c835ddd5afbd00d57be/testing/python3/DcgmReader.py#L400