I just did a fresh install of CachyOS Handheld on an ROG Ally Z1E after testing out Bazzite vs SteamOS vs CachyOS. After installing Decky and PowerControl, I was getting the following error:
[2026-09-20 10:38:32,188][ERROR]: No module named 'yaml'
Traceback (most recent call last):
File "/home/deck/homebrew/plugins/PowerControl/main.py", line 8, in <module>
import update
File "/home/deck/homebrew/plugins/PowerControl/py_modules/update.py", line 10, in <module>
from config import API_URL, logger
File "/home/deck/homebrew/plugins/PowerControl/py_modules/config.py", line 6, in <module>
import yaml
ModuleNotFoundError: No module named 'yaml'
[2026-09-20 10:38:32,189][ERROR]: Failed to start PowerControl (v3.15.1)!
Traceback (most recent call last):
File "decky_loader/plugin/sandboxed_plugin.py", line 119, in initialize
File "/home/deck/homebrew/plugins/PowerControl/main.py", line 25, in __init__
self.confManager = confManager
^^^^^^^^^^^
NameError: name 'confManager' is not defined
After doing some digging I had to install python-pip via sudo pacman -Syu python-pip and then used pip to download the yaml package via pip download pyyaml. Once this was downloaded I copied the "yaml" folder inside the archive to "/home/deck/homebrew/plugins/PowerControl/py_modules" then modified the imports within the "py_modules/config.py" as follows:
import glob
import json
import logging
import os
import sys
PLUGIN_ROOT = os.path.dirname(__file__)
VENDOR_DIR = os.path.abspath(os.path.join(PLUGIN_ROOT, '..'))
if VENDOR_DIR not in sys.path:
sys.path.insert(0, VENDOR_DIR)
import yaml
from logging_handler import SystemdHandler
import decky
This forced decky to use the local yaml module within the plugin's folder, PowerControl is now working again
I just did a fresh install of CachyOS Handheld on an ROG Ally Z1E after testing out Bazzite vs SteamOS vs CachyOS. After installing Decky and PowerControl, I was getting the following error:
After doing some digging I had to install python-pip via
sudo pacman -Syu python-pipand then used pip to download the yaml package viapip download pyyaml. Once this was downloaded I copied the "yaml" folder inside the archive to "/home/deck/homebrew/plugins/PowerControl/py_modules" then modified the imports within the "py_modules/config.py" as follows:This forced decky to use the local yaml module within the plugin's folder, PowerControl is now working again