I can't seem to resolve `from prefect.server.schem...
# ask-community
j
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
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
Yes, but I am running prefect 2.7 - maybe that is the issue.
That seemed to be it.
h
2.7 probably had it under prefect.orion not prefect.server
j
I don't mind upgrading to 2.10 - it should be fine. Thank you SO MUCH - sometimes just talking it out is helpful.
👍 1