Closed altso closed 3 weeks ago
Thanks for the bug report @altso!
We updated adhoc installs like this to use pip extras in https://github.com/PrefectHQ/prefect/pull/14242, but it looks like that never made it to the 2.x branch. I'll port this change over now so that this can be fixed in the next release!
Thanks. Looking forward to the next release.
Fix for this has been released in 2.20.5!
Bug summary
prefect worker start --type ecs --pool batch --install-policy if-not-present
no longer works in Prefect 2 as it tries to install the latestprefect-aws
(0.5.0) which referencesprefect>=3.0.0rc1
. All versions as of 9/4/2024.This could be easily reproduced in docker:
Version info (
prefect version
output)Additional context
A workaround that seems to work is to use
EXTRA_PIP_PACKAGES
instead of--install-policy if-not-present