3

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 >2023.3.0,<2024.0.0
 and s3fs (2023.3.0) depends on aiobotocore (>=2.4.2,<2.5.0), s3fs (>=2023.3.0,<2024.0.0) requires aiobotocore (>=2.4.2,<2.5.0).
And because no versions of aiobotocore match >2.4.2,<2.5.0
 and aiobotocore (2.4.2) depends on botocore (>=1.27.59,<1.27.60), s3fs (>=2023.3.0,<2024.0.0) requires botocore (>=1.27.59,<1.27.60).
And because boto3 (1.26.91) depends on botocore (>=1.29.91,<1.30.0)
 and no versions of boto3 match >1.26.91,<2.0.0, s3fs (>=2023.3.0,<2024.0.0) is incompatible with boto3 (>=1.26.91,<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.
Andrew Gaul
  • 2,296
  • 1
  • 12
  • 19
jtobelem
  • 749
  • 2
  • 6
  • 23
  • You have to select a specific version of boto3 to match the s3fs requirement which is a pain. Did you figure out which boto3 matches? I have the same error. – eljusticiero67 May 30 '23 at 21:29
  • this is the job of pip @eljusticiero67(or poetry) to find a match if possible – jtobelem Jun 01 '23 at 09:50

1 Answers1

0

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

jtobelem
  • 749
  • 2
  • 6
  • 23