-
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
I get a error when i run fuck command in windows, installed fuck with pip #1460
Comments
Ran into the same issue today myself. I assume you are running Python 3.12? From what I can tell from here on Stackoverflow, imp is deprecated and removed in 3.12. thefuck would need to be updated to remove that dependency. As an intermediate solution you could switch to Python 3.11 until thefuck gets fixed, if you don't specifically need Python 3.12. |
There is a solution on #1449 , for Linux at least |
I have python 3.12 and i need it too |
The output of
thefuck --version
(something likeThe Fuck 3.1 using Python 3.5.0 and Bash 4.4.12(1)-release
):File "", line 198, in _run_module_as_main
File "", line 88, in run_code
File "C:\Users\mardin it\AppData\Local\Programs\Python\Python312\Scripts\thefuck.exe_main.py", line 4, in
File "C:\Users\mardin it\AppData\Local\Programs\Python\Python312\Lib\site-packages\thefuck\entrypoints\main.py", line 8, in
from .. import logs # noqa: E402
^^^^^^^^^^^^^^^^^^^
File "C:\Users\mardin it\AppData\Local\Programs\Python\Python312\Lib\site-packages\thefuck\logs.py", line 8, in
from .conf import settings
File "C:\Users\mardin it\AppData\Local\Programs\Python\Python312\Lib\site-packages\thefuck\conf.py", line 1, in
from imp import load_source
ModuleNotFoundError: No module named 'imp'
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:
The text was updated successfully, but these errors were encountered: