-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
build.sh failed in aws-s3-deployment
due to the way pip3
is invoked
#3048
Comments
Do you have a system-wide pip configuration that is interfering with the call here? |
I ran into this too on Ubuntu, using pip3 from
So on Ubuntu, pip3 will enable the --user flag silently. Could possibly be fixed by adding --system? |
Confirmed that for me, adding the --system flag resolved the issue. No idea how this would affect other types of python installations.
|
It looks like the pip community considers the Ubuntu/Debian version to be broken because of this behavior that was only merged into the Debian fork. Probably not worth fixing in the cdk scripts. Workarounds on Ubuntu are 1) install a virtualenv, 2) install from the official pip distribution, or 3) set env variable PIP_USER=0 |
This also bit me when I tried to build CDK in Cloud9. If any future wanderer stumbles across this Issue, the following command will create the appropriate symlink for a Cloud9 environment.
|
I believe this has been resolved by #8487. Please reach out if someone still experiences this. |
Note: for support questions, please first reference our documentation, then use Stackoverflow. This repository's issues are intended for feature requests and bug reports.
I'm submitting a ...
What is the current behavior?
If the current behavior is a 🪲bug🪲: Please provide the steps to reproduce
./build.sh
under@aws-cdk/aws-s3-deployment
exits with 1 due to the following reason:What is the expected behavior (or behavior of feature suggested)?
the build script should have run successfully
Please tell us about your environment:
Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. associated pull-request, stackoverflow, gitter, etc)
changing the line to:
PYTHONUSERBASE=${piptemp} pip3 install --ignore-installed -r ${staging}/requirements.txt
fixed the issue on Ubuntu. However, the exact command cause the build script to fail on Mac with:The text was updated successfully, but these errors were encountered: