Troubleshooting datahub-actions Error with Version Compatibility

Original Slack Thread

Hi there,
datahub version is version: 0.12.0.5.

I was trying datahub quickstart and got a message datahub-actions is not running in datahub docker check.
I looked at the logs.

[2024-01-24 01:51:45,974] INFO {datahub_actions.entrypoints:131} - DataHub Actions version: 0.0.0.dev0 at /usr/local/lib/python3.10/site- packages/datahub_actions/__init__.py
[2024-01-24 01:51:45,977] INFO {datahub_actions.entrypoints:134} - Python version: 3.10.13 (main, Jan 17 2024, 05:40:33) [GCC 12.2.0] at /usr/ local/bin/python on Linux-6.5.13-orbstack-00121-ge428743e4e98-aarch64-with-glibc2.36
2024/01/24 01:51:46 Command exited with error: exit status 1```
Should I lower the version?

i am also having this issue with the same error message on datahub_actions and was just about to post. my version is:

DataHub CLI version: 0.12.1.4
Python version: 3.11.7 (main, Jan 1 2024, 01:29:44) [Clang 14.0.0 (clang-1400.0.29.202)]

I am also having this issue. should I downgrade the version?

I’ve downgraded Datahub CLI version: 0.12.0
It shows same error


    sys.exit(datahub_actions(standalone_mode=False, **kwargs))

File "/usr/local/lib/python3.10/site-packages/click/core.py", line 1157, in __call__

    return self.main(*args, **kwargs)

File "/usr/local/lib/python3.10/site-packages/click/core.py", line 1078, in main

    rv = self.invoke(ctx)

File "/usr/local/lib/python3.10/site-packages/click/core.py", line 1688, in invoke

    return _process_result(sub_ctx.command.invoke(sub_ctx))

File "/usr/local/lib/python3.10/site-packages/click/core.py", line 1688, in invoke

    return _process_result(sub_ctx.command.invoke(sub_ctx))

File "/usr/local/lib/python3.10/site-packages/click/core.py", line 1434, in invoke

    return ctx.invoke(self.callback, **ctx.params)

File "/usr/local/lib/python3.10/site-packages/click/core.py", line 783, in invoke

    return __callback(*args, **kwargs)

File "/usr/local/lib/python3.10/site-packages/click/decorators.py", line 33, in new_func

    return f(get_current_context(), *args, **kwargs)

File "/usr/local/lib/python3.10/site-packages/datahub_actions/cli/actions.py", line 100, in run

    pipeline_config_dict = load_config_file(pipeline_config_file)

File "/usr/local/lib/python3.10/site-packages/datahub/configuration/config_loader.py", line 160, in load_config_file

    config = resolve_env_variables(config, environ=os.environ)

File "/usr/local/lib/python3.10/site-packages/datahub/configuration/config_loader.py", line 56, in resolve_env_variables

    new_dict[k] = _resolve_element(v, environ=environ)

File "/usr/local/lib/python3.10/unittest/mock.py", line 1114, in __call__

    return self._mock_call(*args, **kwargs)

File "/usr/local/lib/python3.10/unittest/mock.py", line 1118, in _mock_call

    return self._execute_mock_call(*args, **kwargs)

File "/usr/local/lib/python3.10/unittest/mock.py", line 1179, in _execute_mock_call

    result = effect(*args, **kwargs)


TypeError: best_effort_resolve_element() got an unexpected keyword argument 'environ'

[2024-01-24 04:28:22,582] INFO     {datahub_actions.entrypoints:131} - DataHub Actions version: 0.0.0.dev0 at /usr/local/lib/python3.10/site-packages/datahub_actions/__init__.py

[2024-01-24 04:28:22,584] INFO     {datahub_actions.entrypoints:134} - Python version: 3.10.13 (main, Jan 17 2024, 05:40:33) [GCC 12.2.0] at /usr/local/bin/python on Linux-5.10.104-linuxkit-aarch64-with-glibc2.36

2024/01/24 04:28:22 Command exited with error: exit status 1```

I solved the same issue yesterday by downgrading datahub-actions version ifrom head (v0.0.14) to v0.0.13.

thanks for the workaround! rolling back the datahub-actions version worked for me too.

this seems to be a major error that could turn away those currently considering using DataHub. This is because it causes some of the basic tutorials to not work properly. It appears that a quick fix is necessary.