python-3.x - 通过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 时,出现上述错误。我不确定为什么会发生此错误?
任何想法?我多年来一直坚持这一点,并用尽了我的选择。谢谢你。
解决方案
推荐阅读
- pip - 获取 pip pystruct==0.3.2 在 python=3.7 下构建
- ipad - 如何使用回调 URL 将草稿内容发送到 makeslides
- python - 哪个 R /Python 包用于分段分段回归和自动断点检测
- python - 为什么我在 python 中的掷骰子模拟器中的两个函数得到不同的结果?
- c++ - 书中“右值”和“右值引用”之间的混淆
- javascript - 在 Google Apps Script Web 应用程序中动态添加 Materialize 选择输入时出错
- javascript - 在鼠标移动时发送 Ajaxt 请求
- azure - Azure cosmosDB 中的子查询和 GroupBy
- vue.js - 如何通过使用 vuetify 单击按钮来更改背景颜色?
- python - 使用 beautifulsoup 在 python 中构建 webcrawler 的警告