We are upgrading from 13.7. Getting an error when ...
# ask-community
k
We are upgrading from 13.7. Getting an error when run flows
Error downloading Flow from S3: No module named 'boto3'
Used the
prefecthq/server:core-0.15.3
image. Is there something for extras or something we are missing?
k
Did you install with the
aws
extra?
pip install prefect[aws]
?
k
Is this suppose to be installed on the agent? @Kevin Kho
k
The agent downloads the flow so yes.
k
Okay let me try using a custom image instead of the core
@Kevin Kho Hey I have prefect[‘aws’] and boto3 installed on my agent. Still getting that same error.
k
What type of agent are you using? Local or Docker?
k
Local
Copy code
prefect agent local start --log-level DEBUG -l default -l s3-flow-storage -e ENVIRONMENT=\"$ENVIRONMENT\" -e AWS_ACCESS_KEY_ID=\"$AWS_ACCESS_KEY_ID\" -e AWS_SECRET_ACCESS_KEY=\"$AWS_SECRET_ACCESS_KEY\" -e REGION_NAME=$REGION_NAME -e AWS_DEFAULT_REGION=$AWS_DEFAULT_REGION -e PREFECT__CONTEXT__SECRETS__AWS_CREDENTIALS=\"$PREFECT__CONTEXT__SECRETS__AWS_CREDENTIALS\""
k
So does the place where you ran this from have boto3?
k
yeah
k
What is the output of
pip show boto3
?
Is boto3 installed in the same Python environment as the prefect agent?
k
Yeah using prefect core for both
Copy code
boto3==1.18.28
k
Then I guess the next question is if you’re sure the Flow is being picked up by the right agent?
k
Theres only one agent
Copy code
2021-08-24 16:40:08[2021-08-24 20:40:08,098] INFO - agent | Process PID 16 returned non-zero exit code 1!
2021-08-24 16:40:08[2021-08-24 20:40:08,098] INFO - agent | Process PID 21 returned non-zero exit code 1!
I was using prefect:server as the base image… thanks for your time @Kevin Kho
k
Oh you’re good now?