question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ValueError: invalid literal for int() with base 10: '[Not Supported]'

See original GitHub issue

Running gpustat got following return

Traceback (most recent call last):
  File "/home/~~~/anaconda2/bin/gpustat", line 11, in <module>
    sys.exit(main())
  File "/home/~~~/anaconda2/lib/python2.7/site-packages/gpustat.py", line 283, in main
    print_gpustat(**vars(args))
  File "/home/~~~/anaconda2/lib/python2.7/site-packages/gpustat.py", line 242, in print_gpustat
    gpu_stats.update_process_information()
  File "/home/~~~/anaconda2/lib/python2.7/site-packages/gpustat.py", line 196, in update_process_information
    processes = self.running_processes()
  File "/home/~~~/anaconda2/lib/python2.7/site-packages/gpustat.py", line 166, in running_processes
    pid_map = {int(e['pid']) : None for e in process_entries}
  File "/home/~~~/anaconda2/lib/python2.7/site-packages/gpustat.py", line 166, in <dictcomp>
    pid_map = {int(e['pid']) : None for e in process_entries}
ValueError: invalid literal for int() with base 10: '[Not Supported]'
  • Ubuntu 14.04
  • Python 2.7 with Anaconda 4

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
wookayincommented, Nov 7, 2016

It looks that nvidia-smi cannot retrieve some usage information of older GPU cards such as GT 610 and GTX 780. I fixed the issue in 902f9cd.

Please try with the latest master version, or you can install it directly via pip+git:

pip install git+https://github.com/wookayin/gpustat.git@master
0reactions
weiweikongcommented, Nov 7, 2016

@wookayin It works fine. 😃

~  Mon Nov  7 17:21:40 2016
[0] Tesla K40c       | 44'C,   0 % |    23 / 11519 MB |
[1] GeForce GT 610   | 41'C,  ?? % |   397 /  1016 MB | --/--(?M)
[2] Tesla K40c       | 46'C,   0 % |    23 / 11519 MB |
Read more comments on GitHub >

github_iconTop Results From Across the Web

ValueError: invalid literal for int() with base 10: '' - Stack Overflow
The reason is that you are getting an empty string or a string as an argument into int. Check if it ...
Read more >
ValueError: invalid literal for int() with base 10
The error message invalid literal for int() with base 10 would seem to indicate that you are passing a string that's not an...
Read more >
Python ValueError: invalid literal for int() with base 10
This error can frequently occur when converting user-input to an integer-type using the int() function. This problem happens because Python stores the input...
Read more >
How to fix this ValueError invalid literal for int with base 10 ...
The error message invalid literal for int() with base 10 would seem to indicate that you are passing a string that's not an...
Read more >
ValueError: invalid literal for int() with base 10 in Python
The Python ValueError: invalid literal for int() with base 10 occurs when we pass a string that cannot be directly converted to an...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found