Closed BigFatBass closed 3 months ago
The windows-curses has been updated due to support Python 3.12. So, it seems the issue depends on the windows-curses.
Hi @BigFatBass, could you try to run:
nvitop -1
to verify if this is an issue related to nvitop
rather than windows-curses
?
Also, have you ever tried to use nvitop
with Python 3.11?
Hi Xuehai Pan, please find my two comments below:
nvitop -1
:
Please note I've updated the NVIDIA driver to 546.01 but it does not matter.
nvitop
as the monitor with Python 3.11 and I did not observed any problems til Python 3.12. Moreover, there is no an issue in Ubuntu 23.10 (and NVIDIA driver 535) and WSL2 Ubuntu 22.04 with Python 3.12 at the same HW environment.
In any rate, I've installed Python 3.11.6 on the Windows and nvitop
under Python 3.11.6.
PS C:\> python -m pip freeze | python -c "import sys; print(sys.version, sys.platform); print(''.join(filter(lambda s: any(word in s.lower() for word in ('nvi', 'cuda', 'nvml', 'gpu', 'curses')), sys.stdin)))"
3.11.6 (tags/v3.11.6:8b6ee5b, Oct 2 2023, 14:57:12) [MSC v.1935 64 bit (AMD64)] win32
nvidia-ml-py==12.535.108
nvitop==1.3.1
windows-curses==2.3.2I successfully ran nvitop
in monitor mode with Python 3.11.
Here is the expected output with Python 3.11 in Windows:
I used nvitop as the monitor with Python 3.11 and I did not observed any problems til Python 3.12.
@BigFatBass Thanks for the context. The windows-curses
upstream added Python 3.12 support yesterday. Seems that this is an upstream issue for windows-curses
on Python 3.12.
Same problem.
Also same problem on Windows:
Python 3.11.8 all works Python 3.12.2 only once ("-1") works, python.exe crashes
Not sure if related, but most of the command-line arguments don't appear to work. Using Python 3.11.8 and pip install nvitop
the refresh is always at two seconds, whatever is specified via `--interval X``
I think the problem has been solved since windows-curses 2.3.3
was released on May 9, 2024. In my platform nvitop
can be shown correctly now.
3.12.3 | packaged by conda-forge | (main, Apr 15 2024, 18:20:11) [MSC v.1938 64 bit (AMD64)] win32
nvidia-ml-py==12.535.133
nvitop==1.3.2
windows-curses==2.3.3
Thanks @Silverwolf-x! Closing this as resolved.
Required prerequisites
What version of nvitop are you using?
1.3.1
Operating system and version
Windows 11 Build 10.0.22631.2506
NVIDIA driver version
545.92
NVIDIA-SMI
Python environment
C:\>pip install -U nvitop nvidia-ml-py windows-curses
C:\>python -m pip freeze | python -c "import sys; print(sys.version, sys.platform); print(''.join(filter(lambda s: any(word in s.lower() for word in ('nvi', 'cuda', 'nvml', 'gpu', 'curses')), sys.stdin)))"
3.12.0 (tags/v3.12.0:0fb18b0, Oct 2 2023, 13:03:39) [MSC v.1935 64 bit (AMD64)] win32 nvidia-ml-py==12.535.108 nvitop==1.3.1 windows-curses==2.3.2Problem description
The nvitop starts, thinks for a couple of seconds, and just silently exits on any example at Resource Monitor. There is no GUI or a text message in the terminal. The terminal or Windows does not crash/fail.
The windows-curses has been updated due to support Python 3.12. So, it seems the issue depends on the windows-curses.
Notes:
Steps to Reproduce
C:>nvitop
Traceback
No response
Logs
No response
Expected behavior
The nvitop should work as resource monitor in Windows similar as shown in the figure at https://user-images.githubusercontent.com/16078332/129374533-fe06c01a-630d-4994-b54b-821cccd0d33c.png
Additional context
No response