Another issue while trying to ingest in another Li...
# getting-started
n
Another issue while trying to ingest in another Linux env.:
Copy code
(venv) carr@carr-VirtualBox:~/Projetos/datahub/metadata-ingestion$ datahub ingest -c ./examples/recipes/example_to_datahub_rest.yml
Traceback (most recent call last):
  File "/home/carr/Projetos/datahub/venv/bin/datahub", line 11, in <module>
    load_entry_point('datahub', 'console_scripts', 'datahub')()
  File "/home/carr/Projetos/datahub/venv/lib/python3.6/site-packages/pkg_resources/__init__.py", line 480, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/home/carr/Projetos/datahub/venv/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2693, in load_entry_point
    return ep.load()
  File "/home/carr/Projetos/datahub/venv/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2324, in load
    return self.resolve()
  File "/home/carr/Projetos/datahub/venv/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2330, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/home/carr/Projetos/datahub/metadata-ingestion/src/datahub/entrypoints.py", line 13, in <module>
    from datahub.ingestion.run.pipeline import Pipeline
  File "/home/carr/Projetos/datahub/metadata-ingestion/src/datahub/ingestion/run/pipeline.py", line 16, in <module>
    from datahub.ingestion.source import source_class_mapping
  File "/home/carr/Projetos/datahub/metadata-ingestion/src/datahub/ingestion/source/__init__.py", line 8, in <module>
    from .ldap import LDAPSource
  File "/home/carr/Projetos/datahub/metadata-ingestion/src/datahub/ingestion/source/ldap.py", line 4, in <module>
    import ldap
ModuleNotFoundError: No module named 'ldap'
m
@narrow-painting-12219: probably you need to install these additional requirements: https://github.com/linkedin/datahub/tree/master/metadata-ingestion#ldap-ldap
n
g
This PR should fix the issue 🙂 - https://github.com/linkedin/datahub/pull/2134
n
@gray-shoe-75895 merged that branch with your postgis branch and ingestion succeeded, thanks
g
Awesome! I've raised a PR for the postgis branch here https://github.com/linkedin/datahub/pull/2136
n
Didn't tested as intended yet..got stuck on frontend container, which I'm trying to remove and quickstart.sh again 😅
g
Ah yep the docker-compose stuff can be quite finicky - let me know if you need help with anything
n
Done! Removing container and running the script again did the magic Now back to the GIS stuff 😄
@gray-shoe-75895:
Copy code
(venv) carr@carr-VirtualBox:~/Projetos/datahub/metadata-ingestion$ datahub ingest -c ./examples/recipes/my_postgis_to_datahub_rest.yml 
[2021-02-23 23:56:41,621] DEBUG    {datahub.entrypoints:64} - Using config: {'source': {'type': 'postgres', 'config': {'username': 'postgres', 'password': 'adm123', 'host_port': 'localhost:5000', 'database': 'postgres'}}}
1 validation error for PipelineConfig
sink
  field required (type=value_error.missing)
oh, nvm..forgot the sink
Awesome! I see the geometric details there 😄
🎉 1
I don't see Table Comment, is it supposed to be there, alongside Columns Comments?
g
Ah we're not extracting the table comments right now - will fix that soon
👏 1
And also will be working on improving those error messages 🙂