首页 > 解决方案 > 通过python从GCP存储桶中读取excel

问题描述

当我在 python 中执行简单的 pd.read_excel() 以从存储中读取 excel 文件时,我遇到了此错误消息。

AttributeError: 'ClientSession' object has no attribute '_connector'
at closed (/layers/google.python.pip/pip/lib/python3.8/site-packages/aiohttp/client.py:963)
at __del__ (/layers/google.python.pip/pip/lib/python3.8/site-packages/aiohttp/client.py:326)

我尝试了各种版本的 pandas 库 - 在本地运行良好,但是当我将其部署到 Google Cloud Function 时,出现上述错误。我不确定为什么会发生此错误?

任何想法?我多年来一直坚持这一点,并用尽了我的选择。谢谢你。

标签: python-3.xgoogle-cloud-platformgoogle-cloud-functions

解决方案


推荐阅读