Hi all, we are now experimenting with using datahu...
# troubleshoot
m
Hi all, we are now experimenting with using datahub-actions propagating updates into an internal Teams chanel, but are facing some issues. We are over on version 0.10.2.3, deployed over with quickstart using most up to date (due to SSO integration adapted) compose yml file. We followed the guidline as following for the prerequisites: We run:
Copy code
python3 -m pip install --upgrade pip wheel setuptools
python3 -m pip install --upgrade acryl-datahub
datahub --version
Output:
Copy code
acryl-datahub, version 0.10.2.3
Followed up by:
Copy code
python3 -m pip install --upgrade pip wheel setuptools
python3 -m pip install --upgrade acryl-datahub-actions
datahub actions version
Output:
Copy code
DataHub Actions version: 0.0.12
Python version: 3.9.10 (main, Feb  9 2022, 00:00:00)
[GCC 11.2.1 20220127 (Red Hat 11.2.1-9)]
We setup environment variables and restarted:
Copy code
export DATAHUB_ACTIONS_TEAMS_ENABLED=true
export DATAHUB_ACTIONS_TEAMS_WEBHOOK_URL=<our webhook url>

datahub docker quickstart --stop && datahub docker quickstart
We setup a action-config yaml file for Teams as with the structure from the official setup page And tried to run:
Copy code
datahub actions -c teams-action.yml
but getting the following error:
Copy code
[2023-05-15 13:32:08,288] INFO     {datahub_actions.cli.actions:76} - DataHub Actions version: 0.0.12
[2023-05-15 13:32:08,367] ERROR    {datahub.entrypoints:195} - Command failed: Failed to instantiate Actions Pipeline using config datahub_teams_action: Caught exception while attempting to instantiate Action with type teams.
Traceback (most recent call last):
  File "/home/eamadm/.local/lib/python3.9/site-packages/datahub/ingestion/api/registry.py", line 117, in _ensure_not_lazy
    plugin_class = import_path(path)
  File "/home/eamadm/.local/lib/python3.9/site-packages/datahub/ingestion/api/registry.py", line 48, in import_path
    item = importlib.import_module(module_name)
  File "/usr/lib64/python3.9/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 850, in exec_module
  File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
  File "/home/eamadm/.local/lib/python3.9/site-packages/datahub_actions/plugin/action/teams/teams.py", line 18, in <module>
    import pymsteams
ModuleNotFoundError: No module named 'pymsteams'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/eamadm/.local/lib/python3.9/site-packages/datahub_actions/pipeline/pipeline_util.py", line 130, in create_action
    action_class = action_registry.get(action_type)
  File "/home/eamadm/.local/lib/python3.9/site-packages/datahub/ingestion/api/registry.py", line 175, in get
    raise ConfigurationError(
datahub.configuration.common.ConfigurationError: teams is disabled; try running: pip install 'acryl-datahub[teams]'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/eamadm/.local/lib/python3.9/site-packages/datahub_actions/cli/actions.py", line 50, in pipeline_config_to_pipeline
...
When trying to execute pip install 'acryl-datahub[teams]', as indicated within the log, we get a following output containing a statement:
Copy code
WARNING: acryl-datahub 0.10.2.3 does not provide the extra 'teams'
and a full list or requirements already satisfied:
Copy code
Requirement already satisfied: mixpanel>=4.9.0 in /home/eamadm/.local/lib/python3.9/site-packages (from acryl-datahub[teams]) (4.10.0)
Requirement already satisfied: avro-gen3==0.7.10 in /home/eamadm/.local/lib/python3.9/site-packages (from acryl-datahub[teams]) (0.7.10)
Requirement already satisfied: ratelimiter in /home/eamadm/.local/lib/python3.9/site-packages (from acryl-datahub[teams]) (1.2.0.post0)
Requirement already satisfied: avro<1.11,>=1.10.2 in /home/eamadm/.local/lib/python3.9/site-packages (from acryl-datahub[teams]) (1.10.2)
Requirement already satisfied: cached-property in /home/eamadm/.local/lib/python3.9/site-packages (from acryl-datahub[teams]) (1.5.2)
Requirement already satisfied: mypy-extensions>=0.4.3 in /home/eamadm/.local/lib/python3.9/site-packages (from acryl-datahub[teams]) (0.4.3)
Requirement already satisfied: python-dateutil>=2.8.0 in /home/eamadm/.local/lib/python3.9/site-packages (from acryl-datahub[teams]) (2.8.2)
Requirement already satisfied: click-default-group in /home/eamadm/.local/lib/python3.9/site-packages (from acryl-datahub[teams]) (1.2.2)
...
Thanks for any advise or pointing into a correct direction !
πŸ“– 1
βœ… 1
πŸ” 1
l
Hey there πŸ‘‹ I'm The DataHub Community Support bot. I'm here to help make sure the community can best support you with your request. Let's double check a few things first: βœ… There's a lot of good information on our docs site: www.datahubproject.io/docs, Have you searched there for a solution? βœ… button βœ… It's not uncommon that someone has run into your exact problem before in the community. Have you searched Slack for similar issues? βœ… button Did you find a solution to your issue? ❌ Sorry you weren't able to find a solution. I'm sending you some tips on info you can provide to help the community troubleshoot. Whenever you feel your issue is solved, please react βœ… to your original message to let us know!
g
Hi @millions-solstice-5820 Please run below command and try again
python3 -m pip install pymsteams
it resolved my issue
m
This did the thing, thanks a lot !
g
For what it’s worth, you actually needed
pip install acryl-datahub-actions[teams]