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

'NoneType' object has no attribute 'get' on non-empty profiles.yml #2447

Closed
mohnish7 opened this issue May 13, 2020 · 2 comments
Closed

'NoneType' object has no attribute 'get' on non-empty profiles.yml #2447

mohnish7 opened this issue May 13, 2020 · 2 comments
Labels
bug Something isn't working

Comments

@mohnish7
Copy link

On running
dbt run
I get the following error

Running with dbt=0.16.1
Encountered an error:
'NoneType' object has no attribute 'get'

Issue #555 stated that this happens when profiles is empty, but that isn't the case here. I'm following this guide

I'm using bigquery, dbt 0.16.1, and python 3.7.7 on OS Catalina 10.15.2

@mohnish7 mohnish7 added bug Something isn't working triage labels May 13, 2020
@beckjake
Copy link
Contributor

beckjake commented May 13, 2020

That guide is wrong, its example is missing important whitespace. The example profiles.yml should actually look like this:

my-bigquery-db:
  target: dev
  outputs:
    dev:
      type: bigquery
      method: service-account
      project: happy-vegetable-211094
      dataset: soCleaned
      threads: 1
      keyfile: /users/matt/BigQuerykeyfile.json
      timeout_seconds: 300

edit: It appears the underlying google doc is right (you can see it if you click on the "give feedback" link), but it renders incorrectly on the web page.

@mohnish7
Copy link
Author

This fixed the issue - appreciate the prompt response!

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

3 participants