Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

awscli getting started error

I'd already asked this on the AWS official forum on Jan-2 but not any reply. So, I m posting it here again so that I can get the error fixed.


I installed awscli as stated in this page http://docs.amazonwebservices.com/cli/latest/userguide/cli-chap-getting-started.html

And the following is the installation details:

millisami at millisami in ~/Code/face_tester on design ✹ ± which python                                                                             /usr/local/bin/python millisami at millisami in ~/Code/face_tester on design ✹ ± python --version                                                                         Python 2.7.3 millisami at millisami in ~/Code/face_tester on design ✹ ± pip install awscli --upgrade                                                             Requirement already up-to-date: awscli in /usr/local/lib/python2.7/site-packages Requirement already up-to-date: botocore>=0.4.0 in /usr/local/lib/python2.7/site-packages/botocore-0.4.1-py2.7.egg (from awscli) Requirement already up-to-date: six>=1.1.0 in /usr/local/lib/python2.7/site-packages/six-1.2.0-py2.7.egg (from awscli) Requirement already up-to-date: argparse>=1.1 in /usr/local/lib/python2.7/site-packages/argparse-1.2.1-py2.7.egg (from awscli) Requirement already up-to-date: requests>=0.12.1,<1.0.0 in /usr/local/lib/python2.7/site-packages/requests-0.14.2-py2.7.egg (from botocore>=0.4.0->awscli) Requirement already up-to-date: python-dateutil>=2.1 in /usr/local/lib/python2.7/site-packages/python_dateutil-2.1-py2.7.egg (from botocore>=0.4.0->awscli) Cleaning up... millisami at millisami in ~/Code/face_tester on design ✹ ± aws help                                                                                                                       Traceback (most recent call last):   File "/usr/local/share/python/aws", line 15, in <module>     import awscli.clidriver   File "/usr/local/lib/python2.7/site-packages/awscli/__init__.py", line 18, in <module>     import botocore.base ImportError: No module named botocore.base millisami at millisami in ~/Code/face_tester on design1 ↵ ✹ 

Since installing the pip its successful, but why that botocore is being reported no such file??

like image 668
Autodidact Avatar asked Jan 15 '13 07:01

Autodidact


People also ask

How do you check if AWS CLI is installed?

By default, the AWS CLI version 1 installs to C:\Program Files\Amazon\AWSCLI (64-bit version) or C:\Program Files (x86)\Amazon\AWSCLI (32-bit version). To confirm the installation, use the aws --version command at a command prompt (open the Start menu and search for cmd to start a command prompt).

Does AWS CLI require Python?

AWS CLI v2 provides pre-built binaries for Windows, Linux, and macOS. You no longer need to have Python installed in order to use the AWS CLI. You don't have to worry about compatible Python versions, virtual environments, or conflicting python packages.

What does AWS CLI stand for?

The AWS Command Line Interface (AWS CLI) is a unified tool to manage your AWS services. With just one tool to download and configure, you can control multiple AWS services from the command line and automate them through scripts.


2 Answers

Try this command

sudo pip install awscli --force-reinstall --upgrade 
like image 152
Vishnu Nair Avatar answered Sep 28 '22 10:09

Vishnu Nair


I've been having the same problem with similar boto dependencies. I basically ran sudo apt-get install awscli on an AWS EC2 Ubuntu instance and it was totally broken out of the box.

After scratching around for hours, the following seems to have done t'trick:

sudo pip install boto --upgrade sudo pip install boto3 --upgrade sudo pip install iso8601 sudo pip install sqlalchemy 

Typing aws on the command line after running these commands produced the expected "Usage: ..." message as opposed to a Python stacktrace.

I hope this is helpful to someone else too!

like image 23
ATG Avatar answered Sep 28 '22 11:09

ATG