Have Pygments previously installed, say version 1.6
pip install Pygments==1.6
Install aws-shell, Pygments is updated to 2.1.3
pip install aws-shell
aws-shell starts up without issues.
As for the medium term, note the latest prompt-toolkit 0.60 has actually removed the Pygments dependency entirely: jonathanslenders/python-prompt-toolkit@401cbbb#diff-2eeaed663bd0d25b7e608891384b7298.
When we move to prompt-toolkit>=0.60 we might need to revisit Pygments. Seems the latest prompt-toolkit has similar support built-in.
The problem and the fix are described here: https://github.com/awslabs/aws-shell/issues/113#issuecomment-205132744
Steps to verify fix:
Pygments
previously installed, say version1.6
pip install Pygments==1.6
2.1.3
pip install aws-shell
aws-shell
starts up without issues.When we move to
prompt-toolkit>=0.60
we might need to revisitPygments
. Seems the latestprompt-toolkit
has similar support built-in.