-
-
Notifications
You must be signed in to change notification settings - Fork 422
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
bash sourcemod/tools/checkout-deps.sh fails to run #1324
Comments
Install the python3-setuptools package sudo apt-get install python3-setuptools |
Here's a reference on why setuptools is now required: Should @Headline suggestion not work for you, you can manually resolve this by installing 'pip' as it depends on setuptools. |
We should add this to checkout-deps.sh, since it is a new dependency. |
Even after installing python3-setuptools and pip, I'm still getting the error. Is this maybe an issue where the script is designed for python 2 instead of python 3? From https://github.com/alliedmodders/ambuild |
Yes, the script does assume Python 2. |
After installing python-setuptools (as opposed to python3-setuptools) this script runs successfully. |
Yeah that's a gap @enderandrew , thanks for raising this. @WildCard65 do you think you can help out here with a PR to add this dependency to checkout-deps? |
I'll attempt, but first off:
1) Should checkout-deeps stick with Python 2 or be changed to allow either.
2) If we do allow either, should we use 'get-pip.py' or install the
systems' preferred package.
get-pip.py would somewhat be the easiest as it's most likely platform
independent.
…On Mon., Jul. 27, 2020, 7:04 p.m. Kyle Sanderson, ***@***.***> wrote:
Yeah that's a gap @enderandrew <https://github.com/enderandrew> , thanks
for raising this.
@WildCard65 <https://github.com/WildCard65> do you think you can help out
here with a PR to add this dependency to checkout-deps?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1324 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABGFQE33ZQIB5GWG7WINVTLR5YBX7ANCNFSM4PIN277A>
.
|
@dvander @KyleSanderson Some unfortunate news though, it seems both Debian and Ubuntu are planning on removing Python2 from newer versions, this could potentially introduce issues with checkout-deps if 'python' command is no longer available. |
|
Help us help you
Environment
Description
Trying to download a build environment, checkout-deps.sh throws an error on ambuild2
Traceback (most recent call last):
File "", line 1, in
ImportError: No module named ambuild2
Traceback (most recent call last):
File "", line 1, in
ModuleNotFoundError: No module named 'ambuild2'
Cloning into 'ambuild'...
remote: Enumerating objects: 63, done.
remote: Counting objects: 100% (63/63), done.
remote: Compressing objects: 100% (29/29), done.
remote: Total 2647 (delta 35), reused 46 (delta 34), pack-reused 2584
Receiving objects: 100% (2647/2647), 1.53 MiB | 8.77 MiB/s, done.
Resolving deltas: 100% (1820/1820), done.
Traceback (most recent call last):
File "setup.py", line 4, in
from setuptools import setup, find_packages
ImportError: No module named setuptools
Installing AMBuild at the user level. Location can be: ~/.local/bin
Traceback (most recent call last):
File "setup.py", line 4, in
from setuptools import setup, find_packages
ImportError: No module named setuptools
Problematic Code (or Steps to Reproduce)
Logs
The text was updated successfully, but these errors were encountered: