z3z1ma / dbt-osmosis

Provides automated YAML management, a dbt server, streamlit workbench, and git-integrated dbt model output diff tools
https://z3z1ma.github.io/dbt-osmosis/
Apache License 2.0
422 stars 45 forks source link

[Meltano] Utility 'dbt-osmosis' does not define any commands #69

Closed Lawiss closed 1 year ago

Lawiss commented 1 year ago

Hello,

I tried to install dbt-osmosis as a Meltano utility using the instructions from the Meltano Hub, but I get an error when trying to use a command :

> meltano invoke dbt-osmosis:run

2023-05-31T09:02:26.871121Z [info     ] Environment 'dev' is active
Need help fixing this problem? Visit http://melta.no/ for troubleshooting steps, or to
join our friendly Slack community.

Command 'run' could not be found. Utility 'dbt-osmosis' does not define any commands.

This is how I configured the utility in the meltano.yml :

- name: dbt-osmosis
   variant: z3z1ma
   pip_url: dbt-osmosis dbt-postgres
   namespace: dbt_postgres
   config:
    adapter: postgres

Environment info:

z3z1ma commented 1 year ago

I'll need to update the metadata

EDIT: nevermind

The issue is that meltano links predefined metadata from the "hub" to a users plugin via an API which is typically cached to a lock file. This linkage is based on the pip_url. So while it is necessary to define a specific dbt adapter (just like you did), it means you will need to define your own commands or run the tool directly since the two actions are not too different.

z3z1ma commented 1 year ago

https://github.com/meltano/hub/pull/1385