ciaran
03/26/2021, 11:48 AMdask-cloudprovider[aws]==2021.3.0 when I have prefect[aws]==0.14.13 installed. It seems they have different requirements for botocore:
There are incompatible versions in the resolved dependencies:
botocore<1.19.53,>=1.19.52 (from aiobotocore==1.2.2->dask-cloudprovider[aws]==2021.3.0->-r /var/folders/kf/93zlmdv15vz6sjhr2xd0j7y40000gn/T/pipenv_bvj4rpkrequirements/pipenv-1_o8bqwg-constraints.txt (line 6))
botocore<1.21.0,>=1.20.38 (from boto3==1.17.38->prefect[aws]==0.14.13->-r /var/folders/kf/93zlmdv15vz6sjhr2xd0j7y40000gn/T/pipenv_bvj4rpkrequirements/pipenv-1_o8bqwg-constraints.txt (line 5))
Is there a specific version of dask-cloudprovider that prefect works with?ciaran
03/26/2021, 1:40 PMdask-cloudprovider I'm unable to use https://docs.prefect.io/orchestration/flow_config/executors.html#using-a-temporary-clusterciaran
03/26/2021, 2:22 PMprefect, dask, distributed ) does not mention dask-cloudprovider eitherJim Crist-Harif
03/26/2021, 2:23 PMJim Crist-Harif
03/26/2021, 2:24 PMaiobotocore is pinning botocore to a single release, which doesn't work with boto3's pinnings (see https://github.com/aio-libs/aiobotocore/issues/855). For now if you disable the new pip resolver to ignore these issues you can install things together.Jim Crist-Harif
03/26/2021, 2:24 PMciaran
03/26/2021, 2:24 PMpipenv so not sure how that plays with thingsciaran
03/26/2021, 2:25 PMdask and distributed when https://docs.prefect.io/orchestration/flow_config/executors.html#using-a-temporary-cluster is explicitly using dask-cloudprovider so I think it probably should be listedJim Crist-Harif
03/26/2021, 2:26 PMJim Crist-Harif
03/26/2021, 2:26 PMJim Crist-Harif
03/26/2021, 2:38 PMJim Crist-Harif
03/26/2021, 2:39 PMboto3=1.16.52 might work for you.ciaran
03/26/2021, 2:40 PMciaran
03/26/2021, 2:41 PMpipenv tried almost every version of botocoreciaran
03/26/2021, 2:41 PMJim Crist-Harif
03/26/2021, 2:41 PMJim Crist-Harif
03/26/2021, 2:43 PMciaran
03/26/2021, 2:50 PMboto3 version seems to work. How did you get to that? I'd love to be able to figure that out for the next time pipenv bites me in the backside 🤣
In terms of the issue (without pinning boto3) is this something to raise in aiobotocore? To bump their botocore version?Jim Crist-Harif
03/26/2021, 2:58 PMaiobotocore pins to and the latest version (which no dependency pins to, but pip was using). Looking at the aiobotocore setup.py, you can see their pinning for botocore, but they also have an optional dep on boto3 (which I assumed was compatible). https://github.com/aio-libs/aiobotocore/blob/master/setup.py#L23Jim Crist-Harif
03/26/2021, 2:59 PMciaran
03/26/2021, 3:00 PMciaran
03/26/2021, 3:06 PMAn error occurred (InvalidParameterException) when calling the RunTask operation: Task definition does not support launch_type FARGATE.Jim Crist-Harif
03/26/2021, 3:09 PMJim Crist-Harif
03/26/2021, 3:09 PMciaran
03/26/2021, 3:10 PMciaran
03/26/2021, 3:11 PMJim Crist-Harif
03/26/2021, 3:12 PMaws ecs describe-clusters --clusters <YOUR-CLUSTER-NAME>ciaran
03/26/2021, 3:12 PMciaran
03/26/2021, 3:14 PMJim Crist-Harif
03/26/2021, 3:15 PMJim Crist-Harif
03/26/2021, 3:15 PMFARGATE to your capacity providers things should work. If you create an ECS cluster using the AWS console this is added automatically for you (this difference has caused issues).ciaran
03/26/2021, 3:16 PMciaran
03/26/2021, 3:16 PMciaran
03/26/2021, 3:16 PMciaran
03/26/2021, 3:17 PMJim Crist-Harif
03/26/2021, 3:17 PMciaran
03/26/2021, 3:17 PMJim Crist-Harif
03/26/2021, 3:18 PMciaran
03/26/2021, 3:18 PMJim Crist-Harif
03/26/2021, 3:18 PMJim Crist-Harif
03/26/2021, 3:19 PMFargateCluster from being started then that makes sense.ciaran
03/26/2021, 3:19 PMJim Crist-Harif
03/26/2021, 3:19 PMJim Crist-Harif
03/26/2021, 3:20 PMciaran
03/26/2021, 3:20 PMJim Crist-Harif
03/26/2021, 3:20 PMciaran
03/26/2021, 3:20 PMJim Crist-Harif
03/26/2021, 3:20 PMJim Crist-Harif
03/26/2021, 3:20 PMciaran
03/26/2021, 3:20 PMciaran
03/26/2021, 3:20 PMciaran
03/26/2021, 3:21 PMciaran
03/26/2021, 3:21 PMJim Crist-Harif
03/26/2021, 3:22 PMciaran
03/26/2021, 3:22 PMciaran
03/26/2021, 3:22 PMciaran
03/26/2021, 3:23 PMboto3 and dask-cloudprovider it ran fineJim Crist-Harif
03/26/2021, 3:24 PMJim Crist-Harif
03/26/2021, 3:25 PMciaran
03/26/2021, 3:25 PMciaran
03/26/2021, 3:28 PMboto3==1.16.52
botocore==1.19.52
Before (without an executor specified and without using dask):
boto3==1.17.38
botocore==1.20.38Jim Crist-Harif
03/26/2021, 3:30 PMciaran
03/26/2021, 3:31 PMciaran
03/26/2021, 3:36 PMJim Crist-Harif
03/26/2021, 3:37 PMciaran
03/26/2021, 3:37 PMciaran
03/26/2021, 3:47 PMciaran
03/26/2021, 3:52 PMPREFECT_IMAGE is just pointing to an ECR image built with:
FROM prefecthq/prefect:0.14.13-python3.8
ENTRYPOINT [ "prefect", "agent", "ecs", "start", "--agent-address", "http://:8080"]ciaran
03/26/2021, 3:53 PMciaran
03/26/2021, 4:00 PMciaran
03/26/2021, 4:01 PMimage="prefecthq/prefect:0.14.13-python3.8" in ECSRun -ciaran
03/26/2021, 4:01 PMJim Crist-Harif
03/26/2021, 4:04 PMJim Crist-Harif
03/26/2021, 4:05 PMciaran
03/26/2021, 4:07 PMprefecthq/prefect:0.14.13-python3.8 as all I'm doing currently extra in the Dockerfile is adding an entrypointciaran
03/26/2021, 4:17 PMciaran
03/26/2021, 4:17 PMprefecthq/prefect:0.14.13-python3.8 imageciaran
03/26/2021, 4:18 PMJim Crist-Harif
03/26/2021, 4:20 PMJim Crist-Harif
03/26/2021, 4:20 PMciaran
03/26/2021, 4:25 PM