-
Notifications
You must be signed in to change notification settings - Fork 226
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
Fix eb
not found error when installing via ebcli_installer.py
#70
base: master
Are you sure you want to change the base?
Conversation
Without this the `awsebcli` python module was getting installed to the location pointed out by `sys.executable` which in this scenario, wherein the virtual env is activated via an exec/execfile of the `activate_this.py` code, is not set to that of the virtualenv python executable and hence the base system's `pip` kicks in and installs it in the base system's python site-packages path. This further causes an issue when the eb executable wrapper tries to reach it at the virtualenv's `bin_location/eb` and results in an `eb` not found error.
@surajrav , thanks for reaching out with your PR. I did not realize that passing My initial thoughts are that:
I need to test your code changes. I also need to test the alternative I've proposed in |
Hi @rahulrajaram, thanks for the quick response. I agree with your analysis of this, except for point number 3:
which at said point failed to import Having said that the above snippet does have the Hope this helps. And if I can help in any other way |
Yes, the reason that you don't need to modify the text for the |
For reproduction here is what I did:
I try it again post nuking the |
Thanks for the STR. |
ping ^^ |
Ensure that subprocess.Popen calls happen in the activated virtualenv.
Without this the
awsebcli
python module was getting installed tothe location pointed out by
sys.executable
which in this scenario,wherein the virtual env is activated via an exec/execfile of the
activate_this.py
code, is not set to that of the virtualenv pythonexecutable and hence the base system's
pip
kicks in and installsit in the base system's python site-packages path. This further
causes an issue when the eb executable wrapper tries to reach it
at the virtualenv's
bin_location/eb
and results in aneb
notfound error.
Issue #, if available:
Description of changes:
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.