Heads up! You may run into a `PydanticUserError` i...
# pacc-jan-28-29-2025
b
Heads up! You may run into a
PydanticUserError
if you attempt to run the run-deployment.py file as-is when using Prefect version
3.1.14
. You can correct this by wrapping it in a flow, like so:
Copy code
from prefect import flow
from prefect.deployments import run_deployment

@flow
def run_deployment_flow():
    run_deployment(
        name="fetch-weather/push-weather", parameters={"lat": 1, "lon": 2}
    )

if __name__ == "__main__":
    run_deployment_flow()
👍 2