Git Product home page Git Product logo

Comments (9)

Arnellluke avatar Arnellluke commented on June 12, 2024 3

To my above comment, I found that uninstalling all 6 of the dbt packages manually and reinstalling the core & adapter beta versions has worked.
To note, the resultant versions of adapters, common, extractor, semantic-interfaces were still the same versions in fresh & upgraded install cases.

from dbt-core.

benedikt-buchert avatar benedikt-buchert commented on June 12, 2024 2

Was able to fix this via:

pip uninstall dbt-adapters
pip install dbt-adapters==1.1.1

from dbt-core.

christopherekfeldt avatar christopherekfeldt commented on June 12, 2024

When trying out:
dbt-core v1.8.0b1
dbt-bigquery v1.8.0b1
or
dbt-core v1.8.0b2
dbt-bigquery v1.8.0b2

when i try to run a dbt command after installation in poetry I get this:
image

Have I missed something, or is it a bug?

from dbt-core.

graciegoheen avatar graciegoheen commented on June 12, 2024

Hi @christopherekfeldt can you share how you're installing dbt? Are you using pip install?

from dbt-core.

QMalcolm avatar QMalcolm commented on June 12, 2024

@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

from dbt-core.

christopherekfeldt avatar christopherekfeldt commented on June 12, 2024

We are using poetry, so we change the versions in pyproject.toml

our setup:

[tool.poetry.dependencies]
python = ">=3.9,<3.13"
dbt-bigquery = "v1.8.0b2"
dbt-core = "v1.8.0b2"
sqlfluff = "3.0.1"
pre-commit = "3.6.2"

[tool.poetry.dev-dependencies]

[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"

then use cli commands:

poetry lock --no-update
poetry install --no-root

then I ran:

dbt --version

which evaluates to -> ModuleNotFoundError: No module named 'dbt.adapters.factory'
Can it have anything to do with us using python 3.12?

from dbt-core.

christopherekfeldt avatar christopherekfeldt commented on June 12, 2024

Screenshot:

image

from dbt-core.

Arnellluke avatar Arnellluke commented on June 12, 2024

I have the same version of dbt packages
image

and receive the same error:
image

Version 1.8.0b1 works as expected

from dbt-core.

brabster avatar brabster commented on June 12, 2024

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/

from dbt-core.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.