quiet-television-68466
02/27/2023, 2:20 PMtransformers:
-
type: add_dataset_properties
config:
add_properties_resolver_class: 'cdp-datahub-actions.snowflake_properties:SnowflakePropertiesResolver'
and I can see that cdp-datahub-actions is installed in the datahub-actions pod using pip freeze. Despite this I’m getting the error Failed to configure transformers: No module named 'cdp-datahub-actions'. Have I installed the module in the wrong place? Any advice would be super appreciated!quiet-television-68466
02/27/2023, 2:21 PMquiet-television-68466
02/27/2023, 3:30 PMgentle-camera-33498
02/27/2023, 5:26 PMquiet-television-68466
02/27/2023, 6:28 PM-- create venv that snowflake ingestor uses and enter into that venv
RUN python3 -m venv /tmp/datahub/ingest/venv-snowflake-0.9.6
ENV PATH="/tmp/datahub/ingest/venv-snowflake-0.9.6/bin:$PATH"
-- install local modules and executor
RUN pip install .
RUN pip install 'acryl-datahub[executor]'
-- leave the venv and go back to base
ENV PATH=(OLD_PATH)
That seemed to resolve my issues, but doesn’t feel very clean. Is that what you meant?gentle-camera-33498
02/27/2023, 11:35 PMbusy-train-56443
03/01/2023, 4:11 PMbusy-train-56443
03/01/2023, 4:12 PMgentle-camera-33498
03/01/2023, 5:53 PMgentle-camera-33498
03/01/2023, 5:54 PMbusy-train-56443
03/01/2023, 5:55 PMbusy-train-56443
03/02/2023, 9:08 AMbusy-train-56443
03/02/2023, 9:09 AMaverage-cartoon-6213
10/18/2023, 4:29 PMbusy-train-56443
10/18/2023, 4:30 PMbusy-train-56443
10/18/2023, 5:37 PMtransformers:
-
type: add_dataset_properties
config:
add_properties_resolver_class: properties_transformer.add_properties_transformer.MyPropertiesResolver
so in the config basically you add python_style import of your Resolverbusy-train-56443
10/18/2023, 5:37 PMaverage-cartoon-6213
10/18/2023, 6:30 PMadd_dataset_properties transformer. We are actually trying to install a custom transformer like here. Apologies for the confusion.
In our case we are using the acryldata/datahub-actions docker image and are running UI ingestions on a schedule. We are trying to understand where in the container we have to copy our transformer code into, so that it will be installed into the venv created for the ingestion runs.busy-train-56443
10/18/2023, 6:33 PMbusy-train-56443
10/18/2023, 6:33 PMaverage-cartoon-6213
10/19/2023, 8:50 AMentry_points of the setup.py we're using to install the package. It's working now and the transformer is used during ingestion, thank you!
Nevertheless we now manually copied and installed the custom package inside the actions container after the venv in /tmp/datahub/ingest/ is created by a first (failing) ingestion run. Did you find a way to install the code from the beginning (as the venv does not exist before the first ingestion)?busy-train-56443
10/20/2023, 6:40 AM