Open mmciver opened 4 years ago
https://stackoverflow.com/a/52019820 worked for me.
Using ubuntu 18.04 , getting the listed error . The above mentioned steps has been tried out but still not working.
Also same issue for me in Ubuntu 20.04. Tried all the solutions suggested in stack overflow link, but not worked.
Can perform CLI tasking using CloudShell going forward ... (just an update)
I've managed to get it to work on Ubuntu 20.04 by uninstalling, and reinstalling from scratch with
pip install aws-shell --user
or
sudo pip install aws-shell --user
If you use the latter method, you might have to update your path to also include /root/.local/bin
since that's where the scripts are installed.
This is blocking me, and I haven't been able to find a reference to this elsewhere, or a solution. I suspect a version conflict, but even completely cleaning and reinstalling produces the same error every time.
File "/usr/lib/python3/dist-packages/awsshell/app.py", line 13, in <module> from prompt_toolkit.shortcuts import create_eventloop ImportError: cannot import name 'create_eventloop' from 'prompt_toolkit.shortcuts' (/usr/lib/python3/dist-packages/prompt_toolkit/shortcuts/__init__.py)
Even digging into the current versions of both aws-shell and prompt-toolkit, there appears to be a wildcard import in the past for the shortcuts/init.py, which was changed to an explicit list, and it no longer includes the create_eventloop that the awsshell/app.py is looking for.
Further puzzling is that on my prior system (Ubuntu 16.10) prompt-toolkit isn't even installed, and aws-shell works perfectly. Removing prompt-toolkit from the current system only moves the error to looking for it.
Possibly relevant system and versions: Pop_OS 20.10
(note, this was all also failing identically with
aws-cli/1.18.170 Python/3.8.6 Linux/5.8.0-7625-generic botocore/1.19.10
)Install -> error sequence