[GH-ISSUE #38] Failed to initialize curses (setupterm: could not find terminfo database) #26

Closed
opened 2026-05-05 03:22:26 -06:00 by gitea-mirror · 6 comments
Owner

Originally created by @pursuecong on GitHub (Sep 18, 2022).
Original GitHub issue: https://github.com/XuehaiPan/nvitop/issues/38

Originally created by @pursuecong on GitHub (Sep 18, 2022). Original GitHub issue: https://github.com/XuehaiPan/nvitop/issues/38
Author
Owner

@XuehaiPan commented on GitHub (Sep 18, 2022):

@pursuecong Please do not modify the issue template. You should provide some necessary context about your issue, such as your runtime environment and the traceback output.

<!-- gh-comment-id:1250241834 --> @XuehaiPan commented on GitHub (Sep 18, 2022): @pursuecong Please do not modify the issue template. You should provide some necessary context about your issue, such as your runtime environment and the traceback output.
Author
Owner

@XuehaiPan commented on GitHub (Sep 19, 2022):

Closing due to lack of necessary context. Please feel free to ask for a reopening with those contexts added.

I suspect you are using Python inside a conda environment or Jupyter Notebook. Please use a non-conda Python to install nvitop, e.g., the system Python:

/usr/bin/python3 -m pip install --upgrade --user nvitop

Then add ~/.local/bin to your PATH in your shell rcfile:

export PATH="${HOME}/.local/bin:${PATH}"
<!-- gh-comment-id:1250718784 --> @XuehaiPan commented on GitHub (Sep 19, 2022): Closing due to lack of necessary context. Please feel free to ask for a reopening with those contexts added. I suspect you are using Python inside a conda environment or Jupyter Notebook. Please use a non-conda Python to install `nvitop`, e.g., the system Python: ```bash /usr/bin/python3 -m pip install --upgrade --user nvitop ``` Then add `~/.local/bin` to your `PATH` in your shell rcfile: ```bash export PATH="${HOME}/.local/bin:${PATH}" ```
Author
Owner

@pursuecong commented on GitHub (Sep 19, 2022):

Thank you

<!-- gh-comment-id:1250776258 --> @pursuecong commented on GitHub (Sep 19, 2022): Thank you
Author
Owner

@KeithTt commented on GitHub (Mar 2, 2023):

Same problem here.

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

Upgrade nvitop still not work...

<!-- gh-comment-id:1451580705 --> @KeithTt commented on GitHub (Mar 2, 2023): Same problem here. `ERROR: Failed to initialize curses (curs_set() returned ERR)` Upgrade nvitop still not work...
Author
Owner

@XuehaiPan commented on GitHub (Mar 2, 2023):

Same problem here.

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

Upgrade nvitop still not work...

Hi @KeithTt, did you run nvitop inside a Jupyter notebook or a conda environment? You may try:

pip3 install --upgrade pipx
pipx run nvitop
<!-- gh-comment-id:1451594219 --> @XuehaiPan commented on GitHub (Mar 2, 2023): > Same problem here. > > `ERROR: Failed to initialize curses (curs_set() returned ERR)` > > Upgrade nvitop still not work... Hi @KeithTt, did you run nvitop inside a Jupyter notebook or a conda environment? You may try: ```bash pip3 install --upgrade pipx pipx run nvitop ```
Author
Owner

@JinaoLiu commented on GitHub (May 24, 2023):

Same problem here.
ERROR: Failed to initialize curses (curs_set() returned ERR)
Upgrade nvitop still not work...

Hi @KeithTt, did you run nvitop inside a Jupyter notebook or a conda environment? You may try:

pip3 install --upgrade pipx
pipx run nvitop

我在一台机子上的conda环境中安装是可以的, 但是另一台机子不行,报如上错误。但是我将环境切换到base中安装, 是可以的。所以有如上错误, 可以考虑在base环境中安装。还有可能是我nvitop的版本比较低,当然这只是我的猜测。最后, 感谢作者做了一个这么好用的工具, 非常棒!

<!-- gh-comment-id:1561171325 --> @JinaoLiu commented on GitHub (May 24, 2023): > > Same problem here. > > `ERROR: Failed to initialize curses (curs_set() returned ERR)` > > Upgrade nvitop still not work... > > Hi @KeithTt, did you run nvitop inside a Jupyter notebook or a conda environment? You may try: > > ```shell > pip3 install --upgrade pipx > pipx run nvitop > ``` 我在一台机子上的conda环境中安装是可以的, 但是另一台机子不行,报如上错误。但是我将环境切换到base中安装, 是可以的。所以有如上错误, 可以考虑在base环境中安装。还有可能是我nvitop的版本比较低,当然这只是我的猜测。最后, 感谢作者做了一个这么好用的工具, 非常棒!
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#26
No description provided.