-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ModuleNotFoundError: No module named 'distutils' related to #1434 #1444
Comments
yooo, same shit happens to me |
According to PEP 632, A band-aid fix for us users for now would be to follow the above report and just install the Edit: #1404 and/or #1247 appears to fix this, but they are still open PRs |
I did a little research before coming here and discovered the same fix. |
I installed with Traceback (most recent call last):
File "/home/migue/.local/bin/thefuck", line 5, in <module>
from thefuck.entrypoints.main import main
File "/home/migue/.local/pipx/venvs/thefuck/lib64/python3.12/site-packages/thefuck/entrypoints/main.py", line 8, in <module>
from .. import logs # noqa: E402
^^^^^^^^^^^^^^^^^^^
File "/home/migue/.local/pipx/venvs/thefuck/lib64/python3.12/site-packages/thefuck/logs.py", line 8, in <module>
from .conf import settings
File "/home/migue/.local/pipx/venvs/thefuck/lib64/python3.12/site-packages/thefuck/conf.py", line 1, in <module>
from imp import load_source
ModuleNotFoundError: No module named 'imp' Looks like getting thefuck to work nicely with Python 3.12 may be a little more painful than just adding a missing dependency, since I can't find any drop-in replacement for The easiest solution for $ sudo dnf install python3.11 # changes depending on your distro
$ pipx reinstall --python python3.11 thefuck |
Same issue with me. If you use pipx but don't want to downgrade your system Python version (dangerous if tools from your distro rely on system Python), the following command installs
|
I have the same issue since I upgraded my Ubuntu from 23.10 to 24.04 today. |
Some here on a fresh install of Linux Mint on my new notebook. :-/ |
Thank you ! I also had to uninstall
|
Same here, rolling back on python3.11 did the trick for me. |
Thank you for making me discover |
The issue may be related to #1434
Opening a terminal throws:
The output of
thefuck --version
(something likeThe Fuck 3.1 using Python 3.5.0 and Bash 4.4.12(1)-release
):The Fuck 3.32-8 using Python 3.12.3 and Bash 5.2.26(1)-release (note that thefuck --version throws:
Your system (Debian 7, ArchLinux, Windows, etc.):
EndeavourOS 6.8.7-arch1-2
How to reproduce the bug:
open an terminal and thats all
The output of The Fuck with
THEFUCK_DEBUG=true
exported (typically executeexport THEFUCK_DEBUG=true
in your shell before The Fuck):Still failed
Cheers,
The text was updated successfully, but these errors were encountered: