【问题标题】:Running dbt results in `Profile() takes no arguments` error运行 dbt 导致 `Profile() 没有参数` 错误
【发布时间】:2021-09-28 09:29:28
【问题描述】:

当我运行 dbt run 我得到:

Encountered an error:
Profile() takes no arguments

运行dbt debug 显示:

Running with dbt=0.20.0
dbt version: 0.20.0
python version: 3.9.7
python path: /home/USER/.pyenv/versions/3.9.7/bin/python3.9
os info: Linux-5.10.68-1-MANJARO-x86_64-with-glibc2.33
Using profiles.yml file at /home/USER/dbt/profiles.yml
Using dbt_project.yml file at /home/USER/dbt/project/dbt_project.yml

Encountered an error:
object.__init__() takes exactly one argument (the instance to initialize)

配置文件和项目 yaml 对其他人有效,所以我猜是我的系统有问题,但不知道有什么不同。

【问题讨论】:

    标签: python dbt


    【解决方案1】:

    这是由于使用 Python 3.9.7 造成的,解决方案是根据此问题降级到 3.9.6:https://github.com/dbt-labs/dbt/issues/3843

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2016-08-05
      • 1970-01-01
      • 1970-01-01
      • 2020-12-19
      • 1970-01-01
      • 2015-09-22
      • 2020-10-29
      相关资源
      最近更新 更多