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

use python 3.12.5 on macOS Sonoma and cannot use the*ck as a result because the*ck depends on packages which have been removed in 3.12.5 #1467

Open
interglobalmedia opened this issue Sep 9, 2024 · 1 comment · May be fixed by #1475

Comments

@interglobalmedia
Copy link

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

FILL THIS IN

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

FILL THIS IN

How to reproduce the bug:

FILL THIS IN

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

FILL THIS IN

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

FILL THIS IN

Anything else you think is relevant:

command not found: fuck
Traceback (most recent call last):
File "/Users/mariacam/.pyenv/versions/3.12.5/bin/thefuck", line 5, in
from thefuck.entrypoints.main import main
File "/Users/mariacam/.pyenv/versions/3.12.5/lib/python3.12/site-packages/thefuck/entrypoints/main.py", line 8, in
from .. import logs # noqa: E402
^^^^^^^^^^^^^^^^^^^
File "/Users/mariacam/.pyenv/versions/3.12.5/lib/python3.12/site-packages/thefuck/logs.py", line 8, in
from .conf import settings
File "/Users/mariacam/.pyenv/versions/3.12.5/lib/python3.12/site-packages/thefuck/conf.py", line 1, in
from imp import load_source
ModuleNotFoundError: No module named 'imp'
✘ mariacam@Marias-MBP  ~  fuck
Traceback (most recent call last):
File "/Users/mariacam/.pyenv/versions/3.12.5/bin/fuck", line 5, in
from thefuck.entrypoints.not_configured import main
File "/Users/mariacam/.pyenv/versions/3.12.5/lib/python3.12/site-packages/thefuck/entrypoints/not_configured.py", line 13, in
from .. import logs, const # noqa: E402
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/mariacam/.pyenv/versions/3.12.5/lib/python3.12/site-packages/thefuck/logs.py", line 8, in
from .conf import settings
File "/Users/mariacam/.pyenv/versions/3.12.5/lib/python3.12/site-packages/thefuck/conf.py", line 1, in
from imp import load_source
ModuleNotFoundError: No module named 'imp'

I really wanted to be able to use this tool, but I guess I have to wait until if and when it works with Python 3.12.5 and above.

@just-MG
Copy link

just-MG commented Sep 9, 2024

I was able to circumvent this when I swapped the thefuck/conf.py and thefuck/types.py to how they look in GH-1465.

@DJStompZone DJStompZone linked a pull request Oct 2, 2024 that will close this issue
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

Successfully merging a pull request may close this issue.

2 participants