josh_lloyd
06/21/2021, 4:15 PMmeltano invoke dbt:run on a docker container (through dagster), but I get the following error:
dagster.core.definitions.events.Failure: Shell command execution failed with output: Executable 'dbt' could not be found. Transformer 'dbt' may not have been installed yet using `meltano install transformer dbt`, or the executable name may be incorrect.
I ran RUN meltano install in the Dockerfile during the docker build step and I can log into the container and see that .meltano/transformers/dbt/venv/ is populated with all the seemingly relevant packages.
The invoke command works when I run it from my local terminal. Also, a meltano elt … command runs just fine in the dagster docker instance except when I add the --transform=run command. It errors with the same error message when it gets to the transform step.
Relevant portion of meltano.yml file:
...
plugins:
...
transformers:
- name: dbt
pip_url: dbt==0.19.1douwe_maan
06/21/2021, 4:20 PM.meltano/transformers/dbt/bin/dbt ?josh_lloyd
06/21/2021, 4:21 PMroot@4f85690f794a:/opt/dagster/app/.meltano/transformers/dbt/venv# ls bin/
__pycache__ activate.csh chardetect jp.py keyring pip3 pybabel pyrsa-decrypt pyrsa-keygen pyrsa-sign python slugify snowflake-dump-ocsp-response snowflake-export-certs wheel
activate activate.fish dbt jsonschema pip pip3.7 pyjwt pyrsa-encrypt pyrsa-priv2pub pyrsa-verify python3 snowflake-dump-certs snowflake-dump-ocsp-response-cache sqlformatdouwe_maan
06/21/2021, 4:23 PMmeltano install transformer dbt again, and see if that fixes it and lets you run meltano invoke dbt again?josh_lloyd
06/21/2021, 4:24 PMdouwe_maan
06/21/2021, 4:25 PM@josh!josh_lloyd
06/21/2021, 4:26 PMroot@4f85690f794a:/opt/dagster/app# meltano invoke dbt
Executable 'dbt' could not be found. Transformer 'dbt' may not have been installed yet using `meltano install transformer dbt`, or the executable name may be incorrect.douwe_maan
06/21/2021, 4:26 PMmeltano --log-level=debug …douwe_maan
06/21/2021, 4:26 PMjosh_lloyd
06/21/2021, 4:28 PMdouwe_maan
06/21/2021, 4:29 PMFileNotFoundError: [Errno 2] No such file or directory: '/opt/dagster/app/transform': '/opt/dagster/app/transform'douwe_maan
06/21/2021, 4:30 PMdouwe_maan
06/21/2021, 4:30 PMdbt_project.yml live?josh_lloyd
06/21/2021, 4:31 PMdouwe_maan
06/21/2021, 4:31 PMdouwe_maan
06/21/2021, 4:31 PMjosh_lloyd
06/21/2021, 4:31 PMdouwe_maan
06/21/2021, 4:35 PMjosh_lloyd
06/21/2021, 4:40 PM