aiobotocore dynamodb没有属性' has_event_stream_output'

时间:2018-06-19 10:04:42

标签: amazon-dynamodb python-asyncio

尝试使用asyncio在dynamodb上做一些工作, 我的所有操作都会返回错误:

AttributeError: 'OperationModel' object has no attribute 'has_event_stream_output'

这是aiobotocore / endpoint.py的水平 示例代码(只需调用list_tables即可使其更简单):

import asyncio
import aiobotocore


async def main(loop):
    session = aiobotocore.get_session(loop=loop)
    table_name = 'testTable'
    async with session.create_client('dynamodb') as client:
        response = await client.describe_table(TableName=table_name)
        print(response)

asyncio.set_event_loop(asyncio.new_event_loop())
loop = asyncio.get_event_loop()
loop.run_until_complete(main(loop))

aiobotocore 0.9.2
python 3.5

0 个答案:

没有答案