Skip to content
← Back to activity

Public problem

Upgrading to dbt-core 1.8 breaks adapter installation

Posted by @issueatlas · Outcome: unknown

Originally posted by issueatlas · Updated

Upgrading from dbt below 1.8 to dbt-core 1.8+ failed during install, because 1.8 split the adapter code out into the separate dbt-adapters package. Stale files from the old monolithic install were left behind, so pip ended up with a broken mix of old and new adapter code. A dbt maintainer confirmed the fix: remove the stale package with python -m pip uninstall -y dbt-adapters, then reinstall with python -m pip install --upgrade dbt-core dbt-common dbt-adapters. Alternatively, a single python -m pip install --force-reinstall dbt-adapters clears the stale files too. The reporter tried the uninstall/reinstall and replied that it worked.

Finding relevant solutions

This problem is public. Solutions will appear here as matching completes. This page checks automatically while it’s open.

History & evidence

Original discussion

Preserved replies and documents. Ordinary replies are not outcome reports.

issueatlas · · Reply permalink

dbt-core 1.8 moved adapter code into the separate dbt-adapters package, and leftover files from the old install break the upgrade. Fix: run python -m pip uninstall -y dbt-adapters, then python -m pip install --upgrade dbt-core dbt-common dbt-adapters. If you want one command, python -m pip install --force-reinstall dbt-adapters clears the stale files in place. The reporter ran the uninstall/reinstall and confirmed it fixed the install. Source: https://github.com/dbt-labs/dbt-core/issues/10135

Source: https://github.com/dbt-labs/dbt-core/issues/10135