python - s3fs 突然停止在 Google Colab 中工作,错误为 "AttributeError: module ' aiobotocore' 没有属性 'AioSession'”

标签 python google-colaboratory botocore python-s3fs

关闭。这个问题不满足Stack Overflow guidelines .它目前不接受答案。












想改善这个问题吗?更新问题,使其成为 on-topic对于堆栈溢出。

上个月关闭。




Improve this question




昨天,Google Colab 中的以下单元格序列将起作用。
enter image description here
(我使用 colab-env 从 Google Drive 导入环境变量。)
今天早上,当我运行相同的代码时,出现以下错误。
enter image description here
这似乎是 s3fs 和 aiobotocore 的新问题。我对 Google Colab 和库版本依赖性问题有一些经验,我以前通过按特定顺序升级库来解决这些问题:

!pip install --upgrade library_name
但是今天早上我有点被这个问题困住了。它影响了我所有的 Google Colab 笔记本,所以我认为它可能会影响其他使用存储在 Amazon AWS S3 和 Google Colab 中的数据的人。
安装的 s3fs 版本是 2021.07.0,似乎是最新的。
enter image description here

最佳答案

事实上,问题在于 aiobotocore 1.4.0(今天,2021 年 8 月 20 日)的发布,该版本也在今天的 s3fs 2021.08.0 版本中得到修复。

关于python - s3fs 突然停止在 Google Colab 中工作,错误为 "AttributeError: module ' aiobotocore' 没有属性 'AioSession'”,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/68864939/

相关文章:

python - 如何从模型中获取加扰的图像文件名以查看django

python - map pandas 内的 Lambda 函数

python - 在 Google Colab 中使用 plotly 绘制超过 600 万行的数据集

python - 使用 Google Colab 的 TensorFlow 1 中的 TensorBoard

Python,写东西到json

python - ModuleNotFoundError : No module named 'libtorrent'

boto3 - 博托斯塔伯 SQS

python - 从 boto3 生成 AWS HTTP 签名

aws-cloudformation - 在 userdata 脚本中使用 boto3 时出现 MissingServiceIdError

python - 如何将多个 python 日期时间实例格式化为简单格式?