# 'NoneType' object cannot be interpreted as an integer

**URL:** <https://discourse.getdbt.com/t/nonetype-object-cannot-be-interpreted-as-an-integer/2506>\
**Category:** Archive\
**Created:** [May 13, 2021, 4:10pm UTC](https://discourse.getdbt.com/t/nonetype-object-cannot-be-interpreted-as-an-integer/2506 "2021-05-13T16:10:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![topo.lora](https://sea2.discourse-cdn.com/flex020/user_avatar/discourse.getdbt.com/topo.lora/32/714_2.png) [@topo.lora](https://discourse.getdbt.com/u/topo.lora)\
**Post date:** [May 13, 2021, 4:10pm UTC](https://discourse.getdbt.com/t/nonetype-object-cannot-be-interpreted-as-an-integer/2506/1 "2021-05-13T16:10:16Z")

</div>

Previously (like yesterday) I was able to run dbt without any problem. I am using macOS Mojave 10.14.6. But after I upgraded to 0.19.1, somehow I can’t run any dbt command, except dbt debug.

For example, I run the following command:  
`dbt run -m MODEL_1 --profiles-dir ./profiles` (I create a profiles.yml under profiles folder; which has been working all along)

I would get the following error.  
Running with dbt=0.19.1  
Encountered an error:  
‘NoneType’ object cannot be interpreted as an integer

I also ran `dbt debug --profiles-dir ./profiles`, and it showed that  
Configuration:  
profiles.yml file [OK found and valid]  
dbt\_project.yml file [OK found and valid]

I am not sure what went wrong. Could anyone give any insight? Thank you!
