문제

Here is my simple code:

import boto.dynamodb
conn = boto.dynamodb.connect_to_region(
   'us-east-1',
   aws_access_key_id='....',
   aws_secret_access_key='....')
print conn

and I get:

Traceback (most recent call last):
  File "startMarch28.py", line 5, in <module>
    conn = boto.dynamodb.connect_to_region(
AttributeError: 'module' object has no attribute 'connect_to_region'
도움이 되었습니까?

해결책

There is no connect_to_region() function in boto.dynamodb in boto==2.2.2 version.

Upgrade the module to the latest (2.27.0) version:

pip install boto --upgrade
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top