Skip to content

ValueError: invalid literal for int() with base 10: #147

Closed
@SysAdminSmith

Description

@SysAdminSmith

Good evening:
I have a AMD ATI Radeon RX 6600/6600 XT/6600M running on a Debian 12 box. Previously I had had no issues with gpu-utils. Unfortunately, I did a fresh OS install and now can't get your software to work. Here are my gpu-chk readouts:

Using rickslab-gpu-utils  3.8.2 
Using python 3.11.2
           Python version OK. 
Using Linux Kernel: 6.1.0-13-amd64
           OS kernel OK. 
Using system type: systemd
           System type has been Validated. 
Using Linux distribution: Debian GNU/Linux 12 (bookworm)
           Distro has been Validated. 
amdgpu/rocm version: UNKNOWN
           rickslab-gpu-utils can still be used. 
python3 venv is installed
           python3-venv OK. 
rickslab-gpu-utils-env is NOT available
           rickslab-gpu-utils-env can be configured per User Guide. 
Virtual Environment not configured. Only required by developers.
Not in rickslab-gpu-utils-env, (Only needed if you want to duplicate development env)
           rickslab-gpu-utils-env can be activated per User Guide. 
Checking apt-key keyring:
           rickslab repository is not using apt-key keyring. 

And this is the error I get when attempting to use gpu-ls:

AMD: amdgpu/rocm version: UNKNOWN
AMD: Wattman features enabled: 0xfffd7fff
Total of 1 GPU: 1 is rw, 0 are r-only, and 0 are w-only

Traceback (most recent call last):
  File "/usr/bin/gpu-ls", line 174, in <module>
    main()
  File "/usr/bin/gpu-ls", line 149, in main
    gpu_list.read_gpu_pstates()
  File "/usr/lib/python3/dist-packages/GPUmodules/GPUmodule.py", line 2503, in read_gpu_pstates
    gpu.read_gpu_pstates()
  File "/usr/lib/python3/dist-packages/GPUmodules/GPUmodule.py", line 1236, in read_gpu_pstates
    lineitems[0] = int(re.sub(':', '', lineitems[0]))
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: invalid literal for int() with base 10: '\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0

Any help would be greatly appreciated; thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions