mirror of
https://github.com/XuehaiPan/nvitop.git
synced 2026-05-15 06:06:12 -06:00
[GH-ISSUE #175] [BUG] The conda distribution has TERM-related problems #111
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#111
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 @Yura52 on GitHub (Jul 30, 2025).
Original GitHub issue: https://github.com/XuehaiPan/nvitop/issues/175
Originally assigned to: @XuehaiPan on GitHub.
Required prerequisites
What version of nvitop are you using?
1.5.2
Operating system and version
Ubuntu 22.04
NVIDIA driver version
550.163.01
NVIDIA-SMI
Python environment
No environment is needed
Problem description
I use the Ghostty terminal emulator and I have an issue with nvitop described here:
https://github.com/ghostty-org/ghostty/discussions/8097
I noticed that there are similar issues in the repository (e.g. #118), but the suggested solution requires patching the terminal-related environment variables, which I would like to avoid. After a quick investigation, it seems that the problem is specifically in the Conda distribution of
nvitop, not in Ghostty.Steps to Reproduce
This works fine:
However, this fails:
Or, if you prefer conda:
Traceback
Logs
Expected behavior
No response
Additional context
No response
@XuehaiPan commented on GitHub (Jul 30, 2025):
@Yura52, I think it is related to the conda provided Python, not
nvitop.You may add a per-environment activation script here:
for your conda environment. Those files will be sourced when you activate the environment.
For example:
@Yura52 commented on GitHub (Jul 30, 2025):
@xhochy Hi! Tagging you as one of the Conda Python feedstock contributors. We are discussing an error where the Conda distribution of Python may be the root cause. Perhaps, you can give us a hint whether this is true and how to fix the issue.
TL;DR
When using the Ghostty terminal emulator and being connected to a remote Linux machine (after configuring terminfo as explained here), the following works:
However, the following fails:
But the following works:
That is, the Conda distribution of the
nvitoptool fails without patching the TERM environment variable, and @XuehaiPan suggests that specifically the Conda Python interpreter can be the reason.@xhochy commented on GitHub (Nov 16, 2025):
The issue is quite vague. Do you have an error message or a traceback?
@Yura52 commented on GitHub (Nov 16, 2025):
I provided more details here when describing the bug:
https://github.com/ghostty-org/ghostty/discussions/8097
Note that at the end of the discussion, I came to the conclusion that specifically the Conda dstribution of
nvitopis the issue, then opened this issue, and then the main hypothesis became that the Conda distribution of Python itself is the issue.@xhochy commented on GitHub (Dec 10, 2025):
I looked into this and the
ncursesbuild on conda-forge, and I'm also a Ghostty user, and for me, it works fine for me. As I cannot reproduce, you will need to fine more debug information on what could possibly go wrong.