GithubHelp home page GithubHelp logo

Comments (7)

rahulrajaram avatar rahulrajaram commented on May 29, 2024

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.

mzoz avatar mzoz commented on May 29, 2024

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.

rahulrajaram avatar rahulrajaram commented on May 29, 2024

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.

mzoz avatar mzoz commented on May 29, 2024

Hi @rahulrajaram it's not empty it returns

/Users/mz/Library/Enthought/Canopy_64bit/User

from aws-elastic-beanstalk-cli-setup.

mzoz avatar mzoz commented on May 29, 2024

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.

rahulrajaram avatar rahulrajaram commented on May 29, 2024

Glad you found your problem. Thanks. I'll close this issue now.

from aws-elastic-beanstalk-cli-setup.

NoumanAhmad448 avatar NoumanAhmad448 commented on May 29, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.