Comments (7)
Hi @mzoz ,
Thanks for reaching out. As the message "ERROR: This script cannot be executed inside a virtual environment." indicates, you were inside a virtualenv to begin with. The scripts expect you to have exited virtualenvs you might have been inside.
from aws-elastic-beanstalk-cli-setup.
Hi @rahulrajaram thanks for your quick reply but I'm not executing the command in virtualenv at first place, I still get the same error message even if I opened a new terminal window and execute it:
mz Desktop $ ./aws-elastic-beanstalk-cli-setup/scripts/bundled_installer
==============================================
I. Installing Python
==============================================
*************************************************************
1. Determining whether pyenv is already installed and in PATH
*************************************************************
- pyenv was not found in PATH.
*********************************************************
2. Determining whether pyenv should be cloned from GitHub
*********************************************************
- pyenv git repository already cloned to /Users/mz/.pyenv-repository. Won't attempt to clone again.
*******************************************
3. Temporarily export necessary pyenv paths
*******************************************
****************************************************************************
4. Checking whether Python can be downloaded (through curl, wget, or aria2c)
****************************************************************************
**************************
5. Installing Python 3.7.2
**************************
- Python 3.7.2 is installed at /Users/mz/.pyenv/versions/3.7.2/bin
- /Users/mz/.pyenv/versions/3.7.2/bin is already in PATH no further action need be taken.
**********************************************************************
6. Installing virtualenv using /Users/mz/.pyenv/versions/3.7.2/bin/pip
**********************************************************************
Requirement already satisfied: virtualenv in /Users/mz/.pyenv/versions/3.7.2/lib/python3.7/site-packages (16.6.0)
You are using pip version 18.1, however version 19.1.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
==============================================
II. Creating self-contained EBCLI installation
==============================================
ERROR: This script cannot be executed inside a virtual environment.
./aws-elastic-beanstalk-cli-setup/scripts/bundled_installer: line 28: echo_with_indentation: command not found
mz Desktop $
mz
is my user name and I gitcloned the repo to my desktop folder.
from aws-elastic-beanstalk-cli-setup.
Thanks for your response. It is very likely that there is a bash statement to activate your virtualenv in your bashrc/zshrc.
For safe measure, in a new tab, can you check the output of the following?
echo $VIRTUAL_ENV
Is it empty?
from aws-elastic-beanstalk-cli-setup.
Hi @rahulrajaram it's not empty it returns
/Users/mz/Library/Enthought/Canopy_64bit/User
from aws-elastic-beanstalk-cli-setup.
Hi @rahulrajaram I just run deactivate
and then run the script and it works! The problem is caused by some canopy virtual env activate commands in my .profile
file, thank you so much for your time and help!
from aws-elastic-beanstalk-cli-setup.
Glad you found your problem. Thanks. I'll close this issue now.
from aws-elastic-beanstalk-cli-setup.
If someone is still facing this issue and you are using VS code built in shell. it does not which shell. I tried git bash, cmd and powershell. All of them were having the same issue.
I moved the download folder to another location and tried CMD outside the VS code and it worked!
:)
I hope it helps someone in the future
from aws-elastic-beanstalk-cli-setup.
Related Issues (20)
- Error check before upload!!
- cannot install::: ERROR: No matching distribution found for botocore<1.24.0,>1.23.41 (from awsebcli) HOT 4
- Running the installer doesn't tell me how to set PATH for macOS, contrally to what README tells me HOT 2
- Official docker image? HOT 1
- FileNotFoundError: [Errno 2] No such file or directory: '/home/mbrant/.ebcli-virtual-env/bin/activate_this.py' HOT 1
- I would like to know how to uninstall the aws eb cli. HOT 2
- /bin/sh: /usr/local/bin/virtualenv: /usr/bin/python: bad interpreter: No such file or directory HOT 2
- SyntaxError: invalid syntax On Running eb command. HOT 4
- AWS CLI with SSO not working
- C:\Users\karth>python --version
- virtualenv could not find python after successful install HOT 3
- Error when installing HOT 9
- Colorama dependency not mentioned or handled
- eb abort and eb terminate contradiction
- eb init failing HOT 1
- SyntaxError: future feature annotations is not defined
- EB CLI Installer error: "Getting requirements to build wheel ... error" HOT 20
- Recommend pipx for a simple install process HOT 3
- Syntax Error when running any command HOT 2
- Compatibility with Python 3.12, ModuleNotFoundError: No module named 'imp' HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aws-elastic-beanstalk-cli-setup.