Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to Run AWS CLI: "ImportError: cannot import name shlex_quote"

Tags:

I'm getting the following error when I tried running AWS CLI. I've tried installing six, but it still didn't work.

Can someone advise me what's wrong?

I have never managed to run AWS CLI on this computer before.

Traceback (most recent call last):   File "/usr/local/bin/aws", line 23, in <module>     sys.exit(main())   File "/usr/local/bin/aws", line 19, in main     return awscli.clidriver.main()   File "/usr/local/lib/python3.3/site-packages/awscli/clidriver.py", line 49, in main     driver = create_clidriver()   File "/usr/local/lib/python3.3/site-packages/awscli/clidriver.py", line 58, in create_clidriver     event_hooks=emitter)   File "/usr/local/lib/python3.3/site-packages/awscli/plugin.py", line 44, in load_plugins     modules = _import_plugins(plugin_mapping)   File "/usr/local/lib/python3.3/site-packages/awscli/plugin.py", line 61, in _import_plugins     module = __import__(path, fromlist=[module])   File "/usr/local/lib/python3.3/site-packages/awscli/handlers.py", line 61, in <module>     from awscli.customizations.opsworks import initialize as opsworks_init   File "/usr/local/lib/python3.3/site-packages/awscli/customizations/opsworks.py", line 24, in <module>     from six.moves import shlex_quote ImportError: cannot import name shlex_quote 
like image 240
kev Avatar asked Dec 09 '14 09:12

kev


1 Answers

AWSCLI 1.6.7 is broken. (I am on Ubuntu 14.04.1 LTS)

sudo pip install awscli==1.6.6 
like image 190
KTR Avatar answered Oct 27 '22 01:10

KTR