amazon-dynamodb - aiobotocore dynamodb 没有属性“has_event_stream_output”
问题描述
尝试使用 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
蟒蛇 3.5
解决方案
推荐阅读
- sharepoint-online - PowerApps 表单未正确加载
- r - R:矩阵上的下标数量不正确(面板数据)
- hive - 我如何知道在 Hive 中具有相同位置的所有外部表?
- image - 我需要添加一个复选框并添加更多图像(+ 图标),通过它我可以继续在 Flutter 中添加屏幕截图,其中包含进度条
- c# - Visual Studio:打开文档并在修改时显示它
- python - 如何通过从另一个数据框中随机选择来创建数据框?
- python - 如何将 python 路径与递归 glob 模式匹配
- typescript - express res.redirect() 在登录时不起作用
- node.js - npx create-react-app myapp 生成 FETCH_ERROR
- google-cloud-sql - 无法增加 Cloud SQL 存储