chestm007 / amdgpu-fan

Fan controller for AMD graphics cards running the amdgpu driver on Linux
GNU General Public License v2.0
133 stars 40 forks source link

AttributeError: 'list' object has no attribute 'get' #3

Closed YourHuckleberry closed 5 years ago

YourHuckleberry commented 5 years ago

Unable to run (installed from AUR).

$ sudo amdgpu-fan Traceback (most recent call last): File "/usr/bin/amdgpu-fan", line 11, in <module> load_entry_point('amdgpu-fan===0.0.1.r1.g6d29514', 'console_scripts', 'amdgpu-fan')() File "/usr/lib/python3.7/site-packages/amdgpu_fan/controller.py", line 58, in main FanController(config).main() File "/usr/lib/python3.7/site-packages/amdgpu_fan/controller.py", line 19, in __init__ self.curve = Curve(config.get('speed_matrix')) AttributeError: 'list' object has no attribute 'get'

Config file is at /etc/amdgpu-fan.yml and is 777. Contents exactly same as in readme.

chestm007 commented 5 years ago

it looks like the config in the readme is actually wrong. I'll take a closer look this afternoon

chestm007 commented 5 years ago

fixed in 50d74d247793e825a2672fb8f7cd9530241b5241 i believe the problem was the example was missing the speed_matrix: line. sorry.

chestm007 commented 5 years ago

this should be fixed in the latest master (0.0.2+)