isrish/GPUWebDashboard

Expecting a hash, but got an int instead from an element returned by GetClocksThrottleReasons on NVIDIA Driver Version: 396.37 CUDA 9.2

Opened this issue · 0 comments

Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1836, in call
return self.wsgi_app(environ, start_response)
File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1820, in wsgi_app
response = self.make_response(self.handle_exception(e))
File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1403, in handle_exception
reraise(exc_type, exc_value, tb)
File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1817, in wsgi_app
response = self.full_dispatch_request()
File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1477, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1381, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1475, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1461, in dispatch_request
return self.view_functionsrule.endpoint
File "/root/GPUWebDashboard/app.py", line 10, in index
hostname, root = gpust.encode_tojson(gpust.getgpustate())
File "/root/GPUWebDashboard/gpustate.py", line 8, in getgpustate
x = nvidia_smi.XmlDeviceQuery()
File "/usr/local/lib/python2.7/dist-packages/nvidia_smi.py", line 544, in XmlDeviceQuery
strResult += GetClocksThrottleReasons(handle);
File "/usr/local/lib/python2.7/dist-packages/nvidia_smi.py", line 206, in GetClocksThrottleReasons
val = handleError(NVML_ERROR_NOT_SUPPORTED);
File "/usr/local/lib/python2.7/dist-packages/nvidia_smi.py", line 218, in handleError
if (err.value == NVML_ERROR_NOT_SUPPORTED):
AttributeError: 'int' object has no attribute 'value'