Skip to content

CachyOS Handheld - [ERROR]: No module named 'yaml' #113

Description

@benj0670

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions