https://prefect.io logo
Title
a

Amanuel

05/17/2023, 3:38 PM
Hello prefect community.... I am having issue importing schedules ........ImportError: cannot import name 'schedules' from 'prefect'.... I am using prefect Version: 2.10.9
2
s

Sahil Rangwala

05/17/2023, 3:51 PM
Hello Amanuel, what is your import error? How are you importing the schedule? Were you able to install Prefect correctly?
n

Nate

05/17/2023, 3:52 PM
prefect.schedules
is not a module, you need to import from
prefect.server.schemas.schedules
like this
a

Amanuel

05/17/2023, 3:56 PM
thanks It is working now.... I was using
🙌 1
from prefect.schedules import IntervalSchedule
n

Nate

05/17/2023, 3:56 PM
🎉