Boto3: module 'boto3' has no attribute 'client'

Created on 11 May 2016  路  7Comments  路  Source: boto/boto3

I'm using python 3.5.1 and boto3==1.3.1

Python 3.5.1 (default, Jan 22 2016, 08:52:08) 
[GCC 4.2.1 Compatible Apple LLVM 7.0.2 (clang-700.1.81)] on darwin

This is what I get trying to run boto3

Traceback (most recent call last):
  File "test_cognito.py", line 7, in <module>
    client = boto3.client('cognito-identity')
AttributeError: module 'boto3' has no attribute 'client'

Any ideas?

Most helpful comment

Never mind. There was a file named boto3.py around with nothing inside it. Sorry my bad.

:)

Mod may delete/close

All 7 comments

Never mind. There was a file named boto3.py around with nothing inside it. Sorry my bad.

:)

Mod may delete/close

No problem, glad you were able to figure it out.

I had the same issue - because of using boto instead of boto3

I am getting same error , I am using boto3 and dont have any file with name boto3.py .

@varun4github Hi! I have also run into the same issue. Have you had any luck resolving this?

If someone using conda to setup the Python env or install boto3, Please upgrade your anaconda to the latest version.
The same problem fixed as above.

I am using latest pip to install boto3, still getting the same issue

Was this page helpful?
0 / 5 - 0 ratings

Related issues

hwine picture hwine  路  3Comments

yannbriancon picture yannbriancon  路  3Comments

rabinnh picture rabinnh  路  3Comments

arijitArusan picture arijitArusan  路  3Comments

arnonki picture arnonki  路  3Comments