question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Version error for package dbt-labs/dbt_utils: Could not find a satisfactory version from options

See original GitHub issue

Describe the bug

At ~ 4pm CT our scheduled dbt builds started failing with the following error: Version error for package dbt-labs/dbt_utils: Could not find a satisfactory version from options: ['>=0.7.0', '>=0.9.0', '<1.0.0', '>=0.8.0', '<0.9.0', '>=0.8.0', '<0.9.0']

I have confirmed that this error pops up with dbt version 1.0.0 (used by our pipeline) and with dbt version 1.1.1 (which I am using locally)

I’ve also tried to update our packages.yml file to include the exact syntax recommended by the dbt package hub here which generates the same class of error.

Steps to reproduce

Edit packages.yml to include the following:

packages:
  - package: "dbt-labs/dbt_utils"
    version: [">=0.7.0"]

Then run dbt deps

Note that this error seems to pop up regardless of version declaration.

Expected results

I expect dbt to install the packages specified in packages.yml

Actual results

01:14:02  Running with dbt=1.0.0
01:14:03  Encountered an error:
Version error for package dbt-labs/dbt_utils: Could not find a satisfactory version from options: ['>=0.7.0', '>=0.9.0', '<1.0.0', '>=0.8.0', '<0.9.0', '>=0.8.0', '<0.9.0']
Trying again...
01:14:13  Running with dbt=1.0.0
01:14:14  Encountered an error:
Version error for package dbt-labs/dbt_utils: Could not find a satisfactory version from options: ['>=0.7.0', '>=0.9.0', '<1.0.0', '>=0.8.0', '<0.9.0', '>=0.8.0', '<0.9.0']

System information

The contents of your packages.yml file:

packages:
  - package: "dbt-labs/dbt_utils"
    version: [">=0.7.0"]
  - package: calogica/dbt_expectations
    version: [">=0.4.0"]
  - package: calogica/dbt_date
    version: [">=0.4.0"]
  - package: dbt-labs/codegen
    version: [">=0.4.0"]
  - package: dbt-labs/audit_helper
    version: [">=0.4.0"]
  - package: fivetran/hubspot
    version: [">=0.5.0", "<0.6.0"]
  - package: fivetran/hubspot_source
    version: [">=0.5.0", "<0.6.0"]

Which database are you using dbt with?

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

The output of dbt --version:

1.0.0

Additional context

Our dbt jobs started failing around the same time as the latest release of this package: https://github.com/dbt-labs/dbt-utils/releases/tag/0.9.1

Are you interested in contributing the fix?

Happy to help in any way I can. Just tag me directly in github

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
joellabescommented, Aug 29, 2022

@sambradbury It looks like this is a consequence of the dbt_date release earlier today, which requires dbt-utils >= 0.9.0, whereas the fivetran packages have a restriction of "<0.9.0".

Honestly, I’m surprised that the package resolver didn’t just pick a slightly older version of dbt_date - you may want to open an issue against the Core repo for that?

In the meantime though, this will see you right:

packages:
  - package: "dbt-labs/dbt_utils"
    version: [">=0.7.0"]
  - package: calogica/dbt_expectations
    version: [">=0.4.0"]
  - package: calogica/dbt_date
    version: [">=0.4.0", "<0.6.0"] #changed
  - package: dbt-labs/codegen
    version: [">=0.4.0"]
  - package: dbt-labs/audit_helper
    version: [">=0.4.0"]
  - package: fivetran/hubspot
    version: [">=0.5.0", "<0.6.0"]
  - package: fivetran/hubspot_source
    version: [">=0.5.0", "<0.6.0"]

You may want to consider adding defensive upper bounds on some of your other packages as well, as I suspect you may hit a similar problem if/when dbt_expectations is bumped too.

1reaction
joellabescommented, Aug 29, 2022

Oh and while I’m sending you off to other GitHub issues @sambradbury, if we’d implemented https://github.com/dbt-labs/dbt-core/issues/4775 then I think this would have made this less painful for you. Feel free to add some more colour over there too.

For future troubleshooting, where did you find this information related to restrictions. I didn’t find anything regarding dbt-utils in each packages respective packages.yml file.

For historical compatibility reasons, the https://github.com/fivetran/dbt_fivetran_utils package doesn’t declare its dependency on dbt utils in its main branch, so it is very hidden. Here’s where it’s defined: https://github.com/fivetran/dbt_fivetran_utils/blob/v0.3.9/packages.yml (via https://github.com/fivetran/dbt_hubspot_source/blob/main/packages.yml)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Version error for package dbt-labs/dbt_utils - Help
Version error for package dbt-labs/dbt_utils: Could not find a satisfactory version from options: ['>=0.9.0', '<0.10.0', '>=0.8.0', '<0.9.0'].
Read more >
[CT-277] [Feature] Improve mismatching package errors #4775
Version error for package dbt-labs/dbt_utils: Could not find a satisfactory version from options: ['=0.7.6', '>=0.6.2', '<0.8.0', '>=0.7.0', ...
Read more >
Could Not Find statisfactory version from options when trying ...
2, and trying to update our codegen package as well. My packages YML looks like this: packages: - package: fishtown-analytics/codegen version: ...
Read more >
packages.yml refers to a deprecated version of dbt_utils - GitLab
An error occurred while fetching the assigned iteration of the selected issue.
Read more >
Patch 0.6.0.0 - Official Satisfactory Wiki - Fandom
It is the first patch of Update 6 development. The original post can be viewed on Satisfactory's official website, as well as Discord,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found