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

Debian Compatibility Fix #11

Open
knuxyl opened this issue Dec 17, 2022 · 0 comments
Open

Debian Compatibility Fix #11

knuxyl opened this issue Dec 17, 2022 · 0 comments

Comments

@knuxyl
Copy link

knuxyl commented Dec 17, 2022

On Debian systems, this error occurs

Traceback (most recent call last):
  File "/usr/local/bin/amdgpu-fan", line 8, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.10/dist-packages/amdgpu_fan/controller.py", line 67, in main
    config = load_config(location)
  File "/usr/local/lib/python3.10/dist-packages/amdgpu_fan/controller.py", line 44, in load_config
    return yaml.load(f)
TypeError: load() missing 1 required positional argument: 'Loader'

The fix is to change controller.py (/usr/local/lib/python3.10/dist-packages/amdgpu_fan/controller.py) at line 44 from
return yaml.load(f)
to
return yaml.full_load(f)

and then it works perfectly.

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

1 participant