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

dlt dbt package is not compatible with the latest dbt-core version(2.9.1) #2226

Open
datapopcorn opened this issue Jan 20, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@datapopcorn
Copy link

dlt version

1.5.0

Describe the problem

Because the latest dbt-core version(2.9.1) stop using dbt.logger module, the dlt.dbt.package does not with dbt-core version 2.9+.

Traceback (most recent call last):
File "/opt/dbt-project/.venv/lib/python3.12/site-packages/dlt/helpers/dbt/dbt_utils.py", line 26, in
import dbt.logger
ModuleNotFoundError: No module named 'dbt.logger'

Expected behavior

No response

Steps to reproduce

pipeline = dlt.pipeline(
"github_reactions",
destination='bigquery',
dataset_name="github_data_dbt",
)
# add dbt runner
dbt = dlt.dbt.package(pipeline, package_location="./dbt_project")
models = dbt.run_all()

Operating system

macOS

Runtime environment

Local

Python version

3.11

dlt data source

github

dlt destination

Google BigQuery

Other deployment details

No response

Additional information

No response

@rudolfix rudolfix moved this from Todo to In Progress in dlt core library Jan 20, 2025
@rudolfix rudolfix added the bug Something isn't working label Jan 20, 2025
@rudolfix rudolfix moved this from In Progress to Planned in dlt core library Jan 20, 2025
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
Status: Planned
Development

No branches or pull requests

2 participants