Hi, all! Trying to use CronSchedule from the prefe...
# ask-community
j
Hi, all! Trying to use CronSchedule from the prefect.server.schemas.schedules library, but get this on deploy: ERROR: Could not find a version that satisfies the requirement prefect.server (from versions: none)
v
Hey Jason. try using
Copy code
from prefect.schedules import CronSchedule
cron_schedule = CronSchedule("0 12 * * *")
j
Thanks!
Unfortunately, it doesn't recognize that either.
@Vivek Madenur has the above worked for you?
v
not yet, I am still trying to set up everything
f
Also trying to use CronSchedule, as from the doc example here , trying to import from
prefect.server.schemas.schedules
, but keep getting the error:
ModuleNotFoundError("No module named 'prefect.server'")
same error trying to import from `prefect.schedules`:
ModuleNotFoundError("No module named 'prefect.schedules'")
this one worked for me:
from prefect.orion.schemas.schedules import CronSchedule