https://prefect.io logo
Title
j

Jason Noxon

05/01/2023, 12:30 PM
I can't seem to resolve
from prefect.server.schemas.schedules import CronSchedule
. Is there an additional library that I need to install? Is that only available if I am running the server local? I'm looking to use
Deployment.build_from_flow()
to deploy to the cloud.
h

Henning Holgersen

05/01/2023, 12:43 PM
Seems strange. Works nicely here (I copy-pasted the line), I use Deployment.build_from_flow() too. I'm running with
prefect==2.10.5
. Stupid question, but have you checked that your run in the correct venv?
👍 1
j

Jason Noxon

05/01/2023, 12:44 PM
Yes, but I am running prefect 2.7 - maybe that is the issue.
That seemed to be it.
h

Henning Holgersen

05/01/2023, 12:44 PM
2.7 probably had it under prefect.orion not prefect.server
j

Jason Noxon

05/01/2023, 12:45 PM
I don't mind upgrading to 2.10 - it should be fine. Thank you SO MUCH - sometimes just talking it out is helpful.
👍 1