Robert K
Robert K

Reputation: 25

dbt_deps No packages were found in packages.yml

I am trying to configure dbt_utils for dbt with github. I have the following in my packages.yml file:

packages:
  - package: dbt-labs/dbt_utils   
    version: 0.8.0

https://github.com/actonmarketing/actondata/blob/main/packages.yml

And I have removed packages from my gitignore file.

When I run dbt deps I get a message saying no packages found in packages.yml.

What am I doing wrong?

Upvotes: 0

Views: 5803

Answers (3)

Godwinh19
Godwinh19

Reputation: 86

Solution at https://stackoverflow.com/a/77195899/13908082:

You have to change the packages-install-path.

Example: packages-install-path: ../packages

NB: Note the '../' at start !

Upvotes: 0

KanDan
KanDan

Reputation: 51

You might just need to save your packages.yml file

Upvotes: 0

nick_the_dick
nick_the_dick

Reputation: 11

packages.yml needs to be at the same hierarchy level as dbt_project.yml

moving packages.yml from project_name/dbt_packages/packages.yml to project_name/packages.yml worked for me.

--

If you want it to live in a subdirectory, see the dbt docs here :

https://docs.getdbt.com/docs/building-a-dbt-project/package-management#project-subdirectories

Upvotes: 1

Related Questions