-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
[CT-3524] Remove usage of dbt.adapters.factory in dbt/common #9334
Comments
Hi @christopherekfeldt can you share how you're installing dbt? Are you using |
@christopherekfeldt If you could share your steps to installing dbt that'd be much appreciated. I tried to reproduce this with poetry (as it appears that is what you are using to install dependencies) but haven't been able to get it to error out My steps for attempting to reproduce are as follows and was done in a clone of jaffle_shop $ python -m venv venv
$ source venv/bin/activate
$ pip install poetry
...lots of install logs...
$ deactivate && source venv/bin/activate # re-sourcing my terminal instance to recognize the fresh poetry binary
$ poetry init
...initialization logs...
$ code . # added `dbt-bigquery = "^1.8.0b2"` to my dependencies in `pyproject.toml`
$ poetry install
...more install logs...
$ deactivate && source venv/bin/activate # re-sourcing my terminal instance to recognize the fresh dbt binary
$ dbt parse
...runs without error...
$ pip freeze | grep dbt
dbt-adapters==1.0.0
dbt-bigquery==1.8.0b2
dbt-common==1.0.0
dbt-core==1.8.0b2
dbt-extractor==0.5.1
dbt-semantic-interfaces==0.5.1 |
We are using poetry, so we change the versions in pyproject.toml our setup: [tool.poetry.dependencies] [tool.poetry.dev-dependencies] [build-system] then use cli commands: poetry lock --no-update then I ran: dbt --version which evaluates to -> ModuleNotFoundError: No module named 'dbt.adapters.factory' |
To my above comment, I found that uninstalling all 6 of the dbt packages manually and reinstalling the core & adapter beta versions has worked. |
Was able to fix this via:
|
I also got caught out by this a couple of hours ago - pip --upgrade left me broken, clean and reinstall venv sorted it. Details https://tempered.works/posts/2024/05/12/dbt-18-breaks-on-update/ |
No description provided.
The text was updated successfully, but these errors were encountered: