Hello! I'm trying to install datahub library local...
# troubleshoot
e
Hello! I'm trying to install datahub library locally ( pip install -e . ), it runs successfully, but when I run tests, getting next error
Copy code
from datahub.metadata.schema_classes import (
E   ModuleNotFoundError: No module named 'datahub.metadata'
Also, I tried to build a whl package and run, but getting the same error. If I install with ( pip install acryl-datahub==0.8.41 ), tests run without that error, but in that case it wouldn't see my local changes. Is there any solutions for that?
h
Hey @echoing-farmer-38304 This guide https://datahubproject.io/docs/metadata-ingestion/developing/#getting-started should help you for working with in datahub locally.
e
thanks, I tried this code block doesn't works for me
Copy code
# Follow standard install from source procedure - see above.

# Install, including all dev requirements.
pip install -e '.[dev]'

# For running integration tests, you can use 
pip install -e '.[integration-tests]'

# Run unit tests.
pytest -m 'not integration and not slow_integration'

# Run Docker-based integration tests.
pytest -m 'integration'

# Run Docker-based slow integration tests.
pytest -m 'slow_integration'
but this one helped
Copy code
cd metadata-ingestion
../gradlew :metadata-ingestion:installDev
source venv/bin/activate
datahub version  # should print "version: unavailable (installed via git)"
h
yes, installDev setup is required for testing.