aws / aws/aws-elastic-beanstalk-cli-setup
SyntaxError: invalid syntax On Running eb command.
- Dominant language
- Python
- Stars
- 537
- Forks
- 226
- PR merge metrics
- No merged PRs in 30d
Description
**1. Please specify the following:**
- OS: [Ubuntu 20.04]: ___
- Shell (Bash): ____
- [x] **I have reviewed the troubleshooting tips described [here]() and they do not solve my problem**
**2. Description**
I installed EB cli from this link using commands [https://github.com/aws/aws-elastic-beanstalk-cli-setup](url)
Whenever I run eb command it shows the error:
`Error processing line 1 of /home/$user/.ebcli-virtual-env/lib/python3.8/site-packages/distutils-precedence.pth:
Traceback (most recent call last):
File "/usr/lib/python2.7/site.py", line 158, in addpackage
exec line
File "", line 1, in
File "/home/$user/.ebcli-virtual-env/lib/python3.8/site-packages/_distutils_hack/__init__.py", line 194
f'spec_for_{name}',
^
SyntaxError: invalid syntax
`
Contributor guide
Research direction
Start by reproducing the `eb` command on Ubuntu 20.04 with Bash and inspect which Python interpreter the EB CLI virtual environment uses. The issue is done when the installation runs without Python 2.7 parsing the Python 3 package and the `eb` command starts successfully.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- aws, python
- Domain
- cli, cloud, tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100