Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errors in DcgmReaderExample.py #35

Open
FindHao opened this issue May 16, 2022 · 1 comment
Open

Errors in DcgmReaderExample.py #35

FindHao opened this issue May 16, 2022 · 1 comment

Comments

@FindHao
Copy link

FindHao commented May 16, 2022

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
@bstollenvidia
Copy link

I confirmed this is still present in 3.1.6

self.LogDebug("fieldGroupId: " + findByNameId + "\n")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants