dbt-server icon indicating copy to clipboard operation
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

Open liangriyu opened this issue 1 year ago • 2 comments

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 ;

  1. I want to confirm that only dbt-core v1.4.x can be used for dbt-server v0.2.0?
  2. 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

  1. add dbt-postgres==1.4.6 to dev-requirements.txt
  2. 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

liangriyu avatar May 30 '23 15:05 liangriyu

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!

vladimirdinolov-8451 avatar May 30 '23 19:05 vladimirdinolov-8451

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 ~.

marclevine-8451 avatar May 31 '23 17:05 marclevine-8451