-
Notifications
You must be signed in to change notification settings - Fork 778
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
Fresh installation result in prompt-toolkit ImportError #254
Comments
https://stackoverflow.com/a/52019820 worked for me. |
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
or
If you use the latter method, you might have to update your path to also include |
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
The text was updated successfully, but these errors were encountered: