Hello Need help in testing <https://github.com/li...
# ingestion
r
Hello Need help in testing https://github.com/linkedin/datahub/blob/master/metadata-ingestion/examples/library/lineage_emitter_rest.py Here's what i have tried
Copy code
pip3 install acryl-datahub
git clone <https://github.com/linkedin/datahub.git>
git checkout tags/v0.8.17 -b datahub_v0.8.17
cd metadata-ingestion/examples/library

$ python3 lineage_emitter_rest.py
Traceback (most recent call last):
  File "lineage_emitter_rest.py", line 1, in <module>
    import datahub.emitter.mce_builder as builder
ModuleNotFoundError: No module named 'datahub'
$ datahub version
DataHub CLI version: 0.8.17.0
Python version: 3.9.2 (default, Feb 24 2021, 13:26:01)
[Clang 11.0.0 (clang-1100.0.33.17)]
b
installed acryl-datahub on a py3.8 conda environment.
Copy code
DataHub CLI version: 0.8.17.0
no problem running
Copy code
import datahub.emitter.mce_builder as builder
r
don't know what i am doing wrong
b
perhaps try install in a new python or conda environment?
e
Sorry about the late message. installing datahub cli may not give you the correct env to run the script. Can you try doing a gradlew build? specifically
./gradlew :metadata-ingestion:installDev
This will create a venv directory under metadata-ingestion
Run
source metadata-ingestion/venv/bin/activate
which will have your required libraries. There you can run
Copy code
cd metadata-ingestion/examples/library
python lineage_emitter_rest.py
r
working fine. thanks for the help.