-
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
Fix the fuck for Python 3.12 #1415
Conversation
The imp module has been long deprecated and has been removed entirely in Python 3.12. This solution is what was suggested in the release notes: https://docs.python.org/3.12/whatsnew/3.12.html#imp
finally someone gave a fuck |
I'd say I even gave "the fuck" 🤪 |
oh wow cool thanks was about to check it out but yeah u got the job done 👍 |
Waiting for the pull request to be merged 😎 |
This Installing from fork worked for me cd /tmp
git clone https://github.com/mbridon/thefuck.git
pip uninstall thefuck
pip install -e ./thefuck |
lmao same still hasn't been merged 😕 |
Adding my +1 to get this merged soon! |
I don't have Python 2.7 any more, so I'll be happy if you can help fix this issue so the fix I provided works on both 2.7 and 3.12 😁 |
As a workaround, while we wait for this PR to be merged, if anyone wants to install this fork the quickest way is:
|
I've just learned that there is an imp compatibility package called |
Sure, that's a potential crutch, but fixing the issue is better 😉 |
Bump. |
Well, I guess the original author @nvbn seems to have disappeared, so all it would take is for someone to fork the repo and merge this PR and then assume maintenance of the project. I won't do it for health reasons, so if someone who commented on this PR wants to have a go at it then go ahead. 🤷 And when @nvbn comes back eventually, assume joint maintenance all together. Free Software sometimes loses maintainers and find new ones, that's how it sometimes evolves and continues. |
I believe this pull request could be closed. |
Ah great, so the maintainer fixed the issue but didn't merge the PR which could have given me the credit... Well, all that matters is that it's fixed. 🤷 |
Hello. I am running the same issue on Ubuntu 24.04. However, your archive on your repository is no longer there. Is there any work-around to install this, system-wide? Thank you. |
The imp module has been long deprecated and has been removed entirely in Python 3.12.
This solution is what was suggested in the release notes: https://docs.python.org/3.12/whatsnew/3.12.html#imp