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

aws-shell is not working in Amazon Linux 2 after installing #240

Open
leotoras opened this issue Apr 28, 2020 · 2 comments
Open

aws-shell is not working in Amazon Linux 2 after installing #240

leotoras opened this issue Apr 28, 2020 · 2 comments

Comments

@leotoras
Copy link

Hi, Im getting the following error after installing aws-shell in my EC2 Amazon Linux 2:

[ec2-user@tmp]$ aws-shell
First run, creating autocomplete index...
Traceback (most recent call last):
File "/home/ec2-user/.local/bin/aws-shell", line 8, in
sys.exit(main())
File "/home/ec2-user/.local/lib/python2.7/site-packages/awsshell/init.py", line 47, in main
write_index(index_file)
File "/home/ec2-user/.local/lib/python2.7/site-packages/awsshell/makeindex.py", line 69, in write_index
result = json.dumps(index)
File "/usr/lib64/python2.7/json/init.py", line 244, in dumps
return _default_encoder.encode(obj)
File "/usr/lib64/python2.7/json/encoder.py", line 207, in encode
chunks = self.iterencode(o, _one_shot=True)
File "/usr/lib64/python2.7/json/encoder.py", line 270, in iterencode
return _iterencode(o, 0)
MemoryError

Are you able to help ?

@claudioabudio
Copy link

Same here I also tried it by installing it using pip install aws-shell and got the same error message

@claudioabudio
Copy link

Actually not sure what exactly fixed it, however i have done the following on the ec2 instance:
pip3 install awscli
pip3 install awsshell

Then ran aws-shell and worked fine.

So maybe it needs to run with python3 now, but I am not sure :)

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

2 participants