nvbn / thefuck

Magnificent app which corrects your previous console command.
MIT License
83.62k stars 3.41k forks source link

Thefuck with Python 3.12.x #1446

Closed M0RC closed 1 month ago

M0RC commented 1 month ago

The output of thefuck --version (something like The Fuck 3.1 using Python 3.5.0 and Bash 4.4.12(1)-release):

thefuck 3.32 (latest on pip), python 3.12.3, bash 5.2.26(1)-release

Your system (Debian 7, ArchLinux, Windows, etc.):

Manjaro 24.0, but same issue on Ubuntu 24.04 and Fedora 40. The problem seems to come from python 3.12 and the imp library

How to reproduce the bug:

Run fuck command with python 3.12

The output of The Fuck with THEFUCK_DEBUG=true exported (typically execute export THEFUCK_DEBUG=true in your shell before The Fuck):

image

If the bug only appears with a specific application, the output of that application and its version:

No

Anything else you think is relevant:

Imp library removed on Python 3.12?
joshuai96 commented 1 month ago

Technically its fixed by #1248, if importlib is installed. But this has not been released yet :/

M0RC commented 1 month ago

Thanks for your reply. I hope a release will be published soon.

joshuai96 commented 1 month ago

You can clone the project and install via pip install . to get it running now.