09/30/2022, 6:15 PM
Is there an expectation or best practice for where flows and supporting files are supposed to be to enable deploying?
Previously all of my flows were in a custom python module that was pip installed and bulk registered via the python client api (Prefect 1.0) - but the relative/absolute pathing is throwing an exception trying to continue doing that:
File "/usr/local/lib/python3.9/site-packages/prefect/", line 573, in build_from_flow
    entry_path = Path(flow_file).absolute().relative_to(Path(".").absolute())
  File "/usr/local/lib/python3.9/", line 939, in relative_to
    raise ValueError("{!r} is not in the subpath of {!r}"
ValueError: '/usr/local/lib/python3.9/site-packages/biloxi/prefect/flows/tshark/' is not in the subpath of '/opt/prefect' OR one path is relative and the other is absolute.
Ideally I want the flows to be as close to code, and treated that way, as the entire rest of my stack, and not just a directory full of flow code disconnected from the rest.