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

[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 #236

Open
2 tasks done
liangriyu opened this issue May 30, 2023 · 2 comments
Labels

Comments

@liangriyu
Copy link

Is this a new bug in dbt-server?

  • I believe this is a new bug in dbt-server
  • 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 liangriyu added the bug label May 30, 2023
@vladimirdinolov-8451
Copy link

vladimirdinolov-8451 commented May 30, 2023

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!

@marclevine-8451
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants