Ok, hopefully my last question for ironing out our...
# prefect-aws
c
Ok, hopefully my last question for ironing out our setup, as of this morning I'm seeing the error in the thread when deploying a flow
1
Copy code
2022-11-17T12:53:34.610-06:00	Traceback (most recent call last):

2022-11-17T12:53:34.610-06:00	File "/usr/local/lib/python3.10/site-packages/prefect/agent.py", line 229, in submit_run

2022-11-17T12:53:34.610-06:00	infrastructure = await self.get_infrastructure(flow_run)

2022-11-17T12:53:34.610-06:00	File "/usr/local/lib/python3.10/site-packages/prefect/agent.py", line 218, in get_infrastructure

2022-11-17T12:53:34.610-06:00	prepared_infrastructure = infrastructure_block.prepare_for_flow_run(flow_run)

2022-11-17T12:53:34.610-06:00	File "/usr/local/lib/python3.10/site-packages/prefect_aws/ecs.py", line 485, in prepare_for_flow_run

2022-11-17T12:53:34.610-06:00	new = super().prepare_for_flow_run(flow_run, deployment=deployment, flow=flow)

2022-11-17T12:53:34.610-06:00	TypeError: Infrastructure.prepare_for_flow_run() got an unexpected keyword argument 'deployment'
running on a docker image pinned to
prefecthq/prefect:2.6.6-python3.10
base image and with
prefect-aws==0.1.8
installed
I updated the prefect-aws version to the newest today, but otherwise I don't think my infra block has changed.
z
This looks like a version mismatch, we added deployment metadata to
prepare_for_flow_run
recently
Looks like your agent is running on 2.6.7
c
hmmm not according to my agent:
Copy code
2022-11-17 12:52:27___ ___ ___ ___ ___ ___ _____ _ ___ ___ _ _ _____
2022-11-17 12:52:27| _ \ _ \ __| __| __/ __|_ _| /_\ / __| __| \| |_ _|
2022-11-17 12:52:27| _/ / _|| _|| _| (__ | | / _ \ (_ | _|| .` | | |
2022-11-17 12:52:27|_| |_|_\___|_| |___\___| |_| /_/ \_\___|___|_|\_| |_|
2022-11-17 12:52:2718:52:27.854 | DEBUG | prefect.client - Connecting to API at <https://api.prefect.cloud/api/accounts/x/workspaces/x/>
2022-11-17 12:52:27Starting v2.6.6 agent connected to
2022-11-17 12:52:27<https://api.prefect.cloud/api/accounts/xxx/work>
2022-11-17 12:52:27spaces/xxx...
z
Ohh
The deployment is being passed up from
prefect-aws
Copy code
2022-11-17T12:53:34.610-06:00	File "/usr/local/lib/python3.10/site-packages/prefect_aws/ecs.py", line 485, in prepare_for_flow_run

2022-11-17T12:53:34.610-06:00	new = super().prepare_for_flow_run(flow_run, deployment=deployment, flow=flow)
And since you’re running 2.6.6 it does not expect it
So you’ll want to upgrade the core lib or downgrade prefect-aws
👍 1
@alex We’re going to want to start actually bumping the minimum compatible core version in
prefect-aws
👍 1
c
And I moved down from 2.6.7 to 2.6.6 due to the missing traceback thing, so I'll move down for now
z
Ah, the traceback fix will be out today