There is somewhere a problem with variables. Not sure by now, but when you run:
export PYTHONPATH=/usr/lib/python3.11/site-packages
and then
gnome-layout-switcher
It finds the module.
@2e0raf Please report it here: [Stable Update] 2023-05-07 - Kernels, KDE Gear 23.04.0, KDE Frameworks 5.105.0, Qt5, Firefox, Thunderbird I tested it on a VM and can confirm that issue.