millions-solstice-5820
05/15/2023, 11:54 AMpython3 -m pip install --upgrade pip wheel setuptools
python3 -m pip install --upgrade acryl-datahub
datahub --version
Output:
acryl-datahub, version 0.10.2.3
Followed up by:
python3 -m pip install --upgrade pip wheel setuptools
python3 -m pip install --upgrade acryl-datahub-actions
datahub actions version
Output:
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:
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:
datahub actions -c teams-action.yml
but getting the following error:
[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:
WARNING: acryl-datahub 0.10.2.3 does not provide the extra 'teams'
and a full list or requirements already satisfied:
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 !lively-cat-88289
05/15/2023, 11:54 AMgentle-hamburger-31302
05/16/2023, 1:38 PMpython3 -m pip install pymsteams
gentle-hamburger-31302
05/16/2023, 1:38 PMmillions-solstice-5820
05/16/2023, 3:27 PMgray-shoe-75895
05/16/2023, 7:00 PMpip install acryl-datahub-actions[teams]