Atoptool / atop

System and process monitor for Linux
GNU General Public License v2.0
789 stars 110 forks source link

Removing old str.decode call from atopgpud #236

Closed jbd closed 1 year ago

jbd commented 1 year ago

With nvidia-ml-py 11.525.84 and python3, I've got an AttributeError: 'str' object has no attribute 'decode'.

Atoptool commented 1 year ago

I am not able to check this myself, but I guess that NVDIA has modified the datatype of 'busId' from a byte-object (which has a decode method) to a string (which does not need a decode). The suggested modification makes older API versions (that still use a byte-object) unusable. Please provide a solution that is compatible with older versions.

jbd commented 1 year ago

https://github.com/Atoptool/atop/pull/243 looks OK !