aws / aws-elastic-beanstalk-cli-setup

Simplified EB CLI installation mechanism.
Apache License 2.0
519 stars 227 forks source link

Syntax Error when running any command #152

Open yahya-uddin opened 1 year ago

yahya-uddin commented 1 year ago

1. Please specify the following:

2. Description After installing the CLI, as described in the docs I get the following error when I run "any" eb command:

Traceback (most recent call last):
  File "/Users/####/.ebcli-virtual-env/executables/eb", line 41, in <module>
    execfile(activate_this, dict(__file__=activate_this))
  File "/Users/####/.ebcli-virtual-env/bin/activate_this.py", line 18
    raise AssertionError(msg) from exc
                                 ^
SyntaxError: invalid syntax
eremite commented 1 year ago

I was able to work around this on Amazon Linux by forcing eb to use python 3 by opening ~/.ebcli-virtual-env/executables/eb and changing the first line from this:

#!/usr/bin/env python

to this:

#!/usr/bin/env python3
iosmonbekov commented 9 months ago

@eremite Thanks it helped

bolti95 commented 5 months ago

@eremite thanks this saved me!