Page MenuHomeSolus

AutoKey stopped working
Closed, ResolvedPublic

Description

AutoKey utility (GitHub, Wikipedia) worked fine in Solus GTK DEs until the end of April 2020. As of 30 June 2020, it doesn't work anymore.

The package name in Solus repo is autokey-py3. Utility is started with autokey-gtk command and runs in background.

The problem is probably related to python3 transition, made in Solus a couple of months ago. An attempt to run autokey-gtk from terminal returns the error:

ValueError: Namespace GtkSource not available for version 3.0

This is the full traceback:

$ autokey-gtk

(autokey-gtk:2608): Gtk-WARNING **: 15:02:25.501: Theme parsing error: gtk.css:1:106: Failed to import: Error opening file /home/just/.local/share/gnome-shell/extensions/no-title-bar@jonaspoehler.de/stylesheet.css: No such file or directory

(autokey-gtk:2608): Gtk-WARNING **: 15:02:25.501: Theme parsing error: gtk.css:2:112: Failed to import: Error opening file /home/just/.local/share/gnome-shell/extensions/no-title-bar@jonaspoehler.de/stylesheet-tiled.css: No such file or directory
Traceback (most recent call last):
  File "/usr/bin/autokey-gtk", line 11, in <module>
    load_entry_point('autokey==0.95.9', 'console_scripts', 'autokey-gtk')()
  File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 489, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 2852, in load_entry_point
    return ep.load()
  File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 2443, in load
    return self.resolve()
  File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 2449, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/usr/lib/python3.7/site-packages/autokey/gtkui/__main__.py", line 4, in <module>
    from autokey.gtkapp import Application
  File "/usr/lib/python3.7/site-packages/autokey/gtkapp.py", line 47, in <module>
    from autokey.gtkui.configwindow import ConfigWindow
  File "/usr/lib/python3.7/site-packages/autokey/gtkui/configwindow.py", line 23, in <module>
    require_version('GtkSource', '3.0')
  File "/usr/lib/python3.7/site-packages/gi/__init__.py", line 133, in require_version
    (namespace, version))
ValueError: Namespace GtkSource not available for version 3.0
$

Thanks for reading

Event Timeline

just created this task.Jun 30 2020, 1:06 PM
just edited projects, added Software; removed Lacks Project.Jun 30 2020, 1:20 PM

Might be caused by the merge of python3-gobject into python-gobject. Make sure your system is fully up-to-date
sudo eopkg up -y

just added a comment.Jun 30 2020, 4:17 PM

The system is always fully upgraded here. Nevertheless, autokey-gtk refuses to run, returning the same error:

ValueError: Namespace GtkSource not available for version 3.0

An example using oneliner:

  • datetime stamp
  • repo list
  • full upgrade
  • attempt to run autokey-gtk
$ dt && eopkg list-repo && echo && sudo eopkg upgrade -yes-all && echo && autokey-gtk
Current datetime: 
2020-06-30 19:05:12

Solus Stable [active]
   https://mirrors.rit.edu/solus/packages/shannon/eopkg-index.xml.xz
Solus Unstable [inactive]
   https://mirrors.rit.edu/solus/packages/unstable/eopkg-index.xml.xz

Updating repositories
Updating repository: Solus Stable
eopkg-index.xml.xz.sha1sum     (40.0  B)100%    890.43 KB/s [00:00:00] [complete]
Solus Stable repository information is up-to-date.
No packages to upgrade.

(autokey-gtk:2582): Gtk-WARNING **: 19:05:18.445: Theme parsing error: gtk.css:1:106: Failed to import: Error opening file /home/just/.local/share/gnome-shell/extensions/no-title-bar@jonaspoehler.de/stylesheet.css: No such file or directory

(autokey-gtk:2582): Gtk-WARNING **: 19:05:18.445: Theme parsing error: gtk.css:2:112: Failed to import: Error opening file /home/just/.local/share/gnome-shell/extensions/no-title-bar@jonaspoehler.de/stylesheet-tiled.css: No such file or directory
Traceback (most recent call last):
  File "/usr/bin/autokey-gtk", line 11, in <module>
    load_entry_point('autokey==0.95.9', 'console_scripts', 'autokey-gtk')()
  File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 489, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 2852, in load_entry_point
    return ep.load()
  File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 2443, in load
    return self.resolve()
  File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 2449, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/usr/lib/python3.7/site-packages/autokey/gtkui/__main__.py", line 4, in <module>
    from autokey.gtkapp import Application
  File "/usr/lib/python3.7/site-packages/autokey/gtkapp.py", line 47, in <module>
    from autokey.gtkui.configwindow import ConfigWindow
  File "/usr/lib/python3.7/site-packages/autokey/gtkui/configwindow.py", line 23, in <module>
    require_version('GtkSource', '3.0')
  File "/usr/lib/python3.7/site-packages/gi/__init__.py", line 133, in require_version
    (namespace, version))
ValueError: Namespace GtkSource not available for version 3.0
$ 
algent added a subscriber: algent.Jun 30 2020, 4:25 PM

@just, I just installed autokey-py3 and it is running fine. I don't get any output on terminal like that.

Maybe you should try to reinstall it and try again sudo eopkg it --reinstall autokey-py3.
or check the whole system for any broken packages.
sudo eopkg check | tee /dev/stderr | grep Broken | awk '{print $4}' | xargs sudo eopkg it --reinstall

just added a comment.Jun 30 2020, 5:29 PM

@algent Thanks for suggestion. I followed it. System checks have found and repaired 2..4 (apparently unrelated to the issue) broken icon theme packages. autokey-py3 was forcefully re-installed as well.

There are several Solus DEs installed here. Each one resides in its own partition, so all DEs are completely isolated one from another.

AutoKey fails to start in Gnome and Budgie, even after system checks and autokey-py3 re-installation. But it does run here without an issue in Mate.

The fact it runs well for you and for me in Mate clearly indicates that the problem lies somewhere on my side. I must investigate deeper what's wrong with Gnome and Budgie here.

Thanks for your time and attention. I must try to solve the issue on my own. Will also try to mark this T9145 task as Closed, even though don't know yet how to do it.

Thanks again.

kyrios123 closed this task as Invalid.Jun 30 2020, 6:00 PM

Closing on request of @just

FWIW, it is working fine on my Budgie VM

I had the same problem. It was solved by installing libgtksourceview3. That should probably be added as a rundep.

algent added a comment.Aug 3 2020, 8:19 PM

@endumiuz yes you are right. I didn't notice it because libgtksourceview3 is also rundep of rednotebook which I had installed when I tried autokey-py3.