Comments (14)
Sorry, hit Enter too early.
So, actually I am running the latest Debian 12.5 release with bpo Kernel: uname -a
Linux lildeb 6.6.13+bpo-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.6.13-1bpo12+1 (2024-02-15) x86_64 GNU/Linux# apt install ricks* dkms linux-source perl curl git-all jq -t bookworm-backports
And installed it w/ others:
root@lildeb:
executing 'gpu-ls' shows following error:
root@lildeb:# gpu-ls#
Traceback (most recent call last):
File "/usr/bin/gpu-ls", line 174, in
main()
File "/usr/bin/gpu-ls", line 121, in main
if env.GUT_CONST.check_env() < 0:
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/GPUmodules/env.py", line 312, in check_env
current_kversion = tuple([int(x) for x in re.sub('-.', '', current_kversion_str).split('.')])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/GPUmodules/env.py", line 312, in
current_kversion = tuple([int(x) for x in re.sub('-.', '', current_kversion_str).split('.')])
^^^^^^
ValueError: invalid literal for int() with base 10: '13+bpo'
root@lildeb:
So, anyone else made this exp.?
Or, only error on my side?
If so, howto further debug/find the source of this?
Thanks for your effort on this.
Kind regards,
Roger
from gpu-utils.
.. donno why all is lined-out.
Roger
from gpu-utils.
This looks like a problem that I have already fixed. I think the debian package still has not been updated. Can you try a PyPI or rickslab.com install to verify? See README for details.
from gpu-utils.
Hi Rick
Thanx for resp. Ok, tried:
1st) w/ ricklab Debian install, as in:
https://github.com/Ricks-Lab/gpu-utils/blob/master/docs/USER_GUIDE.md#rickslabcom-debian-installation
Install suceeded AFTER a complete 'apt remove --purge ricks-', AND a 'apt autoremove' + reboot.
BUT, execution here shows:
root@lildeb:~# gpu-ls
Traceback (most recent call last):
File "/usr/bin/gpu-ls", line 179, in
main()
File "/usr/bin/gpu-ls", line 126, in main
if GUT_CONST.check_env() < 0:
^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/GPUmodules/env.py", line 313, in check_env
current_kversion = tuple([int(x) for x in re.sub('-.', '', current_kversion_str).split('.')])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/GPUmodules/env.py", line 313, in
current_kversion = tuple([int(x) for x in re.sub('-.*', '', current_kversion_str).split('.')])
^^^^^^
ValueError: invalid literal for int() with base 10: '13+bpo'
root@lildeb:~#
( so still the same)
Will try also the PiPy way and report back. (Takes some time)
Regards,
Roger
from gpu-utils.
Looks like bpo in the kernel version is causing the problem. Should be an easy fix. Will make a change tomorrow.
from gpu-utils.
Hi Rick
Thanx for resp. Ok, tried:
1st) w/ ricklab Debian install, as in:
https://github.com/Ricks-Lab/gpu-utils/blob/master/docs/USER_GUIDE.md#rickslabcom-debian-installation
Install suceeded AFTER a complete 'apt remove --purge ricks-', AND a 'apt autoremove' + reboot.
BUT, execution here shows:
root@lildeb:~# gpu-ls
Traceback (most recent call last):
File "/usr/bin/gpu-ls", line 179, in
main()
File "/usr/bin/gpu-ls", line 126, in main
if GUT_CONST.check_env() < 0:
^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/GPUmodules/env.py", line 313, in check_env
current_kversion = tuple([int(x) for x in re.sub('-.', '', current_kversion_str).split('.')])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/GPUmodules/env.py", line 313, in
current_kversion = tuple([int(x) for x in re.sub('-.*', '', current_kversion_str).split('.')])
^^^^^^
ValueError: invalid literal for int() with base 10: '13+bpo'
root@lildeb:~#
( so still the same)
Will try also the PiPy way and report back. (Takes some time)
.. so this is the result:
debian@lildeb:$ . ./vEnv4GPUutils/bin/activate$ gpu-ls
(vEnv4GPUutils) debian@lildeb:
Traceback (most recent call last):
File "/home/debian/vEnv4GPUutils/bin/gpu-ls", line 179, in
main()
File "/home/debian/vEnv4GPUutils/bin/gpu-ls", line 126, in main
if GUT_CONST.check_env() < 0:
^^^^^^^^^^^^^^^^^^^^^
File "/home/debian/vEnv4GPUutils/lib/python3.11/site-packages/GPUmodules/env.py", line 313, in check_env
current_kversion = tuple([int(x) for x in re.sub('-.', '', current_kversion_str).split('.')])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/debian/vEnv4GPUutils/lib/python3.11/site-packages/GPUmodules/env.py", line 313, in
current_kversion = tuple([int(x) for x in re.sub('-.', '', current_kversion_str).split('.')])
^^^^^^
ValueError: invalid literal for int() with base 10: '13+bpo'
(vEnv4GPUutils) debian@lildeb:~$
PS: exchanging the 'tuple([int(x) ...' w/ 'tuple([str(x) ...' is no option here?
Regards,
Roger
from gpu-utils.
I have a version that should work, but can you run your current version with --debug
option and post the contents of the log file here?
The fixed version is in the branch keys_30mar24
from gpu-utils.
PS: exchanging the 'tuple([int(x) ...' w/ 'tuple([str(x) ...' is no option here?
I was handling the case of strings ate end of kernel version, but for your case, the string is not at the end. The logfile output should help in creating a more robust approach.
from gpu-utils.
This issue seems to have also been reported on the Debian package as #1070783. The Debian bug report also suggests a fix. Can you give it a look?
from gpu-utils.
from gpu-utils.
Great, thanks!
from gpu-utils.
@RogerWeihrauch
I have released a version that should address this issue on PyPI:
3.9.0rc1
Please remove all other versions of rickslab-gpu-utils and pip install RC1:
pip install rickslab-gpu-utils==3.9.0rc1
from gpu-utils.
I have released latest release candidate on PyPI:
3.9.0rc2
Please remove all other versions of rickslab-gpu-utils and pip install RC2:
pip install rickslab-gpu-utils==3.9.0rc2
from gpu-utils.
Great, thanks!
@merkys
I have published v3.9.0 release:
https://github.com/Ricks-Lab/gpu-utils/releases/tag/v3.9.0
from gpu-utils.
Related Issues (20)
- Feature Request: Support values from sysfs gpu_metrics
- index out of bound error HOT 4
- Can not read parameter and list index out of range HOT 5
- Tool doesn't see GPUs when PCI address has multiple domains HOT 9
- Add GDDR6X memory temps to the sensor readouts for Nvidia cards
- unsupported operand type(s) for *: 'float' and 'NoneType' in GPUmodule.py HOT 29
- Ubuntu 22.04 Debian Package - Invalid Icon Path HOT 1
- Warning: apt-key is deprecated in Ubuntu 22.04 HOT 1
- env.py: conversion of hexadecimal to int fails HOT 2
- Wrong vendor for on-board GPU HOT 1
- AMD Ryzen 5 5700G with Cezanne not working HOT 5
- gpu-mon requires gtk modules even when --gui is not used HOT 10
- ValueError: invalid literal for int() with base 10 at GPUmodules.py line 1236 in read_gpu_pstates HOT 10
- RX7900 (gfx11) Cards Fan Control is Not Functional HOT 10
- When using gpu-pac I receive an error HOT 2
- Support for MacOS-X ? HOT 2
- ValueError: invalid literal for int() with base 10: HOT 12
- VRAM and GTT memory usage reported as None HOT 5
- PermissionError: [Errno 1] Operation not permitted HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gpu-utils.