BoukeHaarsma23 / WattmanGTK

A Wattman-like GTK3+ GUI
GNU General Public License v2.0
372 stars 61 forks source link

Fix file not found error #80

Open ewagner12 opened 4 years ago

ewagner12 commented 4 years ago

This change adds a check for the existence of the hwmondir name file. This prevents the following error in my system: Traceback (most recent call last): File "run.py", line 23, in wattman.main() File "/home/$USER/WattmanGTK/WattmanGTK/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/hwmon3/name'

This error prevented the program from running.

It looks like hwmon3 is 'applesmc' so this could be a mac specific issue.

antpk commented 4 years ago

Confirm this fixes the issue I was having too. Thank all

Don't think this is mac specific. I'm on an old 2 CPU system.