Coder Social home page Coder Social logo

Comments (14)

RogerWeihrauch avatar RogerWeihrauch commented on August 29, 2024

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
And installed it w/ others:
root@lildeb:
# apt install ricks* dkms linux-source perl curl git-all jq -t bookworm-backports
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.

RogerWeihrauch avatar RogerWeihrauch commented on August 29, 2024

.. donno why all is lined-out.
Roger

from gpu-utils.

Ricks-Lab avatar Ricks-Lab commented on August 29, 2024

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.

RogerWeihrauch avatar RogerWeihrauch commented on August 29, 2024

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.

Ricks-Lab avatar Ricks-Lab commented on August 29, 2024

Looks like bpo in the kernel version is causing the problem. Should be an easy fix. Will make a change tomorrow.

from gpu-utils.

RogerWeihrauch avatar RogerWeihrauch commented on August 29, 2024

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
(vEnv4GPUutils) debian@lildeb:
$ gpu-ls
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.

Ricks-Lab avatar Ricks-Lab commented on August 29, 2024

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.

Ricks-Lab avatar Ricks-Lab commented on August 29, 2024

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.

merkys avatar merkys commented on August 29, 2024

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.

Ricks-Lab avatar Ricks-Lab commented on August 29, 2024

from gpu-utils.

merkys avatar merkys commented on August 29, 2024

Great, thanks!

from gpu-utils.

Ricks-Lab avatar Ricks-Lab commented on August 29, 2024

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

Ricks-Lab avatar Ricks-Lab commented on August 29, 2024

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.

Ricks-Lab avatar Ricks-Lab commented on August 29, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.