[GH-ISSUE #153] [BUG] Can't use pipx to run the latest nvitop as bug reporting page suggests #95

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

Originally created by @eyalroz on GitHub (Feb 16, 2025).
Original GitHub issue: https://github.com/XuehaiPan/nvitop/issues/153

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.0.0

Operating system and version

SUSE GNU/Linux 15 SP1 x86_64

NVIDIA driver version

535.54.03

NVIDIA-SMI

N/A

Python environment

$ python3 -m pip freeze | python3 -c 'import sys; print(sys.version, sys.platform); print("".join(filter(lambda s: any(word in s.lower() for word in ("nvi", "cuda", "nvml", "gpu")), sys.stdin)))'
3.6.5 (default, Apr 05 2018, 13:30:06) [GCC] linux
gpustat==1.1.1
nvidia-ml-py==11.525.150
nvitop==1.0.0
PyJSONViewer==1.6.0

Problem description

When I try to follow the instructions on this page, for running nvitop, i.e. when I run:

PYTHONFAULTHANDLER=1 pipx run --spec git+https://github.com/XuehaiPan/nvitop.git nvitop

(after updating pipx successfull) - I get this:

$ pip3 install git+https://github.com/XuehaiPan/nvitop.git#egg=nvitop
Defaulting to user installation because normal site-packages is not writeable
Collecting nvitop
  Cloning https://github.com/XuehaiPan/nvitop.git to /tmp/pip-install-n23migne/nvitop_a9313858247547039ac3519412d64c6e
  Running command git clone --filter=blob:none -q https://github.com/XuehaiPan/nvitop.git /tmp/pip-install-n23migne/nvitop_a9313858247547039ac3519412d64c6e
  Resolved https://github.com/XuehaiPan/nvitop.git to commit 7e56376f1754f6625659f3d0f2523a650fd49b74
  Installing build dependencies ... done
  Getting requirements to build wheel ... error
  ERROR: Command errored out with exit status 1:
   command: /usr/bin/python3 /usr/lib/python3.6/site-packages/pip/_vendor/pep517/in_process/_in_process.py get_requires_for_build_wheel /tmp/tmpcsx5i38b
       cwd: /tmp/pip-install-n23migne/nvitop_a9313858247547039ac3519412d64c6e
  Complete output (17 lines):
  Traceback (most recent call last):
    File "/usr/lib/python3.6/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 363, in <module>
      main()
    File "/usr/lib/python3.6/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 345, in main
      json_out['return_val'] = hook(**hook_input['kwargs'])
    File "/usr/lib/python3.6/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 130, in get_requires_for_build_wheel
      return hook(config_settings)
    File "/tmp/pip-build-env-f4rb5lzu/overlay/lib/python3.6/site-packages/setuptools/build_meta.py", line 163, in get_requires_for_build_wheel
      config_settings, requirements=['wheel'])
    File "/tmp/pip-build-env-f4rb5lzu/overlay/lib/python3.6/site-packages/setuptools/build_meta.py", line 143, in _get_build_requires
      self.run_setup()
    File "/tmp/pip-build-env-f4rb5lzu/overlay/lib/python3.6/site-packages/setuptools/build_meta.py", line 158, in run_setup
      exec(compile(code, __file__, 'exec'), locals())
    File "setup.py", line 14
      from __future__ import annotations
      ^
  SyntaxError: future feature annotations is not defined
  ----------------------------------------
WARNING: Discarding git+https://github.com/XuehaiPan/nvitop.git#egg=nvitop. Command errored out with exit status 1: /usr/bin/python3 /usr/lib/python3.6/site-packages/pip/_vendor/pep517/in_process/_in_process.py get_requires_for_build_wheel /tmp/tmpcsx5i38b Check the logs for full command output.
ERROR: Could not find a version that satisfies the requirement nvitop (unavailable) (from versions: 0.9.0, 0.10.0, 0.10.1, 0.10.2, 0.11.0, 1.0.0)
ERROR: No matching distribution found for nvitop (unavailable)

Steps to Reproduce

Just run the suggested:

PYTHONFAULTHANDLER=1 pipx run --spec git+https://github.com/XuehaiPan/nvitop.git nvitop

and that's irl

Traceback

N/A.

Logs

N/A

Expected behavior

Package should download build and install, like other packages...

Additional context

No response

Originally created by @eyalroz on GitHub (Feb 16, 2025). Original GitHub issue: https://github.com/XuehaiPan/nvitop/issues/153 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.) - [ ] I have tried the latest version of nvitop in a new isolated virtual environment. ### What version of nvitop are you using? 1.0.0 ### Operating system and version SUSE GNU/Linux 15 SP1 x86_64 ### NVIDIA driver version 535.54.03 ### NVIDIA-SMI ```text N/A ``` ### Python environment ``` $ python3 -m pip freeze | python3 -c 'import sys; print(sys.version, sys.platform); print("".join(filter(lambda s: any(word in s.lower() for word in ("nvi", "cuda", "nvml", "gpu")), sys.stdin)))' 3.6.5 (default, Apr 05 2018, 13:30:06) [GCC] linux gpustat==1.1.1 nvidia-ml-py==11.525.150 nvitop==1.0.0 PyJSONViewer==1.6.0 ``` ### Problem description When I try to follow the instructions on this page, for running nvitop, i.e. when I run: ``` PYTHONFAULTHANDLER=1 pipx run --spec git+https://github.com/XuehaiPan/nvitop.git nvitop ``` (after updating pipx successfull) - I get this: ``` $ pip3 install git+https://github.com/XuehaiPan/nvitop.git#egg=nvitop Defaulting to user installation because normal site-packages is not writeable Collecting nvitop Cloning https://github.com/XuehaiPan/nvitop.git to /tmp/pip-install-n23migne/nvitop_a9313858247547039ac3519412d64c6e Running command git clone --filter=blob:none -q https://github.com/XuehaiPan/nvitop.git /tmp/pip-install-n23migne/nvitop_a9313858247547039ac3519412d64c6e Resolved https://github.com/XuehaiPan/nvitop.git to commit 7e56376f1754f6625659f3d0f2523a650fd49b74 Installing build dependencies ... done Getting requirements to build wheel ... error ERROR: Command errored out with exit status 1: command: /usr/bin/python3 /usr/lib/python3.6/site-packages/pip/_vendor/pep517/in_process/_in_process.py get_requires_for_build_wheel /tmp/tmpcsx5i38b cwd: /tmp/pip-install-n23migne/nvitop_a9313858247547039ac3519412d64c6e Complete output (17 lines): Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 363, in <module> main() File "/usr/lib/python3.6/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 345, in main json_out['return_val'] = hook(**hook_input['kwargs']) File "/usr/lib/python3.6/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 130, in get_requires_for_build_wheel return hook(config_settings) File "/tmp/pip-build-env-f4rb5lzu/overlay/lib/python3.6/site-packages/setuptools/build_meta.py", line 163, in get_requires_for_build_wheel config_settings, requirements=['wheel']) File "/tmp/pip-build-env-f4rb5lzu/overlay/lib/python3.6/site-packages/setuptools/build_meta.py", line 143, in _get_build_requires self.run_setup() File "/tmp/pip-build-env-f4rb5lzu/overlay/lib/python3.6/site-packages/setuptools/build_meta.py", line 158, in run_setup exec(compile(code, __file__, 'exec'), locals()) File "setup.py", line 14 from __future__ import annotations ^ SyntaxError: future feature annotations is not defined ---------------------------------------- WARNING: Discarding git+https://github.com/XuehaiPan/nvitop.git#egg=nvitop. Command errored out with exit status 1: /usr/bin/python3 /usr/lib/python3.6/site-packages/pip/_vendor/pep517/in_process/_in_process.py get_requires_for_build_wheel /tmp/tmpcsx5i38b Check the logs for full command output. ERROR: Could not find a version that satisfies the requirement nvitop (unavailable) (from versions: 0.9.0, 0.10.0, 0.10.1, 0.10.2, 0.11.0, 1.0.0) ERROR: No matching distribution found for nvitop (unavailable) ``` ### Steps to Reproduce Just run the suggested: ``` PYTHONFAULTHANDLER=1 pipx run --spec git+https://github.com/XuehaiPan/nvitop.git nvitop ``` and that's irl ### Traceback ```pytb N/A. ``` ### Logs ```text N/A ``` ### Expected behavior Package should download build and install, like other packages... ### Additional context _No response_
gitea-mirror 2026-05-05 03:25:16 -06:00
Author
Owner

@XuehaiPan commented on GitHub (Feb 16, 2025):

Hi @eyalroz, Python 3.6 reached the end-of-life phase 3 years ago. The lowest Python version that nvitop supports is Python 3.8 (also reached end-of-life). You need to use a newer Python interpreter. It is recommended to use uvx:

uvx nvitop

which will install the Python interpreter for you.

<!-- gh-comment-id:2661511854 --> @XuehaiPan commented on GitHub (Feb 16, 2025): Hi @eyalroz, Python 3.6 reached the end-of-life phase 3 years ago. The lowest Python version that `nvitop` supports is Python 3.8 (also reached end-of-life). You need to use a newer Python interpreter. It is recommended to use `uvx`: ```bash uvx nvitop ``` which will install the Python interpreter for you.
Author
Owner

@eyalroz commented on GitHub (Feb 16, 2025):

Hi @eyalroz, Python 3.6 reached the end-of-life phase 3 years ago.

Fair enough, but - could you not at least arrange it so that with unsupported version of Python, an error message would show up which says that? i.e. "You are trying to build nvitop with Python 3.6.x ; this is not supported, please use Python 3.8 or later"

<!-- gh-comment-id:2661615347 --> @eyalroz commented on GitHub (Feb 16, 2025): > Hi [@eyalroz](https://github.com/eyalroz), Python 3.6 reached the end-of-life phase 3 years ago. Fair enough, but - could you not at least arrange it so that with unsupported version of Python, an error message would show up which says _that_? i.e. "You are trying to build nvitop with Python 3.6.x ; this is not supported, please use Python 3.8 or later"
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#95
No description provided.