-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
[Bug] dbt-core is not compatible with latest protobuf version #9759
Comments
Should be fixed by #9724 |
@JasperHG90 Thanks for opening up this issue! Pinning to |
@akan72, how could you pin the protobuf to solve the issue? |
@katepaydhealth I didn't confirm myself, but probably by executing something like this in your dbt environment: python -m pip install protobuf==4.25.3 |
Yup this is exactly what I did! |
A new release 1.7.10 is being built now with protobuf pinned. |
dbt-core 1.7.10 has been released. |
Thank you @gshank ❤️ I can confirm that the the following raised an error before, but is not raising an error now that dbt-core 1.7.10 has been released: deactivate
python -m venv env_1.7
source env_1.7/bin/activate
python -m pip install --upgrade pip
python -m pip install pipdeptree
python -m pip install dbt-core~=1.7.0 dbt-postgres~=1.7.0
source env_1.7/bin/activate
dbt --version
dbt debug I'm going to close this as resolved, but anyone runs into issues, please reach out and we'll revisit this. |
@gshank Maybe an upper version limit for other modules might be set too? |
Tedious, but true. Many module developers use semantic versioning to convey if there are breaking changes in a release. Unfortunately, pip doesn't have the equivalent of the caret |
|
Hi @VShkaberda that is actually exactly what we're doing now (with only a few exceptions). We switched not too long ago to specifying upper bounds for all most all of our dependencies (see setup.py) 🙂 |
Might help future readers of the code to move the |
@VShkaberda We'd love to move to using |
@peter-at-work, you are absolutely correct 😅 That's actually directly on me, I did the capping... Correction in #9786 |
Thx for solution. I would be however happier if I did not have to downgrade protobuf. |
@mcDandy if you are interested in support for protobuf 5, would you mind opening a feature request? #9566 has a little bit of additional context of why we put an upper bound on the protobuf dependency. It sounds like we could theoretically support protobuf 5, but it would take additional work for us to assess, and the implementation would likely make our code base more complex as well. |
Feature request to support protobuf 5 for dbt-core is here: #9724 |
Thxs for the mitigation but I can't downgrade protobuf since my projects already requires >5 |
Is this a new bug in dbt-core?
Current Behavior
Protobuf 5.26.0 was released today.
When installing dbt and running
dbt deps
, I see:Fixing protobuf dependency on protobuf 4.25.3 fixes the error.
Expected Behavior
With protobuf < 5.26.0, I don't see an error.
Steps To Reproduce
dbt deps
Relevant log output
Environment
Which database adapter are you using with dbt?
spark
Additional Context
No response
The text was updated successfully, but these errors were encountered: