aws / aws/aws-elastic-beanstalk-cli-setup
syntax error in installation process
- Dominant language
- Python
- Stars
- 537
- Forks
- 226
- PR merge metrics
- No merged PRs in 30d
Description
**1. Please specify the following:**
- OS: [e.g. OS X, Ubuntu, Windows, etc.]: OS X 11.3.1
- Shell (Bash, PowerShell, Zsh, etc.): bash 3.2
- [X] **I have reviewed the troubleshooting tips described [here]() and they do not solve my problem**
**2. Description**
After cloning the repo and running the bundled_installer script, the script does not complete code due to syntax error. Here is the console output:
```
bash-3.2$ ./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/matt/.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
************************************************************
Downloading openssl-1.0.2k.tar.gz...
-> https://pyenv.github.io/pythons/6b3977c61f2aedf0f96367dcfb5c6e578cf37e7b8d913b4ecb6643c3cb88d8c0
Installing openssl-1.0.2k...
Installed openssl-1.0.2k to /Users/matt/.pyenv/versions/3.7.2
Downloading readline-6.3.tar.gz...
-> https://pyenv.github.io/pythons/56ba6071b9462f980c5a72ab0023893b65ba6debb4eeb475d7a563dc65cafd43
Installing readline-6.3...
BUILD FAILED (OS X 11.3.1 using python-build 20180424)
Inspect or clean up the working tree at /var/folders/_d/rmb8ssws65nch5xrj03y3qvr0000gn/T/python-build.20210505115446.92317
Results logged to /var/folders/_d/rmb8ssws65nch5xrj03y3qvr0000gn/T/python-build.20210505115446.92317.log
Last 10 log lines:
~~~~~~^~~~~~~~~~~~~
complete.c:2193:16: note: place parentheses around the assignment to silence this warning
while (entry = getpwent ())
^
( )
complete.c:2193:16: note: use '==' to turn this assignment into an equality comparison
while (entry = getpwent ())
^
==
3 warnings generated.
Exiting due to failure
bash-3.2$
```
Contributor guide
Research direction
Start with aws-elastic-beanstalk-cli-setup/scripts/bundled_installer on OS X 11.3.1 with bash 3.2, then inspect the python-build failure and the log under /var/folders/_d/rmb8ssws65nch5xrj03y3qvr0000gn/T/python-build.20210505115446.92317. Done means the bundled installer completes instead of failing while installing readline.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- bash, python
- Domain
- devops, tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100