2

I installed boto3 library from AWS SDK but when I try to import in python interpreter, I get error. Here is the traceback:

import boto3 Traceback (most recent call last): File "", line 1, in File "/home/rahul/rahul/boto3/boto3/init.py", line 16, in from boto3.session import Session File "/home/rahul/rahul/boto3/boto3/session.py", line 17, in import botocore.session ImportError: No module named 'botocore'

Can you please help me fix this issue?

Rahul Sharma
  • 29
  • 1
  • 2

1 Answers1

0

Apparently you have installed boto3 but not botocore

botocore is the basis of boto3 but is lower level

See https://pypi.python.org/pypi/botocore

Vorsprung
  • 32,923
  • 5
  • 39
  • 63
  • Actually, I was trying to run in Python 3.4 but I figured out it was giving error in Python 3.4 but not in python 2.7 so it might be a compatibility issue. – Rahul Sharma Jul 21 '16 at 11:39