dbt-server
dbt-server copied to clipboard
[Bug][release-0.2.0 ] It's no module named 'dbt.lib' when i installed dbt-core-1.5.0,and cound not import load_profile_project form 'dbt.lib' when i installed dbt-core-1.4.x
Is this a new bug in dbt-server?
- [X] I believe this is a new bug in dbt-server
- [X] I have searched the existing issues, and I could not find an existing issue for this bug
Current Behavior
It's no module named 'dbt.lib' when i installed dbt-core-1.5.0,and cound not import load_profile_project form 'dbt.lib' when i installed dbt-core-1.4.x ;
- I want to confirm that only dbt-core v1.4.x can be used for dbt-server v0.2.0?
- cound not import load_profile_project form 'dbt.lib' what shoud i do?
Expected Behavior
successfully import dbt.lib for dbt_server/services/dbt_service.py
Steps To Reproduce
- add dbt-postgres==1.4.6 to dev-requirements.txt
- pip install -r requirements.txt -r dev-requirements.txt --force
Relevant log output
No response
Environment
- dbt-adapter & version:
- dbt-server version:
Which database adapter are you using with dbt?
No response
Additional Context
No response
We had what I think is a similar issue and used a pre-release (at that time) version of 1.5. It was something like 1.5xx. Good luck!
We're running into a very similar issue, also dealing with the removal of dbt.lib
.
We'd like to use a known good version of dbt-server. Then we'll specify a known compatible version of the connector, in our case dbt-snowflake
. So, for instance, we specified 1.5.0b4, which we knew worked.
However, due to the ~
here, when we do our pip install
, it's grabbing dbt-core
1.5.1. Since dbt.lib
was removed from that version, yet our known good version of dbt-server still references it, we get an error on start-up.
Do we need the ~
in the connectors? I looked at another connector and saw the logic was a little different, but it also had the ~
.