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

needs python distutils package during installation #1246

Open
JosephSM opened this issue Nov 13, 2021 · 0 comments · May be fixed by #1247
Open

needs python distutils package during installation #1246

JosephSM opened this issue Nov 13, 2021 · 0 comments · May be fixed by #1247

Comments

@JosephSM
Copy link

JosephSM commented Nov 13, 2021

The Fuck 3.29 using Python 3.8.10 and Bash 5.0.17(1)-release

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

Linux Mint 20.2 Uma

How to reproduce the bug:

installation via
apt install thefuck

When I tried to run it I got

Original exception was:
Traceback (most recent call last):
  File "/usr/bin/thefuck", line 9, in <module>
    from thefuck.entrypoints.main import main
  File "/usr/share/thefuck/thefuck/entrypoints/main.py", line 2, in <module>
    from ..system import init_output
  File "/usr/share/thefuck/thefuck/system/__init__.py", line 7, in <module>
    from .unix import *  # noqa: F401,F403
  File "/usr/share/thefuck/thefuck/system/unix.py", line 6, in <module>
    from distutils.spawn import find_executable
ModuleNotFoundError: No module named 'distutils.spawn'

Anything else you think is relevant:

this fixed the issue
sudo apt install python3-distutils -y

nootr added a commit to nootr/thefuck that referenced this issue Nov 18, 2021
The `distutils` library is deprecated. This commit replaces `distutils`
by `shutil`, which is in the standard library.

Fixes nvbn#1246.
@nootr nootr linked a pull request Nov 18, 2021 that will close this issue
nootr added a commit to nootr/thefuck that referenced this issue Nov 18, 2021
The `distutils` library is deprecated. This commit replaces `distutils`
by `shutil`, which is in the standard library.

Fixes nvbn#1246.
nootr added a commit to nootr/thefuck that referenced this issue Nov 18, 2021
The `distutils` library is deprecated. This commit replaces
`distutils.spawn.find_executable` with `shutil.which`, which is in
the standard library.

Fixes nvbn#1246.
nootr added a commit to nootr/thefuck that referenced this issue Nov 18, 2021
The `distutils` library is deprecated. This commit replaces
`distutils.spawn.find_executable` with `shutil.which`, which is in
the standard library.

Fixes nvbn#1246.
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.

1 participant