Bug 2329600 - autokey fails on missing python module imghdr
Summary: autokey fails on missing python module imghdr
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: autokey
Version: 41
Hardware: x86_64
OS: Linux
unspecified
urgent
Target Milestone: ---
Assignee: Jonathan Wright
QA Contact: Fedora Extras Quality Assurance
URL: https://github.com/autokey/autokey/is...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-11-30 08:56 UTC by Eric Lavarde
Modified: 2025-01-26 01:01 UTC (History)
3 users (show)

Fixed In Version: autokey-0.96.0-10.fc41
Clone Of:
Environment:
Last Closed: 2025-01-26 01:01:49 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
Patch for /usr/lib/python3.13/site-packages/autokey/scripting/highlevel.py (1.46 KB, patch)
2024-11-30 08:59 UTC, Eric Lavarde
no flags Details | Diff

Description Eric Lavarde 2024-11-30 08:56:49 UTC
Since having upgraded to F41, autokey has stopped working:

```
$ autokey-gtk 
Traceback (most recent call last):
  File "/usr/bin/autokey-gtk", line 33, in <module>
    sys.exit(load_entry_point('autokey==0.96.0', 'console_scripts', 'autokey-gtk')())
             ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/bin/autokey-gtk", line 25, in importlib_load_entry_point
    return next(matches).load()
           ~~~~~~~~~~~~~~~~~~^^
  File "/usr/lib64/python3.13/importlib/metadata/__init__.py", line 179, in load
    module = import_module(match.group('module'))
  File "/usr/lib64/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 1022, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "/usr/lib/python3.13/site-packages/autokey/gtkui/__main__.py", line 4, in <module>
    from autokey.gtkapp import Application
  File "/usr/lib/python3.13/site-packages/autokey/gtkapp.py", line 39, in <module>
    from autokey import service, monitor
  File "/usr/lib/python3.13/site-packages/autokey/service.py", line 36, 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'
```

I would like to have the patch applied according to https://github.com/autokey/autokey/issues/961 and autokey depending on python3-imagesize to fix the issue (I tried and it works).

Reproducible: Always

Steps to Reproduce:
1. Start autokey-gtk (or probably -qt)
Actual Results:  
Exception

Expected Results:  
Works

Autokey is my productivity booster, getting it fixed would be important.

Comment 1 Eric Lavarde 2024-11-30 08:59:06 UTC
Created attachment 2060444 [details]
Patch for /usr/lib/python3.13/site-packages/autokey/scripting/highlevel.py

Comment 2 Fedora Update System 2025-01-17 17:16:07 UTC
FEDORA-2025-bebf7863d5 (autokey-0.96.0-10.fc41) has been submitted as an update to Fedora 41.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-bebf7863d5

Comment 3 Fedora Update System 2025-01-18 02:55:37 UTC
FEDORA-2025-bebf7863d5 has been pushed to the Fedora 41 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2025-bebf7863d5`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-bebf7863d5

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 4 Fedora Update System 2025-01-26 01:01:49 UTC
FEDORA-2025-bebf7863d5 (autokey-0.96.0-10.fc41) has been pushed to the Fedora 41 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.