Solaar does not load

Hey folks,

Installed solaar with the standard zypper in solaar, however I’m getting the current error when attempting to run it:

localhost:~> solaar
Solaar depends on a udev file that is not present
For more information see the Solaar installation directions
at https://pwr-solaar.github.io/Solaar/installation
solaar: error: Traceback (most recent call last):
  File "/usr/lib/python3.8/site-packages/solaar/gtk.py", line 159, in main
    import solaar.ui as ui
  File "/usr/lib/python3.8/site-packages/solaar/ui/__init__.py", line 96, in <module>
    from . import notify, tray, window  # isort:skip  # noqa: E402
  File "/usr/lib/python3.8/site-packages/solaar/ui/tray.py", line 37, in <module>
    from .window import popup as _window_popup
  File "/usr/lib/python3.8/site-packages/solaar/ui/window.py", line 40, in <module>
    from .diversion_rules import show_window as _show_diversion_window
  File "/usr/lib/python3.8/site-packages/solaar/ui/diversion_rules.py", line 28, in <module>
    from logitech_receiver import diversion as _DIV
  File "/usr/lib/python3.8/site-packages/logitech_receiver/diversion.py", line 30, in <module>
    from yaml import add_representer as _yaml_add_representer
ModuleNotFoundError: No module named 'yaml'


I tried a basic ‘pip install pyyaml’ under the primary non-root user that I try and run solaar from but that doesn’t seem to do the trick. Is there something I’m doing wrong here?

Hi
Don’t use pip… zypper in python38-PyYAML

Much thanks! I guess the dependencies for the package need to be adjusted or something…? Either way, I appreciate it.

Hi
It would appear so, maybe a change from 1.0.4 and 1.0.5, sometimes with things pre-installed a maintainer can easily miss a dependency.