[GH-ISSUE #108] [BUG] curser error init display on ubuntu 22.10 #64

Closed
opened 2026-05-05 03:24:17 -06:00 by gitea-mirror · 2 comments
Owner

Originally created by @julienlau on GitHub (Nov 28, 2023).
Original GitHub issue: https://github.com/XuehaiPan/nvitop/issues/108

Originally assigned to: @XuehaiPan on GitHub.

Required prerequisites

  • I have read the documentation https://nvitop.readthedocs.io.
  • I have searched the Issue Tracker that this hasn't already been reported. (comment there if it has.)
  • I have tried the latest version of nvitop in a new isolated virtual environment.

What version of nvitop are you using?

1.3.1

Operating system and version

ubuntu 22.10

NVIDIA driver version

535.129.03

NVIDIA-SMI

+---------------------------------------------------------------------------------------+
| NVIDIA-SMI 535.129.03             Driver Version: 535.129.03   CUDA Version: 12.2     |
|-----------------------------------------+----------------------+----------------------+
| GPU  Name                 Persistence-M | Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp   Perf          Pwr:Usage/Cap |         Memory-Usage | GPU-Util  Compute M. |
|                                         |                      |               MIG M. |
|=========================================+======================+======================|
|   0  NVIDIA GeForce RTX 3060 ...    Off | 00000000:01:00.0 Off |                  N/A |
| N/A   50C    P0              N/A /  80W |      9MiB /  6144MiB |      0%      Default |
|                                         |                      |                  N/A |
+-----------------------------------------+----------------------+----------------------+
                                                                                         
+---------------------------------------------------------------------------------------+
| Processes:                                                                            |
|  GPU   GI   CI        PID   Type   Process name                            GPU Memory |
|        ID   ID                                                             Usage      |
|=======================================================================================|
|    0   N/A  N/A      3956      G   /usr/lib/xorg/Xorg                            4MiB |
+---------------------------------------------------------------------------------------+

Python environment

[tool.poetry.dependencies]
python = "^3.11"
numpy = "1.24.4"
sentencepiece = "0.1.98"
gguf = ">=0.1.0"
ctransformers = {extras = ["cuda"], version = "^0.2.27"}
nvitop = "^1.3.1"

Problem description

I tried on several terminal (tilix, terminator, default console) and I have the same error everytime:

ERROR: Failed to initialize `curses` (curs_set() returned ERR)

I think this may be the same error : https://github.com/zalando/pg_view/issues/3

$ nvitop
╒═════════════════════════════════════════════════════════════════════════════╕
│ NVITOP 1.3.1      Driver Version: 535.129.03      CUDA Driver Version: 12.2 │
├───────────────────────────────┬──────────────────────┬──────────────────────┤
│ GPU  Name        Persistence-M│ Bus-Id        Disp.A │ Volatile Uncorr. ECC │
│ Fan  Temp  Perf  Pwr:Usage/Cap│         Memory-Usage │ GPU-Util  Compute M. │
╞═══════════════════════════════╪══════════════════════╪══════════════════════╪═══════════════════════════════════════════════════════════════════════════════════════════════════════════════╕
│   0  .. 3060 Laptop GPU  Off  │ 00000000:01:00.0 Off │                  N/A │ MEM: ▎ 0.2%                                                                                                   │
│ N/A   51C    P8     11W / N/A │    9.44MiB / 6144MiB │      0%      Default │ UTL: ▏ 0%                                                                                                     │
╘═══════════════════════════════╧══════════════════════╧══════════════════════╧═══════════════════════════════════════════════════════════════════════════════════════════════════════════════╛
[ CPU: ████████▍ 5.9%                                                                                                                    UPTIME: 1:32:27 ]  ( Load Average:  1.00  1.01  0.91 )
[ MEM: ██████████████████████▍ 15.9%                                                                                                       USED: 4.91GiB ]  [ SWP: ▏ 0.0%                     ]

╒═════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╕
│ Processes:                                                                                                                                                                       jlu@susm16 │
│ GPU     PID      USER  GPU-MEM %SM  %CPU  %MEM     TIME  COMMAND                                                                                                                            │
╞═════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╡
│   0    3956 G     jlu  4.46MiB   0   0.0   0.4  1:32:11  /usr/lib/xorg/Xorg vt2 -displayfd 3 -auth /run/user/1001/gdm/Xauthority -nolisten tcp -background none -noreset -keeptty -novtsw.. │
╘═════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╛
ERROR: Failed to initialize `curses` (curs_set() returned ERR)

Steps to Reproduce

The Python snippets (if any):


Command lines:


Traceback

No response

Logs

No response

Expected behavior

No response

Additional context

No response

Originally created by @julienlau on GitHub (Nov 28, 2023). Original GitHub issue: https://github.com/XuehaiPan/nvitop/issues/108 Originally assigned to: @XuehaiPan on GitHub. ### Required prerequisites - [X] I have read the documentation <https://nvitop.readthedocs.io>. - [X] I have searched the [Issue Tracker](https://github.com/XuehaiPan/nvitop/issues) that this hasn't already been reported. (comment there if it has.) - [X] I have tried the latest version of nvitop in a new isolated virtual environment. ### What version of nvitop are you using? 1.3.1 ### Operating system and version ubuntu 22.10 ### NVIDIA driver version 535.129.03 ### NVIDIA-SMI ```text +---------------------------------------------------------------------------------------+ | NVIDIA-SMI 535.129.03 Driver Version: 535.129.03 CUDA Version: 12.2 | |-----------------------------------------+----------------------+----------------------+ | GPU Name Persistence-M | Bus-Id Disp.A | Volatile Uncorr. ECC | | Fan Temp Perf Pwr:Usage/Cap | Memory-Usage | GPU-Util Compute M. | | | | MIG M. | |=========================================+======================+======================| | 0 NVIDIA GeForce RTX 3060 ... Off | 00000000:01:00.0 Off | N/A | | N/A 50C P0 N/A / 80W | 9MiB / 6144MiB | 0% Default | | | | N/A | +-----------------------------------------+----------------------+----------------------+ +---------------------------------------------------------------------------------------+ | Processes: | | GPU GI CI PID Type Process name GPU Memory | | ID ID Usage | |=======================================================================================| | 0 N/A N/A 3956 G /usr/lib/xorg/Xorg 4MiB | +---------------------------------------------------------------------------------------+ ``` ### Python environment [tool.poetry.dependencies] python = "^3.11" numpy = "1.24.4" sentencepiece = "0.1.98" gguf = ">=0.1.0" ctransformers = {extras = ["cuda"], version = "^0.2.27"} nvitop = "^1.3.1" ### Problem description I tried on several terminal (tilix, terminator, default console) and I have the same error everytime: ``` ERROR: Failed to initialize `curses` (curs_set() returned ERR) ``` I think this may be the same error : https://github.com/zalando/pg_view/issues/3 ```console $ nvitop ╒═════════════════════════════════════════════════════════════════════════════╕ │ NVITOP 1.3.1 Driver Version: 535.129.03 CUDA Driver Version: 12.2 │ ├───────────────────────────────┬──────────────────────┬──────────────────────┤ │ GPU Name Persistence-M│ Bus-Id Disp.A │ Volatile Uncorr. ECC │ │ Fan Temp Perf Pwr:Usage/Cap│ Memory-Usage │ GPU-Util Compute M. │ ╞═══════════════════════════════╪══════════════════════╪══════════════════════╪═══════════════════════════════════════════════════════════════════════════════════════════════════════════════╕ │ 0 .. 3060 Laptop GPU Off │ 00000000:01:00.0 Off │ N/A │ MEM: ▎ 0.2% │ │ N/A 51C P8 11W / N/A │ 9.44MiB / 6144MiB │ 0% Default │ UTL: ▏ 0% │ ╘═══════════════════════════════╧══════════════════════╧══════════════════════╧═══════════════════════════════════════════════════════════════════════════════════════════════════════════════╛ [ CPU: ████████▍ 5.9% UPTIME: 1:32:27 ] ( Load Average: 1.00 1.01 0.91 ) [ MEM: ██████████████████████▍ 15.9% USED: 4.91GiB ] [ SWP: ▏ 0.0% ] ╒═════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╕ │ Processes: jlu@susm16 │ │ GPU PID USER GPU-MEM %SM %CPU %MEM TIME COMMAND │ ╞═════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╡ │ 0 3956 G jlu 4.46MiB 0 0.0 0.4 1:32:11 /usr/lib/xorg/Xorg vt2 -displayfd 3 -auth /run/user/1001/gdm/Xauthority -nolisten tcp -background none -noreset -keeptty -novtsw.. │ ╘═════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╛ ERROR: Failed to initialize `curses` (curs_set() returned ERR) ``` ### Steps to Reproduce The Python snippets (if any): ```python ``` Command lines: ```bash ``` ### Traceback _No response_ ### Logs _No response_ ### Expected behavior _No response_ ### Additional context _No response_
gitea-mirror 2026-05-05 03:24:17 -06:00
Author
Owner

@XuehaiPan commented on GitHub (Nov 29, 2023):

Hi @julienlau, have you ever tried to install nvitop in an isolated environment? I have seem this error many times when users install nvitop in a conda environment. You can try to install nvitop via pipx:

pip3 install --upgrade pipx
pipx run nvitop
<!-- gh-comment-id:1831287620 --> @XuehaiPan commented on GitHub (Nov 29, 2023): Hi @julienlau, have you ever tried to install `nvitop` in an isolated environment? I have seem this error many times when users install `nvitop` in a conda environment. You can try to install `nvitop` via [`pipx`](https://pypa.github.io/pipx): ```bash pip3 install --upgrade pipx pipx run nvitop ```
Author
Owner

@NaiveInvestigator commented on GitHub (Aug 19, 2024):

I also get this error when i try to use nvitop on ssh.

i fixed it by setting the term variable to xterm-256color

I found the fix here:
https://github.com/isontheline/pro.webssh.net/issues/709

If you're in bash, add this line to your .bashrc:

export TERM=xterm-256color
<!-- gh-comment-id:2295699860 --> @NaiveInvestigator commented on GitHub (Aug 19, 2024): I also get this error when i try to use `nvitop` on ssh. i fixed it by setting the term variable to `xterm-256color` I found the fix here: https://github.com/isontheline/pro.webssh.net/issues/709 If you're in bash, add this line to your `.bashrc`: ``` export TERM=xterm-256color ```
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/nvitop#64
No description provided.