Hello Community.
I’m followed the steps listed here to install prefect-openmetadata
- Clone repo
- Make a venv
- pip install prefect-openmetadata
(OpenMetadata server is already running)
Then I tried to run a simple flow from a guide here:
https://prefecthq.github.io/prefect-openmetadata/run_ingestion_flow/
- vim ./test.py (and put code here with set JWT and connection details for postgresql)
- run python ./test.py
but it fails with
Traceback (most recent call last):
File "prefect-openmetadata/./test.py", line 1, in <module>
from prefect_openmetadata.flows import ingest_metadata
File "prefect-openmetadata/prefect_openmetadata/flows.py", line 17, in <module>
from metadata.generated.schema.api.services.ingestionPipelines.testServiceConnection import ( # noqa
ModuleNotFoundError: No module named 'metadata.generated.schema.api.services.ingestionPipelines.testServiceConnection'
Have no idea what I’m doing wrong here, becase the code fails on the 1st line during import
python --version
Python 3.9.17
pip freeze | grep openmeta
openmetadata-ingestion==1.1.0.3
openmetadata-sqllineage==1.1.0.3
prefect-openmetadata==0.2.4.1
pip freeze | grep prefect
prefect==2.10.21
prefect-openmetadata==0.2.4.1