-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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 'imp' when running 'fuck' #1434
Comments
Got the same issue :( |
+1 Running python 3.10 |
Same here, running Python 3.12 |
The imp module has been removed in Python3.12 in favor of importlib. |
Works in python 3.11.8! |
It's not working on the Python v3.12.2. :( |
I'm quite sure they won't return that deprecated and removed library if there's another one we can use. Too bad the maintainer/s are not doing anything about it; there's an open pull request for this, too |
Same here on Ubuntu 24.04 LTS. Python 3.12 is the default version installed by APT. (thefuck is also installed by |
This issue is still present Ubuntu 24.04, Python 312 |
@tes-balo I think this is already fixed in this repository but there was no release. You can try pip uninstall thefuck
pip install https://github.com/nvbn/thefuck/archive/master.zip See also #1415 (comment) and #1415 (comment) |
Yes! This works for me! |
Hi Everyone, Happy coding! |
I just wanted to add that this worked for me, too! Thanks for finding us the solution, @tes-balo ! :) |
Error confirmed
|
When is a release planned which will address this bug? |
As soon as the last task of the next milestone roadmap will be addressed ? |
got error from latest home-manager (nix)
|
got the same error using home-manager, it is related to the fix not being in the last release, and the error appeared because nixpkgs changed the default python version from 3.11 to 3.12 recently, but a fix for using the 3.11 python packages for thefuck has been done, and will be available for nixos-unstable as soon as the tests are finished |
So does the latest nix-unstable have the fix now? |
it does have it now yes ! |
The output of
thefuck --version
(something likeThe Fuck 3.1 using Python 3.5.0 and Bash 4.4.12(1)-release
):Your system (Debian 7, ArchLinux, Windows, etc.):
How to reproduce the bug:
The output of The Fuck with
THEFUCK_DEBUG=true
exported (typically executeexport THEFUCK_DEBUG=true
in your shell before The Fuck):If the bug only appears with a specific application, the output of that application and its version:
Anything else you think is relevant:
The text was updated successfully, but these errors were encountered: