You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
installing thefuck via pip install thefuck in Python 3.12.3 still resulted in the error "no module named 'imp'."
Using pip uninstall thefuck and pip install --upgrade thefuck does not resolve the issue.
wavesman@wavesman-Surface-Pro:~$ fuck
Traceback (most recent call last):
File "/home/wavesman/.local/bin/fuck", line 5, in <module>
from thefuck.entrypoints.not_configured import main
File "/home/wavesman/.local/lib/python3.12/site-packages/thefuck/entrypoints/not_configured.py", line 13, in <module>
from .. import logs, const # noqa: E402
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/wavesman/.local/lib/python3.12/site-packages/thefuck/logs.py", line 8, in <module>
from .conf import settings
File "/home/wavesman/.local/lib/python3.12/site-packages/thefuck/conf.py", line 1, in <module>
from imp import load_source
ModuleNotFoundError: No module named 'imp'
The text was updated successfully, but these errors were encountered:
Visit the repository: DL9090/the-fuck/imp-bug-fix
Clone/Download this repository.
First, uninstall thefuck based on how you installed it, for example:
pip uninstall thefuck
sudo apt remove thefuck
Extract the downloaded files into a folder, then navigate to the folder's path and run: pip install ./<folder_name>
For example, mine was: pip install ./thefuck-imp-bug-fix
Reason for the Issue:
Python has removed the imp module starting from Python 3.12. For details, refer to: Python 3 Documentation: imp
March 3, 2025
installing
thefuck
viapip install thefuck
in Python 3.12.3 still resulted in the error "no module named 'imp'."Using
pip uninstall thefuck
andpip install --upgrade thefuck
does not resolve the issue.The text was updated successfully, but these errors were encountered: