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

Show a more helpful error message when plugins cannot be imported #2006

Closed
drewbanin opened this issue Dec 13, 2019 · 1 comment
Closed

Show a more helpful error message when plugins cannot be imported #2006

drewbanin opened this issue Dec 13, 2019 · 1 comment
Labels
bug Something isn't working

Comments

@drewbanin
Copy link
Contributor

Describe the bug

If a dbt plugin cannot be imported, dbt will show a message about invalid credentials, eg:

Running with dbt=0.14.3
Error importing adapter: cannot import name 'collections_abc'
Encountered an error while reading profiles:
  ERROR Runtime Error
  Credentials in profile "<profile name>", target "dev" invalid: Runtime Error
    Could not find adapter type bigquery!
Defined profiles:
 - ....

If this is an error that occurs at import-time, dbt should not indicate that the credentials are invalid. dbt should also not show a list of defined profiles in this error message.

Desired output:

Running with dbt=0.14.3
The dbt plugin 'bigquery' could not be imported: cannot import name 'collections_abc'

dbt version: v0.14.3. I need to test against 0.15.0 to determine if this behavior has recently changed.

@drewbanin drewbanin added the bug Something isn't working label Dec 13, 2019
@drewbanin drewbanin added this to the Barbara Gittings milestone Dec 13, 2019
beckjake added a commit that referenced this issue Jan 6, 2020
…port-errors

improve errors on importing plugins (#2006)
@drewbanin
Copy link
Contributor Author

closed by #2022

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
None yet
Development

No branches or pull requests

1 participant