Hello , I was setting up the datahub with these co...
# getting-started
s
Hello , I was setting up the datahub with these commands , and after setting up I am getting these following errors .
Copy code
python -m pip install --upgrade pip wheel setuptools
python -m pip uninstall datahub acryl-datahub || true  # sanity check - ok if it fails
python -m pip install --upgrade acryl-datahub
When I check the version datahub --version it is sending this error . Anything I am missing here ?
Copy code
RuntimeError: no validator found for <class 'datahub.ingestion.source.kafka_connect.KafkaConnectLineage'>, see `arbitrary_types_allowed` in Config
g
What version of python are you using?
Also can you post the full stack trace of the error?
s
Copy code
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.7/bin/datahub", line 5, in <module>
    from datahub.entrypoints import main
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/datahub/entrypoints.py", line 10, in <module>
    from datahub.check.check_cli import check
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/datahub/check/check_cli.py", line 9, in <module>
    from datahub.ingestion.source.source_registry import source_registry
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/datahub/ingestion/source/source_registry.py", line 5, in <module>
    source_registry.load("datahub.ingestion.source.plugins")
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/datahub/ingestion/api/registry.py", line 56, in load
    plugin_class = entry_point.load()
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/entrypoints.py", line 82, in load
    mod = import_module(self.module_name)
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/importlib/_init_.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/datahub/ingestion/source/kafka_connect.py", line 53, in <module>
    class ConnectorManifest(BaseModel):
  File "pydantic/main.py", line 252, in pydantic.main.ModelMetaclass._new_
  File "pydantic/fields.py", line 309, in pydantic.fields.ModelField.infer
  File "pydantic/fields.py", line 271, in pydantic.fields.ModelField._init_
  File "pydantic/fields.py", line 345, in pydantic.fields.ModelField.prepare
  File "pydantic/fields.py", line 439, in pydantic.fields.ModelField._type_analysis
  File "pydantic/fields.py", line 504, in pydantic.fields.ModelField._type_analysis
  File "pydantic/fields.py", line 507, in pydantic.fields.ModelField._create_sub_type
  File "pydantic/fields.py", line 271, in pydantic.fields.ModelField._init_
  File "pydantic/fields.py", line 351, in pydantic.fields.ModelField.prepare
  File "pydantic/fields.py", line 529, in pydantic.fields.ModelField.populate_validators
  File "pydantic/validators.py", line 593, in find_validators
RuntimeError: no validator found for <class 'datahub.ingestion.source.kafka_connect.KafkaConnectLineage'>, see arbitrary_types_allowed in Con
Copy code
python --version
Python 3.8.10
g
hmm so one thing that’s odd -
python --version
reports 3.8, but the paths in the traceback reference python 3.7
can you try running
python -m datahub --version
?
b
^+1
m
@some-microphone-33485: were you able to resolve this error?
s
Thank you @gray-shoe-75895 , Yes this works . Issue with the python version . thanks for the follow up @mammoth-bear-12532
🎉 2