Skip to content

Compilation Error "dbt deps" to install package dependencies #1647

@ecarranza-sh

Description

@ecarranza-sh

Hello everyone,

I am getting this error:

[2025-03-28, 15:48:15 UTC] {logging_mixin.py:188} INFO - 15:48:15 Encountered an error: Compilation Error dbt found 2 package(s) specified in packages.yml, but only 0 package(s) installed in dbt_packages. Run "dbt deps" to install package dependencies.

I am running Cosmos in Composer 2 with this setup:

  • ProjectConfig: install_dbt_deps=True
  • ProfileConfig: GoogleCloudOauthProfileMapping
  • ExecutionConfig: Local
  • RenderConfig: DBT_LS

I have tried also to previously install the dependencies first on separate task and I am also getting the same error on some Dags, sometimes after 2 retries it works, but I need it to work the first time.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:dependenciesRelated to dependencies, like Python packages, library versions, etcdbt:depsPrimarily related to dbt deps command or functionalitystaleIssue has not had recent activity or appears to be solved. Stale issues will be automatically closed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions