XuehaiPan / nvitop

An interactive NVIDIA-GPU process viewer and beyond, the one-stop solution for GPU process management.
https://nvitop.readthedocs.io
Apache License 2.0
4.72k stars 148 forks source link

[Question] ERROR: Failed to initialize `curses` (setupterm: could not find terminfo database) #118

Closed yyfcc17 closed 9 months ago

yyfcc17 commented 9 months ago

Required prerequisites

Questions

after i run nvitop, i got this error

i think this issue is related to miniconda env, i encountered this error twice.

  1. i packed my miniconda env, and transfered to another computer to unpack and recreate the env, it is on the second computer, i had this issue.

  2. i changed my miniconda path, then i got this issue, before this operation, nvitop runs perfectly.

it is easy to reproduce, you can investigate into it.

thanks for creating this greate tool.

XuehaiPan commented 9 months ago

Duplicate of #38.

transfered to another computer

@yyfcc17 Do you set the TERM environment variable properly in your shell environment? You can try:

export TERM="xterm-256color"
export TERMINFO="${CONDA_PREFIX}/share/terminfo"
nvitop
yyfcc17 commented 9 months ago

i think this issue is related to miniconda env, i encountered this error twice.

  1. i packed my miniconda env, and transfered to another computer to unpack and recreate the env, it is on the second computer, i had this issue.
  2. i changed my miniconda path, then i got this issue, before this operation, nvitop runs perfectly.
export TERM="xterm-256color"
export TERMINFO="${CONDA_PREFIX}/share/terminfo"
nvitop

this can solve the first situation, but still not working for the second.

and i think it is not the reason for this issue, because i have installed nvitop in another env in miniconda, in this env, nvitop works well.

i think maybe the move operation / change dir operation breaks the link to terminfo or something like that.

yyfcc17 commented 9 months ago

issue solved.

the conda ncurses package is broken, need to reinstall.

for my case:

rm -rf miniconda3/pkgs/ncurses-6.4-h6a678d5_0
conda install -c conda-forge ncurses

then nvitop works again.

lhyscau commented 7 months ago

Duplicate of #38.

transfered to another computer

@yyfcc17 Do you set the TERM environment variable properly in your shell environment? You can try:

export TERM="xterm-256color"
export TERMINFO="${CONDA_PREFIX}/share/terminfo"
nvitop

WTF! It works! Thanks!