It appears that the error you're encountering with the
prefect deployment run
command is likely due to an issue with a dependency called
typer
. The relevant issue has been documented
here on GitHub.
Here's a brief summary:
-
Issue: Some CLI commands, including
prefect deployment run
, are broken due to changes in
typer
version
0.10.0
. This can cause commands to receive
None
instead of an expected list, leading to the
TypeError: 'NoneType' object is not iterable
error.
-
Cause:
typer
released a new version changing the default behavior which Prefect's CLI wasn't expecting.
-
Solution: Downgrading
typer
to a version below
0.10.0
should resolve the issue.
bash
pip install typer<0.10.0
Alternatively, you may want to keep an eye on the issue for any updates or fixes provided by the Prefect team.