Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Q: had it been tested w/ latest Debian bpo Kernel? #157

Open
RogerWeihrauch opened this issue Apr 10, 2024 · 14 comments
Open

Q: had it been tested w/ latest Debian bpo Kernel? #157

RogerWeihrauch opened this issue Apr 10, 2024 · 14 comments

Comments

@RogerWeihrauch
Copy link

No description provided.

@RogerWeihrauch
Copy link
Author

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

@RogerWeihrauch RogerWeihrauch changed the title Q: had it bee tested w/ latest Debian bpo Kerneel Q: had it been tested w/ latest Debian bpo Kernel? Apr 10, 2024
@RogerWeihrauch
Copy link
Author

.. donno why all is lined-out.
Roger

@Ricks-Lab
Copy link
Owner

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.

@RogerWeihrauch
Copy link
Author

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

@Ricks-Lab
Copy link
Owner

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

@RogerWeihrauch
Copy link
Author

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

@Ricks-Lab
Copy link
Owner

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

@Ricks-Lab
Copy link
Owner

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.

@merkys
Copy link

merkys commented May 9, 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?

@Ricks-Lab
Copy link
Owner

Ricks-Lab commented May 10, 2024 via email

@merkys
Copy link

merkys commented May 10, 2024

Great, thanks!

@Ricks-Lab
Copy link
Owner

@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

@Ricks-Lab
Copy link
Owner

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

@Ricks-Lab
Copy link
Owner

Ricks-Lab commented May 31, 2024

Great, thanks!
@merkys

I have published v3.9.0 release:
https://github.com/Ricks-Lab/gpu-utils/releases/tag/v3.9.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants