Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

dbt.exceptions has no attribute DatabaseException?

Tags:

dbt

I am receiving an error for a dbt model that has never had any previous issues. The error that appears details that module dbt.exceptions has no attribute database exception?

I am on dbt-core using the dbt-sqlserver adapter, and have never encountered this error. I have tried a dbt clean -> dbt deps -> dbt run and still have not solved the issue. I only started encountering this error after I upgraded to 1.4.1 and am wondering if that may have started causing this issue to surface?

like image 369
thesaint99 Avatar asked Jul 05 '26 16:07

thesaint99


1 Answers

Looks like dbt-sqlserver hasn't released 1.4 yet, so your dbt-core version is ahead of your adapter version. You should never install dbt-core separately from your adapter, or pin a specific version of core. If you just pip install dbt-sqlserver, it will install a compatible version of dbt-core.

like image 132
tconbeer Avatar answered Jul 11 '26 13:07

tconbeer