Resolving dependencies fails on boto3 and s3fs using poetry

huangapple go评论47阅读模式
英文:

Resolving dependencies fails on boto3 and s3fs using poetry

问题

我可以使用以下命令安装boto3、s3fs和pandas:

pip install boto3 pandas s3fs

但使用poetry时会失败:

poetry add boto3 pandas s3fs

以下是错误信息:

因为没有与s3fs匹配的版本 >2023.3.0,<2024.0.0,而s3fs (2023.3.0) 依赖于aiobotocore (>=2.4.2,<2.5.0),所以s3fs (>=2023.3.0,<2024.0.0) 需要aiobotocore (>=2.4.2,<2.5.0)。
因为没有与aiobotocore匹配的版本 >2.4.2,<2.5.0,而aiobotocore (2.4.2) 依赖于botocore (>=1.27.59,<1.27.60),所以s3fs (>=2023.3.0,<2024.0.0) 需要botocore (>=1.27.59,<1.27.60)。
因为boto3 (1.26.91) 依赖于botocore (>=1.29.91,<1.30.0),而没有与boto3匹配的版本 >1.26.91,<2.0.0,所以s3fs (>=2023.3.0,<2024.0.0) 与boto3 (>=1.26.91,<2.0.0) 不兼容。
因此,由于engexploit-k8s-pod-operator-images同时依赖于boto3 (^1.26.91) 和s3fs (^2023.3.0),版本解决失败。
英文:

I can install boto3, s3fs and pandas using :

pip install boto3 pandas s3fs

But it fails with poetry :

poetry add boto3 pandas s3fs

Here is the error :

Because no versions of s3fs match &gt;2023.3.0,&lt;2024.0.0
 and s3fs (2023.3.0) depends on aiobotocore (&gt;=2.4.2,&lt;2.5.0), s3fs (&gt;=2023.3.0,&lt;2024.0.0) requires aiobotocore (&gt;=2.4.2,&lt;2.5.0).
And because no versions of aiobotocore match &gt;2.4.2,&lt;2.5.0
 and aiobotocore (2.4.2) depends on botocore (&gt;=1.27.59,&lt;1.27.60), s3fs (&gt;=2023.3.0,&lt;2024.0.0) requires botocore (&gt;=1.27.59,&lt;1.27.60).
And because boto3 (1.26.91) depends on botocore (&gt;=1.29.91,&lt;1.30.0)
 and no versions of boto3 match &gt;1.26.91,&lt;2.0.0, s3fs (&gt;=2023.3.0,&lt;2024.0.0) is incompatible with boto3 (&gt;=1.26.91,&lt;2.0.0).
So, because engexploit-k8s-pod-operator-images depends on both boto3 (^1.26.91) and s3fs (^2023.3.0), version solving failed.

答案1

得分: 0

我曾经通过pandas.read_csv方法使用s3fs。我只使用boto3解决了这个问题,就像这个答案中所述。

英文:

I was using s3fs through the pandas.read_csv method. I solved the question using only boto3, like in this answer.

huangapple
  • 本文由 发表于 2023年3月15日 17:52:53
  • 转载请务必保留本文链接:https://go.coder-hub.com/75743038.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定