mirror of
https://github.com/XuehaiPan/nvitop.git
synced 2026-05-15 14:15:55 -06:00
[GH-ISSUE #104] [BUG] Monitor mode displays nothing under Python 3.12 in Windows 11 #63
Labels
No labels
api
bug
bug
cli / tui
dependencies
documentation
documentation
documentation
duplicate
enhancement
exporter
invalid
pull-request
pynvml
question
question
upstream
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/nvitop#63
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @BigFatBass on GitHub (Oct 31, 2023).
Original GitHub issue: https://github.com/XuehaiPan/nvitop/issues/104
Originally assigned to: @XuehaiPan on GitHub.
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-cursesC:\>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.2
Problem 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
@XuehaiPan commented on GitHub (Nov 1, 2023):
Hi @BigFatBass, could you try to run:
to verify if this is an issue related to
nvitoprather thanwindows-curses?Also, have you ever tried to use
nvitopwith Python 3.11?@BigFatBass commented on GitHub (Nov 1, 2023):
Hi Xuehai Pan, please find my two comments below:
Here is the output of
nvitop -1:Please note I've updated the NVIDIA driver to 546.01 but it does not matter.
nvitopas 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
nvitopunder 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.2
I successfully ran

nvitopin monitor mode with Python 3.11.Here is the expected output with Python 3.11 in Windows:
@XuehaiPan commented on GitHub (Nov 1, 2023):
@BigFatBass Thanks for the context. The
windows-cursesupstream added Python 3.12 support yesterday. Seems that this is an upstream issue forwindows-curseson Python 3.12.@riverzhou commented on GitHub (Nov 2, 2023):
Same problem.
@miaLDN commented on GitHub (Apr 1, 2024):
Also same problem on Windows:
Python 3.11.8 all works
Python 3.12.2 only once ("-1") works, python.exe crashes
@miaLDN commented on GitHub (Apr 3, 2024):
Not sure if related, but most of the command-line arguments don't appear to work. Using Python 3.11.8 and
pip install nvitopthe refresh is always at two seconds, whatever is specified via `--interval X``@silverwolf-x commented on GitHub (May 14, 2024):
I think the problem has been solved since
windows-curses 2.3.3was released on May 9, 2024. In my platformnvitopcan be shown correctly now.@XuehaiPan commented on GitHub (May 14, 2024):
Thanks @Silverwolf-x! Closing this as resolved.