Skip to content
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' (python 3.12.0) #1416

Closed
wooposs opened this issue Nov 17, 2023 · 3 comments
Closed

ModuleNotFoundError: No module named 'imp' (python 3.12.0) #1416

wooposs opened this issue Nov 17, 2023 · 3 comments

Comments

@wooposs
Copy link

wooposs commented Nov 17, 2023

Hi there,

after upgrading to Fedora 39, thefuck is not working anymore. After opening the terminal this error message is shown:

Traceback (most recent call last):
File "/usr/local/bin/thefuck", line 5, in
from thefuck.entrypoints.main import main
File "/usr/lib/python3.12/site-packages/thefuck/entrypoints/main.py", line 8, in
from .. import logs # noqa: E402
^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/thefuck/logs.py", line 8, in
from .conf import settings
File "/usr/lib/python3.12/site-packages/thefuck/conf.py", line 1, in
from imp import load_source
ModuleNotFoundError: No module named 'imp'

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

N/A

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

Fedora 39, Python 3.12.0

How to reproduce the bug:

Open the terminal or try to run the 'fuck' command

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

N/A

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

N/A

Anything else you think is relevant:

N/A
@manero6
Copy link

manero6 commented Nov 17, 2023

same on Fedora Rawhide aka Fedora 40.

@Rom1deTroyes
Copy link
Contributor

See #1381 : Python 12 has removed the imp package.

@wooposs
Copy link
Author

wooposs commented Nov 17, 2023

Sorry, my fault. Didn't see #1381
Many thanks

@wooposs wooposs closed this as completed Nov 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants