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

VersionsNotCompatibleException with latest version of dbt_utils #27

Open
1 of 5 tasks
JunkMyFunk opened this issue Oct 4, 2022 · 0 comments
Open
1 of 5 tasks
Labels
bug Something isn't working

Comments

@JunkMyFunk
Copy link

Describe the bug

Version error when trying to install this package alongside latest version of dbt-labs/dbt_utils (0.9.2)

Steps to reproduce

With packages.yml

packages:
    - package: dbt-labs/dbt_utils
      version: 0.9.2
    - package: dbt-labs/stitch_utils
      version: 0.4.2

Expected results

Stitch utils package to be installed.

Actual results

Running dbt deps returns the error message:

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

Is this package actually incompatible with dbt_utils 0.9.2 or do the dependancies just need to be updated in this package's packages.yml ?

Screenshots and log output

10:48:17  Running with dbt=1.2.2
10:48:18  Encountered an error:
Version error for package dbt-labs/dbt_utils: Could not find a satisfactory version from options: ['=0.9.2', '>=0.8.0', '<0.9.0']
10:48:18  Traceback (most recent call last):
  File "/etl/dbt-redshift/lib/python3.10/site-packages/dbt/semver.py", line 381, in reduce_versions
    to_return = to_return.reduce(version_specifier.to_range())
  File "/etl/dbt-redshift/lib/python3.10/site-packages/dbt/semver.py", line 291, in reduce
    end = self._try_combine_upper_bound(self.end, other.end)
  File "/etl/dbt-redshift/lib/python3.10/site-packages/dbt/semver.py", line 281, in _try_combine_upper_bound
    return self._try_combine_upper_bound_with_exact(a, b)
  File "/etl/dbt-redshift/lib/python3.10/site-packages/dbt/semver.py", line 261, in _try_combine_upper_bound_with_exact
    raise VersionsNotCompatibleException()
dbt.exceptions.VersionsNotCompatibleException

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/etl/dbt-redshift/lib/python3.10/site-packages/dbt/deps/registry.py", line 123, in resolved
    range_ = semver.reduce_versions(*self.versions)
  File "/etl/dbt-redshift/lib/python3.10/site-packages/dbt/semver.py", line 383, in reduce_versions
    raise VersionsNotCompatibleException(
dbt.exceptions.VersionsNotCompatibleException: Could not find a satisfactory version from options: ['=0.9.2', '>=0.8.0', '<0.9.0']

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/etl/dbt-redshift/lib/python3.10/site-packages/dbt/main.py", line 129, in main
    results, succeeded = handle_and_check(args)
  File "/etl/dbt-redshift/lib/python3.10/site-packages/dbt/main.py", line 191, in handle_and_check
    task, res = run_from_args(parsed)
  File "/etl/dbt-redshift/lib/python3.10/site-packages/dbt/main.py", line 238, in run_from_args
    results = task.run()
  File "/etl/dbt-redshift/lib/python3.10/site-packages/dbt/task/deps.py", line 56, in run
    final_deps = resolve_packages(packages, self.config)
  File "/etl/dbt-redshift/lib/python3.10/site-packages/dbt/deps/resolver.py", line 131, in resolve_packages
    target = final[package].resolved().fetch_metadata(config, renderer)
  File "/etl/dbt-redshift/lib/python3.10/site-packages/dbt/deps/registry.py", line 126, in resolved
    raise DependencyException(new_msg) from e
dbt.exceptions.DependencyException: Version error for package dbt-labs/dbt_utils: Could not find a satisfactory version from options: ['=0.9.2', '>=0.8.0', '<0.9.0']

System information

packages:
    - package: dbt-labs/dbt_utils
      version: 0.9.2
    - package: dbt-labs/stitch_utils
      version: 0.4.2

Which database are you using dbt with?

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

The output of dbt --version:

Core:
  - installed: 1.2.2
  - latest:    1.2.2 - Up to date!

Plugins:
  - redshift: 1.2.1 - Up to date!
  - postgres: 1.2.2 - Up to date!

The operating system you're using:
Macos 12.6

The output of python --version:
Python 3.10.7

Are you interested in contributing the fix?

Sure, but I wouldn't know where to start

@JunkMyFunk JunkMyFunk added the bug Something isn't working label Oct 4, 2022
@davidwitk davidwitk mentioned this issue Oct 11, 2022
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant