Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Syntax Error when running any command #152

Open
yahya-uddin opened this issue Oct 4, 2023 · 3 comments
Open

Syntax Error when running any command #152

yahya-uddin opened this issue Oct 4, 2023 · 3 comments

Comments

@yahya-uddin
Copy link

1. Please specify the following:

  • OS: OSX ___
  • Shell: zsh ____

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
Copy link

eremite commented Oct 19, 2023

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
Copy link

@eremite Thanks it helped

@bolti95
Copy link

bolti95 commented Jun 3, 2024

@eremite thanks this saved me!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants