cuddly-butcher-39945
09/08/2022, 2:42 PMbulky-soccer-26729
09/08/2022, 7:02 PMEventEnvelope
may be causing all these problems. I took a look at the actions repo and it actually appears like you should be importing EventEnvelope
from datahub_actions.event.event_envelope
- can you try changing your imports and see if that works?bulky-soccer-26729
09/08/2022, 7:03 PMcuddly-butcher-39945
09/08/2022, 7:04 PMbulky-soccer-26729
09/08/2022, 10:03 PMModuleNotFoundError: No module named 'custom_action.custom_action'; 'custom_action' is not a package
bulky-soccer-26729
09/08/2022, 10:03 PMpip install -e .
inside the module or ran python setup.py
on your python file?bulky-soccer-26729
09/08/2022, 10:10 PMcustom_action:CustomAction
i think? Looking at these docs: https://datahubproject.io/docs/actions/guides/developing-an-action#step-2-installing-the-actioncuddly-butcher-39945
09/09/2022, 1:55 PMcuddly-butcher-39945
09/09/2022, 2:34 PM# datagovernance_intake.yaml
name: "custom_action_test"
source:
type: "kafka"
config:
connection:
bootstrap: ${KAFKA_BOOTSTRAP_SERVER:-localhost:9092}
schema_registry_url: ${SCHEMA_REGISTRY_URL:-<http://localhost:8081>}
filter:
event_type: "EntityChangeEvent_v1"
event:
category: "TAG"
operation: ["ADD","REMOVE"]
modifier: "urn:li:tag:access_request"
action:
type: "custom_action:CustomAction"
config:
# Some sample configuration which should be printed on create.
config1: value1
and my custom action is running.bulky-soccer-26729
09/09/2022, 2:35 PMcuddly-butcher-39945
09/09/2022, 2:37 PMbulky-soccer-26729
09/09/2022, 2:40 PM