datahub-actions icon indicating copy to clipboard operation
datahub-actions copied to clipboard

Datahub actions getting failed for hello_world action, giving PipelineConfig validation error

Open vijay-jangir opened this issue 10 months ago • 1 comments

I'm trying to follow datahub-actions quick start https://datahubproject.io/docs/actions/ but when i do datahub actions -c hello_world.py i'm getting below error

[2024-04-22 22:33:35,602] INFO     {datahub_actions.cli.actions:80} - DataHub Actions version: 0.0.15
Failed to instantiate Actions Pipeline using config hello_world: 5 validation errors for PipelineConfig
filter
  Field required [type=missing, input_value={'name': 'hello_world', '...{'type': 'hello_world'}}, input_type=dict]
    For further information visit https://errors.pydantic.dev/2.7/v/missing
transform
  Field required [type=missing, input_value={'name': 'hello_world', '...{'type': 'hello_world'}}, input_type=dict]
    For further information visit https://errors.pydantic.dev/2.7/v/missing
action.config
  Field required [type=missing, input_value={'type': 'hello_world'}, input_type=dict]
    For further information visit https://errors.pydantic.dev/2.7/v/missing
datahub
  Field required [type=missing, input_value={'name': 'hello_world', '...{'type': 'hello_world'}}, input_type=dict]
    For further information visit https://errors.pydantic.dev/2.7/v/missing
options
  Field required [type=missing, input_value={'name': 'hello_world', '...{'type': 'hello_world'}}, input_type=dict]
    For further information visit https://errors.pydantic.dev/2.7/v/missing

vijay-jangir avatar Apr 22 '24 17:04 vijay-jangir

datahub version 0.13.1 datahub-actions 0.0.15

vijay-jangir avatar Apr 22 '24 17:04 vijay-jangir

Having the exact same issue here. This currently prevents us from updating to the latest version.

haeniya avatar Apr 24 '24 11:04 haeniya

Fixed by https://github.com/acryldata/datahub-actions/pull/114

hsheth2 avatar Apr 24 '24 18:04 hsheth2

@hsheth2 any timeline when this will be available in a new Datahub Actions CLI version?

haeniya avatar Apr 25 '24 06:04 haeniya

Working through some build issues so not sure when we'll release

As a temporary workaround, you can pip install 'pydantic<2' to fix this issue.

hsheth2 avatar Apr 25 '24 18:04 hsheth2