Package "thefuck" missing a dependendency on the python3 module "imp"

Bug #2106799 reported by Sven Wölfel
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
thefuck (Ubuntu)
New
Undecided
Unassigned

Bug Description

I installed the fuck on Ubuntu Noble 24.04 LTS and while trying to execute it I get the following error:

Traceback (most recent call last):
  File "/usr/bin/thefuck", line 9, in <module>
    from thefuck.entrypoints.main import main
  File "/usr/share/thefuck/thefuck/entrypoints/main.py", line 8, in <module>
    from .. import logs # noqa: E402
    ^^^^^^^^^^^^^^^^^^^
  File "/usr/share/thefuck/thefuck/logs.py", line 8, in <module>
    from .conf import settings
  File "/usr/share/thefuck/thefuck/conf.py", line 1, in <module>
    from imp import load_source
ModuleNotFoundError: No module named 'imp'

I'm not entirely sure which as to which Ubuntu package provies the "imp" module. But according to the python documentation (https://docs.python.org/3.11/library/imp.html) the "imp" module was removed with Python3 version 3.12, which is the python version shipped with Ubuntu 24.04 LTS.

Ubuntu Release:
Description: Ubuntu 24.04.2 LTS
Release: 24.04

Package version:
thefuck:
  Installed: 3.29-0.3ubuntu1

Expected behaviour: Execution of "thefuck" without the above mentioned error.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.