1 Risposta
- Più recenti
- Maggior numero di voti
- Maggior numero di commenti
0
Hello.
What if you run the command below to update botocore to the latest version?
https://docs.aws.amazon.com/efs/latest/ug/install-botocore.html
sudo pip3 install botocore --upgrade
Also, since neither pandas nor s3fs are included in the Lambda package, you need to create a layer using the steps in the document below.
mkdir python
pip3 install pandas -t ./python/
pip3 install s3fs -t ./python/
zip -r lambda_layer.zip python/
aws lambda publish-layer-version --layer-name "lambda_layer_name" --zip-file fileb://lambda_layer.zip --compatible-runtimes python3.11
Contenuto pertinente
- AWS UFFICIALEAggiornata 7 mesi fa
import json import boto3 import pandas as pd
def lambda_handler(event, context):
I have already run below commands: pip3 install s3fs pip3 install fs_s3fs however I got this error while running above commnd - awscli 1.29.60 requires botocore==1.31.60, but you have botocore 1.31.17 which is incompatible. boto3 1.28.60 requires botocore<1.32.0,>=1.31.60, but you have botocore 1.31.17 which is incompatible.