mirror of
https://github.com/XuehaiPan/nvitop.git
synced 2026-05-15 14:15:55 -06:00
[GH-ISSUE #14] [Bug] Usage chart working in centos linux. #13
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#13
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 @yinrong on GitHub (Mar 24, 2022).
Original GitHub issue: https://github.com/XuehaiPan/nvitop/issues/14
Originally assigned to: @XuehaiPan on GitHub.
not working in centos linux.
tested on:
CentOS Linux release 7.9.2009 (Core)
@XuehaiPan commented on GitHub (Mar 24, 2022):
@yinrong Could you try to set
LC_ALLbefore runningnvitop? E.g.:There is a similar issue #3.
And do you have
libncursesw(withwsuffix for wide char) installed on your machine? Have a quick check.@XuehaiPan commented on GitHub (Mar 25, 2022):
@yinrong Any updates?
nvitoprequires to setLC_ALLtoUTF-8withlibncurseswinstalled. If you don't have the permission to installlibncursesw, you can try:@yinrong commented on GitHub (Mar 29, 2022):
none above is working. I tried.
@XuehaiPan
@XuehaiPan commented on GitHub (Mar 29, 2022):
@yinrong
nvitop -Uonly uses ASCII characters, that may work. Maybe your Python is not compiled with NCursesW library. Or you are usingnvitopin acondaenvironment. But I'm not really sure.Please provide more details of your runtime environment. Then we can investigate deeper.
3.5.6/3.9.6]EDIT: detect Python interpreter from shebang.
Please paste the output with text in the comment below (not screenshot).
nvitopversion or commit: [e.g.0.3.5.6/main@b669fa3]C/C.UTF-8/en_US.UTF-8]@muzhi1991 commented on GitHub (Apr 18, 2022):
same problem
/data/app/anaconda3/envs/faq-latest/lib/libncursesw.so
/data/app/anaconda3/envs/faq-latest/lib/libncursesw.so.6
/data/app/anaconda3/envs/faq-latest/lib/libncursesw.so.6.3
python3 -c 'import sysconfig; [print(k, v) for k, v in sysconfig.get_config_vars().items()]' | grep -i 'curses'
HAVE_CURSES_FILTER 1
HAVE_CURSES_H 1
HAVE_CURSES_HAS_KEY 1
HAVE_CURSES_IMMEDOK 1
HAVE_CURSES_IS_PAD 1
HAVE_CURSES_IS_TERM_RESIZED 1
HAVE_CURSES_RESIZETERM 1
HAVE_CURSES_RESIZE_TERM 1
HAVE_CURSES_SYNCOK 1
HAVE_CURSES_TYPEAHEAD 1
HAVE_CURSES_USE_ENV 1
HAVE_CURSES_WCHGAT 1
HAVE_NCURSES_H 1
STRICT_SYSV_CURSES /* Don't use ncurses extensions */
LANG=en_US.utf-8
LC_CTYPE="en_US.utf-8"
LC_NUMERIC="en_US.utf-8"
LC_TIME="en_US.utf-8"
LC_COLLATE="en_US.utf-8"
LC_MONETARY="en_US.utf-8"
LC_MESSAGES="en_US.utf-8"
LC_PAPER="en_US.utf-8"
LC_NAME="en_US.utf-8"
LC_ADDRESS="en_US.utf-8"
LC_TELEPHONE="en_US.utf-8"
LC_MEASUREMENT="en_US.utf-8"
LC_IDENTIFICATION="en_US.utf-8"
LC_ALL=en_US.utf-8
@XuehaiPan commented on GitHub (Apr 18, 2022):
@muzhi1991 As we can see, you are using
libncursesinstalled in conda environment rather than the system's one (under/usr/lib). What's the result for:Have you set the correct
LD_LIBRARY_PATH? Try:Alternatively, you can try:
and then run
@muzhi1991 commented on GitHub (Apr 18, 2022):
head -1 "$(which nvitop)"outputs, use conda env python.#!/data/app/anaconda3/envs/faq-latest/bin/python
then
run
LD_LIBRARY_PATH="${CONDA_PREFIX}/lib:${LD_LIBRARY_PATH}" nvitopsame result.@XuehaiPan commented on GitHub (Apr 19, 2022):
I can reproduce this inside a CentOS 7 docker container.
@XuehaiPan commented on GitHub (Apr 19, 2022):
@yinrong @muzhi1991 I create a bug fix PR in #15. You try the fix with:
Let me know if it works for you.
@muzhi1991 commented on GitHub (Apr 19, 2022):
it works! thank you!
@XuehaiPan commented on GitHub (Apr 19, 2022):
Thanks for the feedback from @yinrong @muzhi1991! Now the fix is included in tag
0.5.5and has been pushed to PyPI.