I get the error following below for autokey-qt
and autokey-gtk
. Python 3.13 has removed the imghdr module, which was deprecated in Python 3.11 and removed in 3.13. The packages autokey, autokey-qt and autokey-gtk of yochananmarqos work although the also use python 3.13 (according about page).
> autokey-qt
Traceback (most recent call last):
File "/usr/bin/autokey-qt", line 33, in <module>
sys.exit(load_entry_point('autokey==0.96.0', 'console_scripts', 'autokey-qt')())
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/bin/autokey-qt", line 25, in importlib_load_entry_point
return next(matches).load()
~~~~~~~~~~~~~~~~~~^^
File "/usr/lib/python3.13/importlib/metadata/__init__.py", line 179, in load
module = import_module(match.group('module'))
File "/usr/lib/python3.13/importlib/__init__.py", line 88, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 1026, in exec_module
File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
File "/usr/lib/python3.13/site-packages/autokey/qtui/__main__.py", line 23, in <module>
from autokey.qtapp import Application
File "/usr/lib/python3.13/site-packages/autokey/qtapp.py", line 35, in <module>
from autokey import service, monitor
File "/usr/lib/python3.13/site-packages/autokey/service.py", line 37, in <module>
import autokey.scripting
File "/usr/lib/python3.13/site-packages/autokey/scripting/__init__.py", line 24, in <module>
from . import highlevel
File "/usr/lib/python3.13/site-packages/autokey/scripting/highlevel.py", line 9, in <module>
import imghdr
ModuleNotFoundError: No module named 'imghdr'
Pinned Comments
BlueDrink9 commented on 2021-07-25 22:42 (UTC) (edited on 2021-08-18 00:54 (UTC) by BlueDrink9)
It would be great for anyone using this beta to let us know about it on our gitter or some other way If we know several people have been testing it for a while without issue, it will make it much easier to release as a stable version.
~~Thank you for making this into an AUR package. This is very helpful to have, since it was requested on our gitter but I didn't have the time to learn how to set it up.~~