Toby Rahloff
02/17/2023, 9:48 AMfrom prefect.orion
import path and is therefore, unfortunately, not backwards compatible 😢Ryan Peden
02/17/2023, 12:59 PMprefect.orion
on 2.8.1, they work but display a deprecation warning:
test.py:9: DeprecationWarning: The 'prefect.orion' module has been deprecated. It will not be available after Aug 2023. Use 'prefect.server' instead.
from prefect.orion.services.loop_service import LoopService
Other things in prefect.orion
should do the same thing, but if you encounter anything that's not working, please let us know so we can investigate.Justin Trautmann
02/17/2023, 1:25 PM__init__.py
. So this means that we either need to disable these checks in our CI or refactor immediately in order to unblock our pipelines? 🤔Zanie
02/17/2023, 4:15 PMJustin Trautmann
02/17/2023, 4:24 PM"""Docstring."""
from prefect import flow
from prefect.orion.schemas.filters import FlowFilter
@flow()
def main() -> None:
"""Docstring."""
FlowFilter()
if __name__ == "__main__":
main()
pylint on this code throws no errors with Prefect 2.8.0 but reports
orion_import_flow.py:4:0: E0401: Unable to import 'prefect.orion.schemas.filters' (import-error)
orion_import_flow.py:4:0: E0611: No name 'orion' in module 'prefect' (no-name-in-module)
with Prefect 2.8.1
i'm using pylint 2.14.2Zanie
02/17/2023, 4:42 PM************* Module example
example.py:4:0: E0401: Unable to import 'prefect.orion.schemas.filters' (import-error)