Skip to content
This repository has been archived by the owner on Jul 21, 2020. It is now read-only.

Problem identifying sensor paths if 'name' does not exist #67

Open
thxcv opened this issue May 16, 2019 · 0 comments
Open

Problem identifying sensor paths if 'name' does not exist #67

thxcv opened this issue May 16, 2019 · 0 comments

Comments

@thxcv
Copy link

thxcv commented May 16, 2019

Hi, i got the following error starting wattmanGTK, as my hwmon0 modules name is in "/sys/class/hwmon/hwmon0/device/name" rather than "/sys/class/hwmon/hwmon0/name".

Reading clock states and limits.
Traceback (most recent call last):
  File "run.py", line 23, in <module>
    wattman.main()
  File "wattman.py", line 150, in main
    if open(hwmondir + folder + '/name').readline().rstrip() == 'amdgpu':
FileNotFoundError: [Errno 2] No such file or directory: '/sys/class/hwmon/hwmon0/name'

I worked around this problem by adding 'if os.path.isfile(hwmondir + folder + '/name'):' in line 150 of wattman.py.

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

No branches or pull requests

1 participant