GithubHelp home page GithubHelp logo

aws / aws-elastic-beanstalk-cli-setup Goto Github PK

View Code? Open in Web Editor NEW
497.0 15.0 223.0 534 KB

Simplified EB CLI installation mechanism.

License: Apache License 2.0

Python 100.00%
ebcli python installation awsebcli elasticbeanstalk elastic-beanstalk aws eb-cli

aws-elastic-beanstalk-cli-setup's People

Contributors

brookr avatar chaseallbee avatar dimkr avatar halcarleton avatar hyandell avatar jsheld avatar kit494way avatar martinezcoder avatar mickeypeng avatar nihalm99 avatar rahulrajaram avatar stevewallone avatar teaforthecat avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

aws-elastic-beanstalk-cli-setup's Issues

Install on Mac osx won't load Python

I'm fairly new at running command line scripts but I followed the instructions and when it got to the python build I got the error "Inspect or clean up working tree at....." I've looked at the log but it's very long and complicated. As far as I can tell via the log it says "Because of configuration changes, you MUST do the following before building. make depend making all in crypto..." then there is a whole bunch of stuff and the only thing I recognize is Xcode.app. I'm attaching the log file maybe someone can make some sense out of it since I can't figure out what is going on
python-build.20190731160854.16492.log

Uninstallation instructions missing

1. Please specify the following:

  • OS: Windows

  • Shell: any

  • I have reviewed the troubleshooting tips and they do not solve my problem

2. Description
There are no instructions or script provided for uninstalling this software. Please provide either.

I am having same issure.

1. Please specify the following:

  • OS: [e.g. OS X, Ubuntu, Windows, etc.]: ___

  • Shell (Bash, PowerShell, Zsh, etc.): ____

  • I have reviewed the troubleshooting tips described here and they do not solve my problem

2. Description
Please describe the problem you are facing as precisely as possible in this section

installing aws-elastic-beanstalk-cli does not work

1. Please specify the following:

  • OS: [e.g. OS X, Ubuntu, Windows, etc.]: ___Windows10

  • Shell (Bash, PowerShell, Zsh, etc.): ____Bash

  • I have reviewed the troubleshooting tips described here and they do not solve my problem

2. Description
I followed the AWS instructions to install the aws-elastic-beanstalk-cli.
The instructions were these:

  1. Clone this line and enter it to your cmder :
    $ git clone https://github.com/aws/aws-elastic-beanstalk-cli-setup.git

  2. Enter this line:
    $ .\aws-elastic-beanstalk-cli-setup\scripts\bundled_installer

System closes itself automatically lauter starting..

ObjectNotFound: (\install-python.ps1:String)

1. Please specify the following:

  • OS: [e.g. OS X, Ubuntu, Windows, etc.]: Windows 7 SP1 32 bits

  • Shell (Bash, PowerShell, Zsh, etc.): Powershell

  • I have reviewed the troubleshooting tips described here and they do not solve my problem

2. Description
When I run .\aws-elastic-beanstalk-cli-setup\scripts\bundled_installer, I get the following error:

El término '\install-python.ps1' no se reconoce como nombre de un cmdlet, función, archivo de script o programa ejecuta
ble. Compruebe si escribió correctamente el nombre o, si incluyó una ruta de acceso, compruebe que dicha ruta es correc
ta e inténtelo de nuevo.
En línea: 1 Carácter: 20
+ \install-python.ps1 <<<<
    + CategoryInfo          : ObjectNotFound: (\install-python.ps1:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

Exiting due to failure

It's in spanish, but basically it says that it doesn't find the install-python.ps1 script.

OSX Pip and Python versions off

1. Please specify the following:

  • OS: OS X

  • Shell: Bash

  • I have reviewed the troubleshooting tips described here and they do not solve my problem

2. Description
Not sure the best way to report this, as I patched my way through it.

During step 6 of the installer, I ran into the following issue:

image

The python_installer was looking for a pip binary, when only pip3 and pip3.7 existed
Screen Shot 2020-01-03 at 11 57 54 AM

Patching the references on python_installer line 154 (and docstring on 198) to use pip3 instead of pip resolves the issue.
image

This happened again in the bundled_installer, when it was looking for python instead of python3.7, so I patched the file paths inside bundled_installer install_ebcli to use python3.7
image

With these changes my install worked fine and I've successfully used the eb cli since.

zipimport.ZipImportError: can't decompress data; zlib not available on macOS

Inspect or clean up the working tree at /var/folders/n3/ws0911_179dfk_rfxwhq6dvr0000gn/T/python-build.20190523131052.99380
Results logged to /var/folders/n3/ws0911_179dfk_rfxwhq6dvr0000gn/T/python-build.20190523131052.99380.log

Last 10 log lines:
  File "/private/var/folders/n3/ws0911_179dfk_rfxwhq6dvr0000gn/T/python-build.20190523131052.99380/Python-3.7.2/Lib/ensurepip/__main__.py", line 5, in <module>
    sys.exit(ensurepip._main())
  File "/private/var/folders/n3/ws0911_179dfk_rfxwhq6dvr0000gn/T/python-build.20190523131052.99380/Python-3.7.2/Lib/ensurepip/__init__.py", line 204, in _main
    default_pip=args.default_pip,
  File "/private/var/folders/n3/ws0911_179dfk_rfxwhq6dvr0000gn/T/python-build.20190523131052.99380/Python-3.7.2/Lib/ensurepip/__init__.py", line 117, in _bootstrap
    return _run_pip(args + [p[0] for p in _PROJECTS], additional_paths)
  File "/private/var/folders/n3/ws0911_179dfk_rfxwhq6dvr0000gn/T/python-build.20190523131052.99380/Python-3.7.2/Lib/ensurepip/__init__.py", line 27, in _run_pip
    import pip._internal
zipimport.ZipImportError: can't decompress data; zlib not available
make: *** [install] Error 1
   Exiting due to failure

I followed the note but still doesn't work. I'm using macOS v10.14.4.

> ~/Code  echo $LDFLAGS
-L/usr/local/opt/zlib/lib
> ~/Code  echo $CPPFLAGS
-I/usr/local/opt/zlib/include

Error during php application deployment on ubuntu 18.04

During deployment of a php application I had the following error:

ERROR: FileNotFoundError - [Errno 2] No such file or directory: '/home/christian/Documentos/1DOC3-v3/a'

I don't have any directory "a" in the project. what should I do?

add instructions for alpine

1. Please specify the following:

  • OS: [e.g. OS X, Ubuntu, Windows, etc.]: alpine container

  • Shell (Bash, PowerShell, Zsh, etc.): sh

  • I have reviewed the troubleshooting tips described here and they do not solve my problem

2. Description
Please describe the problem you are facing as precisely as possible in this section

Can we add prerequisites for alpine? These appear to work

docker run -it alpine:3.11.5
apk add build-base python3-dev libffi-dev openssl-dev

bundled_installer - pyenv was not found in PATH

Followed the guide, ran into this issue. I've tried uninstalling python and reinstalling, still getting the following issue.

Also noticed it prompts me to install Python 3.7.3 on a clean install through the powershell script but its searching for 3.7.2?

image

Ubuntu post installation instructions won't work

1. Please specify the following:

  • OS: [e.g. OS X, Ubuntu, Windows, etc.]: Ubuntu 18.04

  • Shell (Bash, PowerShell, Zsh, etc.): Bash

  • I have reviewed the troubleshooting tips described here and they do not solve my problem

2. Description
Please describe the problem you are facing as precisely as possible in this section

The post install instructions to add eb to PATH were:
echo 'export PATH="/home/user/.ebcli-virtual-env/executables:$PATH"' >> ~/.bash_profile && source ~/.bash_profile
But I couldn't call eb from console. I changed the command to add it to .bashrc and worked:
echo 'export PATH="/home/user/.ebcli-virtual-env/executables:$PATH"' >> ~/.bashrc && source ~/.bashrc

Same applies for the entry for python.

Install fails when trying to install on Ubuntu 18.04

Hello, i have been trying to install this CLI to be able to ssh into my elasticbeanstalk machine, but it fails.

At the beggining it failed because it lacked zlib1g, but i solved it with: sudo apt-get install zlib1g-dev.

Then it failed because it lacked the '_ctypes', then i did: sudo apt-get install libffi-dev and went on.

Now i'm stuck at this, after this message:

Last 10 log lines:
		install|*) ensurepip="" ;; \
	esac; \
	 ./python -E -m ensurepip \
		$ensurepip --root=/ ; \
fi
Looking in links: /tmp/tmpocghb8ub
Collecting setuptools
Collecting pip
Installing collected packages: setuptools, pip
Successfully installed pip-18.1 setuptools-40.6.2
   Exiting due to failure

==============================================
II. Creating self-contained EBCLI installation
==============================================
./aws-elastic-beanstalk-cli-setup/scripts/bundled_installer: línea 51: /home/tomroima/.pyenv/versions/3.7.2/bin/python: No existe el archivo o el directorio
./aws-elastic-beanstalk-cli-setup/scripts/bundled_installer: línea 28: echo_with_indentation: orden no encontrada

Did anyone else hit this problem? Is there anything else that can be done?

Thanks in advance

Error when running eb create --cfg with specified path of "../"

  • OS: OS X
  • Shell : Bash , Zsh

When trying to create new env based on pre saved config file (e.g. test.cfg.yml) that located on upper directory, receiving an error "ERROR: ServiceError - 1 validation error detected: Value '../templates/saved_configs/test' at 'templateName' failed to satisfy constraint: Member must satisfy regular expression pattern: [^/]+"

But, if I copy the config locally (same folder i'm running the eb create), there is no error and things are working properly.

Please fix.

Thank you.

Consider 1-click install via Homebrew

Coming from Heroku, installation of this tool is not trivial. It would be great if installation was possible via homebrew. Heroku CLI for example can be easily installed via: brew tap heroku/brew && brew install heroku

ModuleNotFoundError: No module named 'error'

1. Please specify the following:

  • OS: [e.g. OS X, Ubuntu, Windows, etc.]: Windows

  • Shell (Bash, PowerShell, Zsh, etc.): Powershell

  • I have reviewed the troubleshooting tips described here and they do not solve my problem

2. Description
I have installed ebcli, reviewed the steps and toubleshooting multiple times to no avail.

When I run any eb command including eb --version I get errors

Traceback (most recent call last):
  File "c:\program files\python37\lib\runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "c:\program files\python37\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "C:\Users\DanDan\.ebcli-virtual-env\Scripts\eb.exe\__main__.py", line 4, in <module>
  File "c:\users\dandan\.ebcli-virtual-env\lib\site-packages\ebcli\core\ebcore.py", line 19, in <module>
    from ebcli.core import ebglobals, base, hooks
  File "c:\users\dandan\.ebcli-virtual-env\lib\site-packages\ebcli\core\hooks.py", line 20, in <module>
    from ebcli.core import fileoperations
  File "c:\users\dandan\.ebcli-virtual-env\lib\site-packages\ebcli\core\fileoperations.py", line 22, in <module>
    import yaml
  File "c:\users\dandan\.ebcli-virtual-env\lib\site-packages\yaml\__init__.py", line 2, in <module>
    from error import *
ModuleNotFoundError: No module named 'error'

I am not sure where to move forward with this.

Install fails on x64 Windows 10: `ModuleNotFoundError: No module named 'virtualenv' Exiting due to failure`

I recently (as of this writing - 5/15/2019) attempted to install eb-cli through the instructions located here: https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/eb-cli3-install.html?icmpid=docs_elasticbeanstalk_console#eb-cli3-install.scripts.windows

This installation errored out due to some kind of issue with a module that was installed or called incorrectly from what I can gather.

I discovered that another user had this same issue today via StackOverflow: https://stackoverflow.com/questions/56153387/modulenotfounderror-no-module-named-virtualenv-exiting-due-to-failure-even-a

Please find the output from the command below:

PS C:\Users\phillip.hocking> .\aws-elastic-beanstalk-cli-setup\scripts\bundled_installer 

==============================================
I. Installing Python
==============================================

**************************************************
1. Looking for existing Python 3.7.3 installation.
**************************************************

*************************************
2. Downloading x64 version of Python.
*************************************

***********************************************
3. Installing Python. Do not close this window.
***********************************************
Installing Python. Do not close this window.
Installation completed successfully.

*******************************************
4. Updating Environment PATH of this shell.
*******************************************

************************
5. Installing virtualenv
************************
Collecting virtualenv
  Downloading https://files.pythonhosted.org/packages/ca/ee/8375c01412abe6ff462ec80970e6bb1c4308724d4366d7519627c98691ab/virtualenv-16.6.0-py2.py3-none-any.whl (2.0MB)
    100% |████████████████████████████████| 2.0MB 1.8MB/s
Installing collected packages: virtualenv
Successfully installed virtualenv-16.6.0
You are using pip version 19.0.3, however version 19.1.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.

==============================================
II. Creating self-contained EBCLI installation
==============================================
Installing the EBCLI in C:\Users\phillip.hocking\.ebcli-virtual-env

******************************************
1. Creating exclusive virtualenv for EBCLI
******************************************
Traceback (most recent call last):
  File "c:\program files\python37\lib\runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "c:\program files\python37\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "C:\Users\phillip.hocking\aws-elastic-beanstalk-cli-setup\scripts\virtualenv\bin\virtualenv.exe\__main__.py", line 5, in <module>
ModuleNotFoundError: No module named 'virtualenv'
Exiting due to failure`

OS X install error make: *** No targets specified and no makefile found. Stop.

1. Please specify the following:

  • OS: [e.g. OS X, Ubuntu, Windows, etc.]: OS X

  • Shell (Bash, PowerShell, Zsh, etc.): Bash

  • I have reviewed the troubleshooting tips described here and they do not solve my problem

2. Description
After doing trouble shooting, the compiler seems to have managed to find zlib. But then I get another error

************************************************************
5. Installing Python 3.7.2. This step may take a few minutes
************************************************************
python-build: use openssl from homebrew
python-build: use readline from homebrew
Downloading Python-3.7.2.tar.xz...
-> https://www.python.org/ftp/python/3.7.2/Python-3.7.2.tar.xz
Installing Python-3.7.2...
python-build: use readline from homebrew

BUILD FAILED (OS X 10.14.6 using python-build 20180424)

Inspect or clean up the working tree at /var/folders/pv/z0rtz3hd6c13wjdfnh7ghd980000gr/T/python-build.20190919104722.59501
Results logged to /var/folders/pv/z0rtz3hd6c13wjdfnh7ghd980000gr/T/python-build.20190919104722.59501.log

Last 10 log lines:
checking for --enable-universalsdk... no
checking for --with-universal-archs... no
checking MACHDEP... checking for --without-gcc... no
checking for --with-icc... no
checking for gcc... clang
checking whether the C compiler works... no
configure: error: in `/var/folders/pv/z0rtz3hd6c13wjdfnh7ghd980000gr/T/python-build.20190919104722.59501/Python-3.7.2':
configure: error: C compiler cannot create executables
See `config.log' for more details
make: *** No targets specified and no makefile found.  Stop.
   Exiting due to failure

bundled_installer Command not found

Hello, I am a dummy guy, so please be patient.
I'm using a Git Bash window to install EB Cli, I ran the command in order to clone of the git repository, it worked fine
But when I tried to run
.\aws-elastic-beanstalk-cli-setup\scripts\bundled_installer
I received: Command not found
The file is present in the file system and full of statements
Any suggestions?

Error when running 'eb'

I recently installed Mojave and now can't use EB command line. This is the error:

-bash: /usr/local/bin/eb: /usr/local/opt/python/bin/python2.7: bad interpreter: No such file or directory

Also, I installed Python 3.7 via Homebrew. When I check version in terminal it says 2.7.16

How to uninstall aws eb cli?

Hey, how do I uninstall this package? my installation has failed and i would like to get back to a clean state.
can I just delete this directory? /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/ebcli

if i run "eb" i get the following error:

Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.7/bin/eb", line 6, in <module>
    from pkg_resources import load_entry_point
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pkg_resources/__init__.py", line 3191, in <module>
    @_call_aside
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pkg_resources/__init__.py", line 3175, in _call_aside
    f(*args, **kwargs)
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pkg_resources/__init__.py", line 3204, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pkg_resources/__init__.py", line 583, in _build_master
    ws.require(__requires__)
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pkg_resources/__init__.py", line 900, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pkg_resources/__init__.py", line 786, in resolve
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'blessed>=1.9.5' distribution was not found and is required by awsebcli

basically the script failed to install these dependencies:

awsebcli 3.15.3 requires docker-compose<1.24.0,>=1.23.2, which is not installed.
awsebcli 3.15.3 requires requests<2.21,>=2.20.1, which is not installed.
awsebcli 3.15.3 requires semantic_version==2.5.0, which is not installed.
awsebcli 3.15.3 has requirement PyYAML<=3.13,>=3.10, but you'll have pyyaml 5.1.2 which is incompatible.
awsebcli 3.15.3 has requirement six<1.12.0,>=1.11.0, but you'll have six 1.12.0 which is incompatible.
awsebcli 3.15.3 has requirement urllib3<1.25,>=1.24.1, but you'll have urllib3 1.25.6 which is incompatible.

Ubuntu package "python3-virtualenv" accepted in step I-5, but causes step II-1 to fail

1. Please specify the following:

  • OS: Ubuntu 18.04

  • Shell: Bash

  • [X ] I have reviewed the troubleshooting tips described here and they do not solve my problem

2. Description
Attempting to install using ./aws-elastic-beanstalk-cli-setup/scripts/bundled_installer

Gives the following output:

==============================================
I. Installing Python                          
==============================================

*************************************************************
1. Determining whether pyenv is already installed and in PATH
*************************************************************
    - pyenv found in PATH. Won't clone pyenv git repository from GitHub

*******************************************
2. Temporarily export necessary pyenv paths
*******************************************

****************************************************************************
3. Checking whether Python can be downloaded (through curl, wget, or aria2c)
****************************************************************************

************************************************************
4. Installing Python 3.7.2. This step may take a few minutes
************************************************************
    - Python 3.7.2 is installed at /home/username/.pyenv/versions/3.7.2/bin

***************************************************************************
5. Installing virtualenv using /home/username/.pyenv/versions/3.7.2/bin/pip
***************************************************************************
Requirement already satisfied: virtualenv in /home/username/.local/lib/python3.7/site-packages (16.7.5)
WARNING: You are using pip version 19.2.3, however version 19.3.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

==============================================
II. Creating self-contained EBCLI installation
==============================================

******************************************
1. Creating exclusive virtualenv for EBCLI
******************************************
/bin/sh: 1: /home/username/.pyenv/versions/3.7.2/bin/virtualenv: not found
   Exiting due to failure

It looks like the Ubuntu system installed python3-virtualenv is acceptable for part of the installation process, but this causes problems later.

eb executable opens a new terminal

I have installed eb-cli using this repo on Windows and encountered the bug described here #19.

I followed the troubleshooting advice given in response and it completed the install successfully.

However, when I run the eb executable in the shell, it opens another one and run the command in the latter, which is rather annoying. Is it by design or did I mess up with the config?

Failed to install on mac

running $ ./aws-elastic-beanstalk-cli-setup/scripts/bundled_installer returned error:

==============================================
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

Please help, thanks!

BUILD FAILED (OS X 10.15.4 using python-build 20180424)

getting the error

BUILD FAILED (OS X 10.15.4 using python-build 20180424)

Inspect or clean up the working tree at /var/folders/3z/jdm_tbt56n97ch0_75f497880000gn/T/python-build.20200331123651.7278
Results logged to /var/folders/3z/jdm_tbt56n97ch0_75f497880000gn/T/python-build.20200331123651.7278.log

Last 10 log lines:
  File "/private/var/folders/3z/jdm_tbt56n97ch0_75f497880000gn/T/python-build.20200331123651.7278/Python-3.7.2/Lib/ensurepip/__main__.py", line 5, in <module>
    sys.exit(ensurepip._main())
  File "/private/var/folders/3z/jdm_tbt56n97ch0_75f497880000gn/T/python-build.20200331123651.7278/Python-3.7.2/Lib/ensurepip/__init__.py", line 204, in _main
    default_pip=args.default_pip,
  File "/private/var/folders/3z/jdm_tbt56n97ch0_75f497880000gn/T/python-build.20200331123651.7278/Python-3.7.2/Lib/ensurepip/__init__.py", line 117, in _bootstrap
    return _run_pip(args + [p[0] for p in _PROJECTS], additional_paths)
  File "/private/var/folders/3z/jdm_tbt56n97ch0_75f497880000gn/T/python-build.20200331123651.7278/Python-3.7.2/Lib/ensurepip/__init__.py", line 27, in _run_pip
    import pip._internal
zipimport.ZipImportError: can't decompress data; zlib not available
make: *** [install] Error 1
   Exiting due to failure

No instructions on how to update

It would be nice if the README gave clear instructions on the best way to upgrade when using the eb cli installed via these scripts. There is conflicting guidance depending on where you look.

  1. FAQ 4.7 in the README sort of talks about upgrading, but it is not clear if re-running the install script is recommended
  2. The eb command itself outputs Alert: An update to the EB CLI is available. Run "pip install --upgrade awsebcli" to get the latest version.
  3. This page gives pretty clear instructions: To upgrade to the latest version of the EB CLI, download the latest version of the EB CLI setup scripts and rerun the bundled installer..

Is (3) the recommended method? And is this equivalent to git update and then re-running python scripts/ebcli_installer.py? Or should I run ./scripts/bundled_installer?

Error when running bundled installer

When running the bundled installer on my window using ./aws-elastic-beanstalk-cli-setup/scripts/bundled_installer, I get the following error:

pip : The term 'pip' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the
spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ pip install virtualenv --target C:\Users\EFOSA\Desktop\myProject\ ...
+ ~~~
    + CategoryInfo          : ObjectNotFound: (pip:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException


==============================================
II. Creating self-contained EBCLI installation
==============================================
Installing the EBCLI in C:\Users\EFOSA\.ebcli-virtual-env

******************************************
1. Creating exclusive virtualenv for EBCLI
******************************************
The system cannot find the path specified.
Exiting due to failure

Can anyone advise what I am doing wrong? I already ran
git clone https://github.com/aws/aws-elastic-beanstalk-cli-setup.git

Python build FAILED (OS X 10.14.6 using python-build 20180424)

Hello.
When I install by bundled_installer, bundled_installer fails to install Python with the following error.

************************************************************
5. Installing Python 3.7.2. This step may take a few minutes
************************************************************
python-build: use openssl from homebrew
python-build: use readline from homebrew
Downloading Python-3.7.2.tar.xz...
-> https://www.python.org/ftp/python/3.7.2/Python-3.7.2.tar.xz
Installing Python-3.7.2...
python-build: use readline from homebrew

BUILD FAILED (OS X 10.14.6 using python-build 20180424)

Inspect or clean up the working tree at /var/folders/rg/jn_7wts95hv3m8dm6g_68t8c0000gn/T/python-build.20190810153428.85076
Results logged to /var/folders/rg/jn_7wts95hv3m8dm6g_68t8c0000gn/T/python-build.20190810153428.85076.log

Last 10 log lines:
  File "/private/var/folders/rg/jn_7wts95hv3m8dm6g_68t8c0000gn/T/python-build.20190810153428.85076/Python-3.7.2/Lib/ensurepip/__main__.py", line 5, in <module>
    sys.exit(ensurepip._main())
  File "/private/var/folders/rg/jn_7wts95hv3m8dm6g_68t8c0000gn/T/python-build.20190810153428.85076/Python-3.7.2/Lib/ensurepip/__init__.py", line 204, in _main
    default_pip=args.default_pip,
  File "/private/var/folders/rg/jn_7wts95hv3m8dm6g_68t8c0000gn/T/python-build.20190810153428.85076/Python-3.7.2/Lib/ensurepip/__init__.py", line 117, in _bootstrap
    return _run_pip(args + [p[0] for p in _PROJECTS], additional_paths)
  File "/private/var/folders/rg/jn_7wts95hv3m8dm6g_68t8c0000gn/T/python-build.20190810153428.85076/Python-3.7.2/Lib/ensurepip/__init__.py", line 27, in _run_pip
    import pip._internal
zipimport.ZipImportError: can't decompress data; zlib not available
make: *** [install] Error 1
   Exiting due to failure

The following message is output to the logfile.

Python build finished successfully!
The necessary bits to build these optional modules were not found:
_dbm                  _gdbm                 _hashlib           
_sqlite3              _ssl                  _uuid              
nis                   ossaudiodev           spwd               
zlib                                                           
To find the necessary bits, look in setup.py in detect_modules() for the module's name.


The following modules found by detect_modules() in setup.py, have been
built by the Makefile instead, as configured by the Setup files:
_abc                  atexit                pwd                
time                                                           

Could not build the ssl module!
Python requires an OpenSSL 1.0.2 or 1.1 compatible libssl with X509_VERIFY_PARAM_set1_host().
LibreSSL 2.6.4 and earlier do not provide the necessary APIs, https://github.com/libressl-portable/portable/issues/381

I want to know how to install python successfully.

Install fails on Windows 10: Fatal error in launcher: Unable to create process using '"c:\program files\python37\python.exe"...

During the installation of EB-CLI3
https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/eb-cli3-install.html

I got the following error

Fatal error in launcher: Unable to create process using '"c:\program files\python37\python.exe" "D:\Blyng\aws-elastic-beanstalk-cli-setup\scripts\virtualenv\bin\virtualenv.exe" "C:\Users\maciej.ebcli-virtual-env" -p "C:\Users\maciej\AppData\Local\Programs\Python\Python37\python.exe"'
Exiting due to failure

How can I get it installed?

I have installed but I keep getting ERROR: NotAuthorizedError - Operation Denied. Access Denied. How can I uninstall?

1. Please specify the following:

  • OS: [e.g. OS X, Ubuntu, Windows, etc.]: _OS X

  • Shell (Bash, PowerShell, Zsh, etc.): ____

  • I have reviewed the troubleshooting tips described here and they do not solve my problem

2. Description
Please describe the problem you are facing as precisely as possible in this section

After installation, running eb init gives me ERROR: NotAuthorizedError - Operation Denied. Access Denied. I set the profile in my environment variable and also in my ~/.aws/credentials file but I had no luck running eb init or eb init --profile eb-cli.

I also want to know how to completely uninstall as there is no uninstall script in the repository

ModuleNotFoundError: No module named 'virtualenv'

1. Please specify the following:

  • OS: Windows 10
  • Shell (Bash, PowerShell, Zsh, etc.): cmd

2. Description

I executed the following 2 commands (without having Python 3.7.3 installed) in my Command Prompt on Windows 10:

git clone https://github.com/aws/aws-elastic-beanstalk-cli-setup.git
./aws-elastic-beanstalk-cli-setup/scripts/bundled_installer

After doing that I received the following error:

==============================================
II. Creating self-contained EBCLI installation
==============================================
Installing the EBCLI in C:\Users\bn\.ebcli-virtual-env

******************************************
1. Creating exclusive virtualenv for EBCLI
******************************************
Traceback (most recent call last):
  File "c:\program files\python37\lib\runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "c:\program files\python37\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "C:\dev\env\aws-elastic-beanstalk-cli-setup\scripts\virtualenv\bin\virtualenv.exe\__main__.py", line 5, in <module>
ModuleNotFoundError: No module named 'virtualenv'
Exiting due to failure

Screenshot

image

Installation failes on x64 windows 10. There must be only one argument: DEST_DIR (you gave C:\Users\Gaurav Jain\.ebcli-virtual-env) Usage: virtualenv [OPTIONS] DEST_DIR

I have installed from the git. Now when I run .\aws-elastic-beanstalk-cli-setup\scripts\bundled_installer I get this error.--------------->


PS C:\WINDOWS\system32> cd E:\ebcli_demo
PS E:\ebcli_demo> .\aws-elastic-beanstalk-cli-setup\scripts\bundled_installer

==============================================
I. Installing Python
==============================================

**************************************************
1. Looking for existing Python 3.7.3 installation.
**************************************************
Python 3.7.3 is already installed.

************************
2. Installing virtualenv
************************
Collecting virtualenv
  Using cached https://files.pythonhosted.org/packages/ca/ee/8375c01412abe6ff462ec80970e6bb1c4308724d4366d7519627c98691ab/virtualenv-16.6.0-py2.py3-none-any.whl
Installing collected packages: virtualenv
Successfully installed virtualenv-16.6.0
You are using pip version 19.0.3, however version 19.1.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.

==============================================
II. Creating self-contained EBCLI installation
==============================================
Installing the EBCLI in C:\Users\Gaurav Jain\.ebcli-virtual-env

******************************************
1. Creating exclusive virtualenv for EBCLI
******************************************
There must be only one argument: DEST_DIR (you gave C:\Users\Gaurav Jain\.ebcli-virtual-env)
Usage: virtualenv [OPTIONS] DEST_DIR

Options:
  --version             show program's version number and exit
  -h, --help            show this help message and exit
  -v, --verbose         Increase verbosity.
  -q, --quiet           Decrease verbosity.
  -p PYTHON_EXE, --python=PYTHON_EXE
                        The Python interpreter to use, e.g.,
                        --python=python3.5 will use the python3.5 interpreter
                        to create the new environment.  The default is the
                        interpreter that virtualenv was installed with
                        (c:\program files\python37\python.exe)
  --clear               Clear out the non-root install and start from scratch.
  --no-site-packages    DEPRECATED. Retained only for backward compatibility.
                        Not having access to global site-packages is now the


bundled_installer stuck at Installing Python-3.7.2

I'm trying to install the CLI on Ubuntu 18.08.
When I run bundle_installer I see the following logs :

> 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 /home/shabin/.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
> **************************
> Downloading Python-3.7.2.tar.xz...
> -> https://www.python.org/ftp/python/3.7.2/Python-3.7.2.tar.xz
> Installing Python-3.7.2...`

After reaching step 5, the script is stuck there like for ever. Nothing gets printed in the console after this. I hit Ctrl+C after like 20 minutes and then see this when the program exits :

> BUILD FAILED (Ubuntu 18.04 using python-build 20180424)
> 
> Inspect or clean up the working tree at /tmp/python-build.20190520135926.5003
> Results logged to /tmp/python-build.20190520135926.5003.log
> 
> Last 10 log lines:
> /tmp/python-build.20190520135926.5003 ~/EBS_CLI/aws-elastic-beanstalk-cli-setup/scripts
> /tmp/python-build.20190520135926.5003/Python-3.7.2 /tmp/python-build.20190520135926.5003 ~/EBS_CLI/aws-elastic-beanstalk-cli-setup/scripts
> checking build system type...    Exiting due to failure
> 
> II. Creating self-contained EBCLI installation
> ./aws-elastic-beanstalk-cli-setup/scripts/bundled_installer: line 51: /home/shabin/.pyenv/versions/3.7.2/bin/python: No such file or directory
> ./aws-elastic-beanstalk-cli-setup/scripts/bundled_installer: line 28: echo_with_indentation: command not found

Install Error - ModuleNotFoundError: No module named 'pyexpat'

1. Please specify the following:

  • MacOS 10.14.6

  • Zsh

  • I have reviewed the troubleshooting tips described here and they do not solve my problem

2. Description
Error when running the bundled_installer command.

Traceback (most recent call last):
  File "/private/var/folders/h7/z_zhb_v92ts6zh9k2f52trv00000gn/T/python-build.20191015111544.68643/Python-3.7.2/Lib/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/private/var/folders/h7/z_zhb_v92ts6zh9k2f52trv00000gn/T/python-build.20191015111544.68643/Python-3.7.2/Lib/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/private/var/folders/h7/z_zhb_v92ts6zh9k2f52trv00000gn/T/python-build.20191015111544.68643/Python-3.7.2/Lib/ensurepip/__main__.py", line 5, in <module>
    sys.exit(ensurepip._main())
  File "/private/var/folders/h7/z_zhb_v92ts6zh9k2f52trv00000gn/T/python-build.20191015111544.68643/Python-3.7.2/Lib/ensurepip/__init__.py", line 204, in _main
    default_pip=args.default_pip,
  File "/private/var/folders/h7/z_zhb_v92ts6zh9k2f52trv00000gn/T/python-build.20191015111544.68643/Python-3.7.2/Lib/ensurepip/__init__.py", line 117, in _bootstrap
    return _run_pip(args + [p[0] for p in _PROJECTS], additional_paths)
  File "/private/var/folders/h7/z_zhb_v92ts6zh9k2f52trv00000gn/T/python-build.20191015111544.68643/Python-3.7.2/Lib/ensurepip/__init__.py", line 27, in _run_pip
    import pip._internal
  File "/var/folders/h7/z_zhb_v92ts6zh9k2f52trv00000gn/T/tmpi007ibkr/pip-18.1-py2.py3-none-any.whl/pip/_internal/__init__.py", line 40, in <module>
  File "/var/folders/h7/z_zhb_v92ts6zh9k2f52trv00000gn/T/tmpi007ibkr/pip-18.1-py2.py3-none-any.whl/pip/_internal/cli/autocompletion.py", line 8, in <module>
  File "/var/folders/h7/z_zhb_v92ts6zh9k2f52trv00000gn/T/tmpi007ibkr/pip-18.1-py2.py3-none-any.whl/pip/_internal/cli/main_parser.py", line 8, in <module>
  File "/var/folders/h7/z_zhb_v92ts6zh9k2f52trv00000gn/T/tmpi007ibkr/pip-18.1-py2.py3-none-any.whl/pip/_internal/cli/cmdoptions.py", line 20, in <module>
  File "/var/folders/h7/z_zhb_v92ts6zh9k2f52trv00000gn/T/tmpi007ibkr/pip-18.1-py2.py3-none-any.whl/pip/_internal/utils/hashes.py", line 10, in <module>
  File "/var/folders/h7/z_zhb_v92ts6zh9k2f52trv00000gn/T/tmpi007ibkr/pip-18.1-py2.py3-none-any.whl/pip/_internal/utils/misc.py", line 21, in <module>
  File "/var/folders/h7/z_zhb_v92ts6zh9k2f52trv00000gn/T/tmpi007ibkr/pip-18.1-py2.py3-none-any.whl/pip/_vendor/pkg_resources/__init__.py", line 35, in <module>
  File "/private/var/folders/h7/z_zhb_v92ts6zh9k2f52trv00000gn/T/python-build.20191015111544.68643/Python-3.7.2/Lib/plistlib.py", line 65, in <module>
    from xml.parsers.expat import ParserCreate
  File "/private/var/folders/h7/z_zhb_v92ts6zh9k2f52trv00000gn/T/python-build.20191015111544.68643/Python-3.7.2/Lib/xml/parsers/expat.py", line 4, in <module>
    from pyexpat import *
ModuleNotFoundError: No module named 'pyexpat'
make: *** [install] Error 1

Please let me know what further information you need from me to help debug this.

BUILD FAILED (Fedora 30 using python-build 20180424)

Following the documents, trying to run ./aws-elastic-beanstalk-cli-setup/scripts/bundled_installer failed with the following message:

BUILD FAILED (Fedora 30 using python-build 20180424)

Inspect or clean up the working tree at /tmp/python-build.20190605123619.8368
Results logged to /tmp/python-build.20190605123619.8368.log

Last 10 log lines:
  File "/tmp/python-build.20190605123619.8368/Python-3.7.2/Lib/ensurepip/__main__.py", line 5, in <module>
    sys.exit(ensurepip._main())
  File "/tmp/python-build.20190605123619.8368/Python-3.7.2/Lib/ensurepip/__init__.py", line 204, in _main
    default_pip=args.default_pip,
  File "/tmp/python-build.20190605123619.8368/Python-3.7.2/Lib/ensurepip/__init__.py", line 117, in _bootstrap
    return _run_pip(args + [p[0] for p in _PROJECTS], additional_paths)
  File "/tmp/python-build.20190605123619.8368/Python-3.7.2/Lib/ensurepip/__init__.py", line 27, in _run_pip
    import pip._internal
zipimport.ZipImportError: can't decompress data; zlib not available
make: *** [Makefile:1130: install] Error 1
   Exiting due to failure

The log file is attached.
python-build.20190605123619.8368.log

Tried to install zlib, it was already installed:

Package zlib-1.2.11-15.fc30.x86_64 is already installed.
Package zlib-1.2.11-15.fc30.i686 is already installed.
Dependencies resolved.
Nothing to do.
Complete!

My .bash_profile:

PATH=$PATH:$HOME/.local/bin:$HOME/bin
export PATH

My pip:

$ which pip3
  >  /usr/bin/pip3
ls -al /usr/bin/pip3
  >  -rwxr-xr-x. 1 root root 408 /usr/bin/pip3

My pip -v:

pip3 --version
pip 19.1.1 from ~/.local/lib/python3.7/site-packages/pip (python 3.7)

no (corporate) proxy option in installer

.\aws-elastic-beanstalk-cli-setup2\scripts\bundled_installer

C:\Users\XXX\Documents\git>Powershell.exe -executionpolicy remotesigned -File "C:\Users\XXX\Documents\git\aws-elastic-beanstalk-cli-setup\scripts\\bundled_installer.ps1"

==============================================
I. Installing Python
==============================================

**************************************************
1. Looking for existing Python 3.7.3 installation.
**************************************************

*************************************
2. Downloading x64 version of Python.
*************************************
Failed to download Python. The following exception was raised:
System.Management.Automation.MethodInvocationException: Ausnahme beim Aufrufen von "DownloadFile" mit 2 Argument(en):  "Der Remoteserver hat einen Fehler zurückgegeben: (407) Proxyauthentifizierung erforderlich." ---> System.Net.WebException: Der Remoteserver hat einen Fehler zurückgegeben: (407) Proxyauthentifizierung erforderlich.
   bei System.Net.WebClient.DownloadFile(Uri address, String fileName)
   bei CallSite.Target(Closure , CallSite , Object , Object , Object )
   --- Ende der internen Ausnahmestapelüberwachung ---
   bei System.Management.Automation.ExceptionHandlingOps.CheckActionPreference(FunctionContext funcContext, Exception exception)
   bei System.Management.Automation.Interpreter.ActionCallInstruction`2.Run(InterpretedFrame frame)
   bei System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
   bei System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)

there is no markup readme documenting how to use the installer with a corporate proxy and no documented command line options to specify the proxy user, password server and port.

https://docs.aws.amazon.com/de_de/cli/latest/userguide/cli-configure-proxy.html
documents how to set up a proxy but not how to tell it to trust the proxy's SSL certificate.
The "2. Installing virtualenv" step will just fail with
Could not fetch URL https://pypi.python.org/simple/virtualenv/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.python.org', port=443): Max retries exceeded with url: /simple/virtualenv/ (Caused by SSLError(SSLError(1, u'[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:726)'),)) - skipping

If the script would create a %APPDATA%\pip\pip.ini with

[global]
  trusted-host = pypi.python.org
                 pypi.org
                 files.pythonhosted.org

it would be able to have pip download virtualenv after downloading python.
Since it does install an old version of pip, it wouldn't hurt to do
python -m pip install --upgrade pip in the process.

Does not write stdout when run with node js child process until process is finished.

1. Platform:

  • OS: Mac , NodeJs

2. Description

I use eb in a node js application to perform automatic deployment into AWS elasticbeanstalk environment. eb is called in an async function such as:

subProcess = spawn(command, args, {shell:true});

Where command is 'eb' and args is eb arguments.

There are also following lines in the async function:

subProcess.on('data', data => console.log(`${data.toString()}`));
subProcess.stdout.on('data', data => console.log(`${data.toString()}`));

How ever, nothing is written out to terminal before some time has passes even it normally prints out messages about on going process.

Eg:
eb create --nohang
Normally outputs following output line by line when it happens.

Creating application version archive "app-lorem-ipsum".
Uploading adminApp/app-lorem-ipsum.zip to S3. This may take a while.
Upload Complete.

If ran from nodejs.childprocess.spawn async function

They are all written out when upload is complete.

If --nohang is not used , user can not see anything about the whole process including events until all of the process is finished.

Note that the async function works normally with other long processing batch jobs presenting intermediate results immediately after sub process produces output.

This issue effects user experience, since information can be written out to terminal very late or at the end of the process.

Thanks and Best Regards

Bircan

Installing with Python3

1. Please specify the following:

  • OS: OSX

  • Shell: Bash

  • I have reviewed the troubleshooting tips described here and they do not solve my problem

2. Description
Please describe the problem you are facing as precisely as possible in this section
I get the following issue when installing with python3 (it works fine with python2):

Traceback (most recent call last):
  File "/Users/bezreyhan/.ebcli-virtual-env/bin/eb", line 5, in <module>
    from ebcli.core.ebcore import main
ModuleNotFoundError: No module named 'ebcli'

In other words python3 aws-elastic-beanstalk-cli-setup/scripts/ebcli_installer.py does not work but python aws-elastic-beanstalk-cli-setup/scripts/ebcli_installer.py works fine.

I'm new to Python so it's been difficult trying to figure out what the cause is.

Thanks

BUILD FAILED (OS X 10.14.6 using python-build 20180424)

macOS 10.14.6
GNU bash 5.0.9
Python 3.7.4 already installed

Different error (as log shows) from issue #47. bundled_installer fails to install Python 3.7.2 with the error above, and last 10 log lines below.

  • I have reviewed the troubleshooting tips described here and they do not solve my problem
************************************************************
5. Installing Python 3.7.2. This step may take a few minutes
************************************************************
python-build: use openssl from homebrew
python-build: use readline from homebrew
Downloading Python-3.7.2.tar.xz...
-> https://www.python.org/ftp/python/3.7.2/Python-3.7.2.tar.xz
Installing Python-3.7.2...
python-build: use readline from homebrew

BUILD FAILED (OS X 10.14.6 using python-build 20180424)

Inspect or clean up the working tree at /var/folders/hp/95jl23l97xlcm8_011nx_0_m0000gn/T/python-build.20190817173947.43610
Results logged to /var/folders/hp/95jl23l97xlcm8_011nx_0_m0000gn/T/python-build.20190817173947.43610.log

Last 10 log lines:
checking MACHDEP... checking for --without-gcc... no
checking for --with-icc... no
checking for gcc... clang
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... configure: error: in `/var/folders/hp/95jl23l97xlcm8_011nx_0_m0000gn/T/python-build.20190817173947.43610/Python-3.7.2':
configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details
   Exiting due to failure

Install fails on OS X (zipimport.ZipImportError: can't decompress data; zlib not available)

Using Mac OS Mojave 10.14.5, bundled_installer fails to install Python with the following errors:

BUILD FAILED (OS X 10.14.5 using python-build 20180424)

Inspect or clean up the working tree at /var/folders/n0/xxh86gld3jb5rxnnp1rtfv4h0000gn/T/python-build.20190722131429.87401
Results logged to /var/folders/n0/xxh86gld3jb5rxnnp1rtfv4h0000gn/T/python-build.20190722131429.87401.log

Last 10 log lines:
  File "/private/var/folders/n0/xxh86gld3jb5rxnnp1rtfv4h0000gn/T/python-build.20190722131429.87401/Python-3.7.2/Lib/ensurepip/__main__.py", line 5, in <module>
    sys.exit(ensurepip._main())
  File "/private/var/folders/n0/xxh86gld3jb5rxnnp1rtfv4h0000gn/T/python-build.20190722131429.87401/Python-3.7.2/Lib/ensurepip/__init__.py", line 204, in _main
    default_pip=args.default_pip,
  File "/private/var/folders/n0/xxh86gld3jb5rxnnp1rtfv4h0000gn/T/python-build.20190722131429.87401/Python-3.7.2/Lib/ensurepip/__init__.py", line 117, in _bootstrap
    return _run_pip(args + [p[0] for p in _PROJECTS], additional_paths)
  File "/private/var/folders/n0/xxh86gld3jb5rxnnp1rtfv4h0000gn/T/python-build.20190722131429.87401/Python-3.7.2/Lib/ensurepip/__init__.py", line 27, in _run_pip
    import pip._internal
zipimport.ZipImportError: can't decompress data; zlib not available
make: *** [install] Error 1
   Exiting due to failure

==============================================
II. Creating self-contained EBCLI installation
==============================================
./bundled_installer: line 51: /Users/tomslot/.pyenv/versions/3.7.2/bin/python: No such file or directory
./bundled_installer: line 28: echo_with_indentation: command not found

Suggested workaround (installing zlib and setting CFLAGS) does not work for me.

PS. I also tried to execute:

python3 ebcli_installer.py                      

***********************************
1. Locating virtualenv installation
***********************************
ERROR: Could not find and "virtualenv" installed. Ensurevirtualenv is installed and that it is in PATH before executingthis script.

******************************************
2. Creating exclusive virtualenv for EBCLI
******************************************
/bin/sh: virtualenv: command not found

Error: Not a valid -value pair

I've followed the setup instructions in this doc but when I run

eb init

I receive the following error after I select the default region:

ERROR: ServiceError - 'test/20190515/us-west-2/elasticbeanstalk/aws4_request' not a valid key=value pair (missing equal-sign) in Authorization header: 'AWS4-HMAC-SHA256 Credential=eb test/20190515/us-west-2/elasticbeanstalk/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=b4c95b623359d11e2cb2c648d713c1be54302f67d5f8a662c118bdb41e76d0dd'.

the result of $ eb --version is:
EB CLI 3.15.0 (Python 3.5.1)

does elastic bean stalk work with Django==3.0.5

I am following the below tutorial

https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/create-deploy-python-django.html#python-django-deploy

I am able to deploy django app for version django==2.1.1 as in the doc. However when I try to deploy django application with django version(Django==3.0.5) I am gettig an internal server error.
I could see in the document it was mentioned "The latest compatible version is Django 2.1" but could read in other github articles that latest versions of django like django 3 are supported by elastic bean stalk. Could anyone please help me with steps to deploy a an application with Django==3.0.5 using elastic beanstalk

Build Failed 10.13.5 (After Troubleshooting Step)

==============================================
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/peterdunham/.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. This step may take a few minutes
************************************************************
python-build: use openssl from homebrew
python-build: use readline from homebrew
Downloading Python-3.7.2.tar.xz...
-> https://www.python.org/ftp/python/3.7.2/Python-3.7.2.tar.xz
Installing Python-3.7.2...
python-build: use readline from homebrew
ERROR: The Python ssl extension was not compiled. Missing the OpenSSL lib?

Please consult to the Wiki page to fix the problem.
https://github.com/pyenv/pyenv/wiki/Common-build-problems


BUILD FAILED (OS X 10.13.5 using python-build 20180424)

Space in path name causes installer to fail

1. Please specify the following:

  • OS: Windows

  • Shell CMD

  • I have reviewed the troubleshooting tips described here and they do not solve my problem

2. Description
The bundled installer is failing on my system due to a space in the path name.

c:\My Git Files>.\aws-elastic-beanstalk-cli-setup\scripts\bundled_installer

c:\My Git Files>Powershell.exe -executionpolicy remotesigned -File "c:\My Git Files\aws-elastic-beanstalk-cli-setup\scripts\\bundled_installer.ps1"

==============================================
I. Installing Python
==============================================
C:\My : The term 'C:\My' is not recognized as the name of a cmdlet, function,
script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is
correct and try again.
At line:1 char:1
+ C:\My Git Files\aws-elastic-beanstalk-cli ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (C:\My:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

Exiting due to failure

Unable to run awsebcli because of outdated botocore on python 3.7.0 #3357 #4368

I am facing the following issue while running awscli
C:\Users\admin>eb init -p python-3.7
Traceback (most recent call last):
File "C:\Users\admin\AppData\Roaming\Python\Python37\Scripts\eb-script.py", line 6, in
from pkg_resources import load_entry_point
File "c:\program files\python37\lib\site-packages\pkg_resources_init_.py", line 3191, in
@call_aside
File "c:\program files\python37\lib\site-packages\pkg_resources_init.py", line 3175, in call_aside
f(*args, **kwargs)
File "c:\program files\python37\lib\site-packages\pkg_resources_init.py", line 3204, in initialize_master_working_set
working_set = WorkingSet.build_master()
File "c:\program files\python37\lib\site-packages\pkg_resources_init.py", line 583, in build_master
ws.require(requires)
File "c:\program files\python37\lib\site-packages\pkg_resources_init.py", line 900, in require
needed = self.resolve(parse_requirements(requirements))
File "c:\program files\python37\lib\site-packages\pkg_resources_init.py", line 786, in resolve
raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'botocore<1.13,>=1.12.29' distribution was not found and is required by awsebcli

I have added the reference number of the similar issue which shows it has closed

Install fails on macOS: "ModuleNotFoundError: No module named 'pip'"

I'm trying to install eb cli on a macOS 10.14.4 but without success.

When I run the installation script directly using the command python ebcli_installer.py this is the output I get:


***********************************
1. Locating virtualenv installation
***********************************

******************************************
2. Creating exclusive virtualenv for EBCLI
******************************************
Using base prefix '/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7'
New python executable in /Users/Sergio/.ebcli-virtual-env/bin/python3.7
Also creating executable in /Users/Sergio/.ebcli-virtual-env/bin/python
Installing setuptools, pip, wheel...
done.

************************
3. Activating virtualenv
************************

*******************
4. Installing EBCLI
*******************
Traceback (most recent call last):
  File "/Users/Sergio/.ebcli-virtual-env/bin/pip", line 6, in <module>
    from pip._internal import main
ModuleNotFoundError: No module named 'pip'

***********************
5. Creating EB wrappers
***********************

***************
6. Finishing up
***************
Success!

    Note: To complete installation, ensure `eb` is in PATH. You can ensure this by executing:

    1. Bash:

       echo 'export PATH="/Users/Sergio/.ebcli-virtual-env/executables:$PATH"' >> ~/.bash_profile && source ~/.bash_profile

    2. Zsh:

       echo 'export PATH="/Users/Sergio/.ebcli-virtual-env/executables:$PATH"' >> ~/.zshenv && source ~/.zshenv

As you can see in step 4 there is an error on pip module which is correctly installed and working in the system:

$ pip --version
pip 18.1 from /usr/local/lib/python3.7/site-packages/pip (python 3.7)

Anyway, after installation script has completed, I tried to execute the EB CLI but I've got the following error:

$ eb
Traceback (most recent call last):
  File "/Users/Sergio/.ebcli-virtual-env/executables/eb", line 45, in <module>
    exit(_exec_cmd(['/Users/Sergio/.ebcli-virtual-env/bin/eb'] + sys.argv[1:]))
  File "/Users/Sergio/.ebcli-virtual-env/executables/eb", line 25, in _exec_cmd
    p = subprocess.Popen(args)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/subprocess.py", line 775, in __init__
    restore_signals, start_new_session)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/subprocess.py", line 1522, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: '/Users/Sergio/.ebcli-virtual-env/bin/eb': '/Users/Sergio/.ebcli-virtual-env/bin/eb'

which I suppose is a consequence of the error occurred during installation.

I don't think it is a matter with my env or virtualenv because if I create manually a virtualenv everything goes fine:

$ virtualenv test
Using base prefix '/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7'
New python executable in /Users/Sergio/Bidone/test-virtualend/test/bin/python3.7
Also creating executable in /Users/Sergio/Bidone/test-virtualend/test/bin/python
Installing setuptools, pip, wheel...
done.
$ source test/bin/activate
(test) $ python --version
Python 3.7.0
(test) $ pip --version
pip 19.1.1 from /Users/Sergio/Bidone/test-virtualend/test/lib/python3.7/site-packages/pip (python 3.7)

Any hint to sort out this issue would be very appreciated, thanks!

Missing uninstallation instructions

1. Please specify the following:

  • OS: [e.g. OS X, Ubuntu, Windows, etc.]: Ubuntu

  • Shell (Bash, PowerShell, Zsh, etc.): any

  • I have reviewed the troubleshooting tips described here and they do not solve my problem

2. Description
There are no instructions for uninstalling eb.

[osx] failed installation leading to bizarre system-wide font corruption

i tried following the directions to install using

$ ./aws-elastic-beanstalk-cli-setup/scripts/bundled_installer

the installation failed. soon after my terminal started acting strange (not displaying any text). then my menu bar stopped displaying text altogether. it only displayed the outline of the dropdown menus. i had to restart by touch, luckily the logout button is the last one which led me to being able to restart.

on restart i opened firefox and noticed the damage it had done to the fonts. now all of my fonts in firefox are screwed up as well as those in my terminal (i had been using nerd-fonts installed via homebrew).

here is a sample of the font issues:

firefox (fonts are massive, spaced out, and numeric chars rendering strangely)
Screen Shot 2019-07-18 at 11 48 40 PM

terminal (fonts are tiny and nerdfont icon glyphs are broken)
Screen Shot 2019-07-18 at 11 49 46 PM

i reran the installation to see if i could capture the error report. its the same as what i received the first time when everything began breaking (before the restart). here is the output:

==============================================
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/vampiire/.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. This step may take a few minutes
************************************************************
python-build: use openssl from homebrew
python-build: use readline from homebrew
Downloading Python-3.7.2.tar.xz...
-> https://www.python.org/ftp/python/3.7.2/Python-3.7.2.tar.xz
Installing Python-3.7.2...
python-build: use readline from homebrew

BUILD FAILED (OS X 10.14.5 using python-build 20180424)

Inspect or clean up the working tree at /var/folders/6q/pkk5d6_j34d1vd9hf2ymct900000gn/T/python-build.20190718234320.30795
Results logged to /var/folders/6q/pkk5d6_j34d1vd9hf2ymct900000gn/T/python-build.20190718234320.30795.log

Last 10 log lines:
  File "/private/var/folders/6q/pkk5d6_j34d1vd9hf2ymct900000gn/T/python-build.20190718234320.30795/Python-3.7.2/Lib/ensurepip/__main__.py", line 5, in <module>
    sys.exit(ensurepip._main())
  File "/private/var/folders/6q/pkk5d6_j34d1vd9hf2ymct900000gn/T/python-build.20190718234320.30795/Python-3.7.2/Lib/ensurepip/__init__.py", line 204, in _main
    default_pip=args.default_pip,
  File "/private/var/folders/6q/pkk5d6_j34d1vd9hf2ymct900000gn/T/python-build.20190718234320.30795/Python-3.7.2/Lib/ensurepip/__init__.py", line 117, in _bootstrap
    return _run_pip(args + [p[0] for p in _PROJECTS], additional_paths)
  File "/private/var/folders/6q/pkk5d6_j34d1vd9hf2ymct900000gn/T/python-build.20190718234320.30795/Python-3.7.2/Lib/ensurepip/__init__.py", line 27, in _run_pip
    import pip._internal
zipimport.ZipImportError: can't decompress data; zlib not available
make: *** [install] Error 1
   Exiting due to failure

==============================================
II. Creating self-contained EBCLI installation
==============================================
./bundled_installer: line 51: /Users/vampiire/.pyenv/versions/3.7.2/bin/python: No such file or directory
./bundled_installer: line 28: echo_with_indentation: command not found

any help would be greatly appreciated. i dont even want the CLI anymore, just want to uninstall / revert whatever damage it has done and use the web interface in the future.

Build Issue - symbols not found for architecture x86_64

I have seen this build issue on my macbook pro :

14:49 $ ./aws-elastic-beanstalk-cli-setup/scripts/bundled_installer 

==============================================
I. Installing Python                          
==============================================

*************************************************************
1. Determining whether pyenv is already installed and in PATH
*************************************************************
    - pyenv found in PATH. Won't clone pyenv git repository from GitHub

*******************************************
2. Temporarily export necessary pyenv paths
*******************************************

****************************************************************************
3. Checking whether Python can be downloaded (through curl, wget, or aria2c)
****************************************************************************

************************************************************
4. Installing Python 3.7.2. This step may take a few minutes
************************************************************
python-build: use openssl from homebrew
python-build: use readline from homebrew
Downloading Python-3.7.2.tar.xz...
-> https://www.python.org/ftp/python/3.7.2/Python-3.7.2.tar.xz
Installing Python-3.7.2...
python-build: use readline from homebrew
python-build: use zlib from xcode sdk

BUILD FAILED (OS X 10.14.4 using python-build 20180424)

Inspect or clean up the working tree at /var/folders/qz/vcppf4g10wvgrhn1_kkk5tkczzdkts/T/python-build.20190813144941.33110
Results logged to /var/folders/qz/vcppf4g10wvgrhn1_kkk5tkczzdkts/T/python-build.20190813144941.33110.log

Last 10 log lines:
      _dump_config in _testembed.o
  "__Py_InitializeFromConfig", referenced from:
      _test_init_from_config in _testembed.o
      _test_init_dev_mode in _testembed.o
      _test_init_isolated in _testembed.o
ld: symbol(s) not found for architecture x86_64
make: *** [python.exe] Error 1
make: *** Waiting for unfinished jobs....
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [Programs/_testembed] Error 1
   Exiting due to failure

==============================================
II. Creating self-contained EBCLI installation
==============================================
./aws-elastic-beanstalk-cli-setup/scripts/bundled_installer: line 51: /Users/cblecken/.pyenv/versions/3.7.2/bin/python: No such file or directory
./aws-elastic-beanstalk-cli-setup/scripts/bundled_installer: line 28: echo_with_indentation: command not found

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.