-
-
Notifications
You must be signed in to change notification settings - Fork 574
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
Recommended install method fails: No module named 'distutils.cmd' #2942
Comments
I could work around this issue by running |
@ohemelaar Thank you for the report! Do you know if this is specific to Ubuntu 21? Note that there is a fairly extensive issues in pypa/get-pip#124 |
Yes, it should be for sure... do you mind to propose a PR to update the installation doc? 😇 |
@ohemelaar gentle ping:
|
@ohemelaar based on https://bugs.launchpad.net/ubuntu/+source/python3.10/+bug/1940705 ... can you try without python3-distutils and the latest updates? |
Sorry for the delay!
The python version is 3.9.7.
I just tried on my setup and on a freshly installed 21.10 VM and encountered the same error. Indeed, the bug report seems to only mention python 3.10. I wanted to test on a 22.04 VM too but found out that scancode does not support python3.10 yet. |
Hi, sudo apt update && sudo apt upgrade
sudo add-apt-repository ppa:deadsnakes/ppa -y
sudo apt install python3.8 python3.8-distutils @pombredanne : I'd be happy to document that in a PR if you find it appropriate |
@camillem please do thanks! Sorry for the late reply. |
In relation to aboutcode-org#2942 (comment) Signed-off-by: Camille Moulin <[email protected]>
In relation to aboutcode-org#2942 (comment) Signed-off-by: Camille Moulin <[email protected]>
Description
Following the README's instructions to install using the recommended method fails with the following output.
Further runs show this error:
How To Reproduce
wget https://github.com/nexB/scancode-toolkit/releases/download/v30.1.0/scancode-toolkit-30.1.0_py39-linux.tar.xz tar xf scancode-toolkit-30.1.0_py39-linux.tar.xz cd scancode-toolkit-30.1.0/ ./scancode --help
or with beta release
wget https://github.com/nexB/scancode-toolkit/releases/download/v31.0.0b3/scancode-toolkit-31.0.0b3_py39-linux.tar.xz tar xf scancode-toolkit-31.0.0b3_py39-linux.tar.xz cd scancode-toolkit-31.0.0b3/ ./scancode --help
System configuration
The text was updated successfully, but these errors were encountered: