goldwarden icon indicating copy to clipboard operation
goldwarden copied to clipboard

Error on autotype with Flatpak app on Ubuntu - ModuleNotFoundError: No module named 'Xlib'

Open MurzNN opened this issue 1 month ago • 4 comments

When I'm trying to make autotype on the goldwaren installed from Flatpak, I get an error in the console:

/app/bin/src/gui/quickaccess.py:159: DeprecationWarning: Adw.ActionRow.set_icon_name is deprecated
  action_row.set_icon_name("dialog-password")
/app/bin/src/gui/quickaccess.py:113: DeprecationWarning: Gtk.Widget.hide is deprecated
  self.window.hide()
Exception in thread Thread-2 (perform_autotype):
Traceback (most recent call last):
  File "/usr/lib/python3.11/threading.py", line 1045, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.11/threading.py", line 982, in run
    self._target(*self._args, **self._kwargs)
  File "/app/bin/src/gui/quickaccess.py", line 115, in perform_autotype
    autotype.autotype(text)
  File "/app/bin/src/services/autotype/autotype.py", line 12, in autotype
    from .x11autotype import type
  File "/app/bin/src/services/autotype/x11autotype.py", line 27, in <module>
    from Xlib.display import Display
ModuleNotFoundError: No module named 'Xlib'

Installing the xlib library locally like this:

$ sudo apt install python3-xlib

doesn't help, seems because Python checks it in the Flatpak namespace.

MurzNN avatar May 10 '24 05:05 MurzNN