Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version Conflict with DBT_Utils #840

Closed
1 of 5 tasks
edwrand opened this issue Sep 26, 2023 · 7 comments
Closed
1 of 5 tasks

Version Conflict with DBT_Utils #840

edwrand opened this issue Sep 26, 2023 · 7 comments
Labels
bug Something isn't working triage

Comments

@edwrand
Copy link

edwrand commented Sep 26, 2023

Describe the bug

My packages.yml is as follows and runs correctly when using dbt deps:

packages:
  - package: dbt-labs/audit_helper
    version: 0.5.0

  - package: dbt-labs/codegen
    version: 0.7.0

  - package: Snowflake-Labs/dbt_constraints
    version: [">=0.3.0", "<0.4.0"]
    
  - package: calogica/dbt_date
    version: [">=0.5.0", "<0.6.0"]

  - package: calogica/dbt_expectations
    version: [">=0.5.0", "<0.6.0"]

  - package: dbt-labs/spark_utils
    version: [">=0.3.0", "<0.4.0"]

  - package: data-mie/dbt_profiler
    version: [">=0.3.2", "<0.4.0"]

  - package: re-data/re_data
    version: [">=0.8.0", "<0.9.0"]

  - package: dbt-labs/dbt_utils
    version: [">=0.7.0", "<1.1.1"]

The above packages.yml updates the packages just fine with no issues.

Next, I want to add DBT_project_evlauator so I add the code below at the end of packages.yml similar to adding any other package.

 - package: dbt-labs/dbt_project_evaluator
    version: 0.8.0

Steps to reproduce

Put the same packages in your packages.yml and run DBT deps to reproduce.

Expected results

I expected 'DBT deps' to run successfully and install dbt_project_evaluator.

Actual results

I get an error that says

DependencyException Version error for package dbt-labs/dbt_utils: Could not find a satisfactory version from options: ['>=0.7.0', '<1.1.1', '>=0.8.0', '<0.9.0', '>=0.8.0', '<0.9.0', '>=0.8.0', '<0.9.0', '>=0.7.0', '<0.9.0', '>=1.0.0', '<2.0.0'] DependencyException

Screenshots and log output

If applicable, add screenshots or log output to help explain your problem.

Runs successfully without the added package

Screenshot 2023-09-26 at 3 56 42 PM

Breaks with this error message when I add the dbt_project_evaluator package:

Screenshot 2023-09-26 at 3 57 46 PM

System information

The contents of your packages.yml file:

packages:
  - package: dbt-labs/audit_helper
    version: 0.5.0

  - package: dbt-labs/codegen
    version: 0.7.0

  - package: Snowflake-Labs/dbt_constraints
    version: [">=0.3.0", "<0.4.0"]
    
  - package: calogica/dbt_date
    version: [">=0.5.0", "<0.6.0"]

  - package: calogica/dbt_expectations
    version: [">=0.5.0", "<0.6.0"]

  - package: dbt-labs/spark_utils
    version: [">=0.3.0", "<0.4.0"]

  - package: data-mie/dbt_profiler
    version: [">=0.3.2", "<0.4.0"]

  - package: re-data/re_data
    version: [">=0.8.0", "<0.9.0"]

  - package: dbt-labs/dbt_utils
    version: [">=0.7.0", "<1.1.1"]

  - package: dbt-labs/dbt_project_evaluator
    version: 0.8.0

Which database are you using dbt with?

  • postgres
  • redshift
  • bigquery
  • snowflake
  • other (specify: ____________)

The output of dbt --version:

Screenshot 2023-09-26 at 4 00 49 PM

Additional context

Are you interested in contributing the fix?

@edwrand edwrand added bug Something isn't working triage labels Sep 26, 2023
@edwrand
Copy link
Author

edwrand commented Sep 27, 2023

I am using DBT cloud for context. When I run DBT --version I get a weird error that I asusme is because I do not have a local instance of DBT, but connect through a OneLogin.

@bfockler
Copy link

@edwrand You need to update your other packages to match dbt_project_evaluator's requirement of dbt_utils >=1.0.0 or use an older version of dbt_project_evaluator, the error shows you have 4 packages that require <0.9.0 which conflicts with it

@edwrand
Copy link
Author

edwrand commented Sep 28, 2023

@bfockler Is there somewhere in dbt_project_evaluator docs that shows the required versions for dependent packages? Was not able to find that information

@bfockler
Copy link

@edwrand The packages.yml file in each package's repo has the list of dependancies

@edwrand
Copy link
Author

edwrand commented Sep 29, 2023

Thank you @bfockler , I appreciate the help!

@dataders
Copy link
Contributor

dataders commented Oct 9, 2023

@edwrand it sounds like your issue is solved. For posterity, you should post the version of pacakges.yml that solved the issue. In the meantime, I'm going to close this issue as solved. Let me know though if you think it should be re-opened

@dataders dataders closed this as completed Oct 9, 2023
@edwrand
Copy link
Author

edwrand commented Nov 2, 2023

@edwrand it sounds like your issue is solved. For posterity, you should post the version of pacakges.yml that solved the issue. In the meantime, I'm going to close this issue as solved. Let me know though if you think it should be re-opened

The issue was solved because I realized the issue was with our DBT core version (v1.1). The package I was attempting to add requires a newer version (something closer to v1.6).

I apologize for the lack of context, had I supplied my DBT version this would have been resolved quickly. I am a newer developer and still learning lol. Thank you for the help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage
Projects
None yet
Development

No branches or pull requests

3 participants