The problem I’m having
When I ran dbt ran or dbt compile, I got an error.
Encountered an error:
‘dict’ object is not callable
14:26:50 Traceback (most recent call last):
- File “C:\Users\xli\Anaconda3\envs\dbt-env\lib\site-packages\dbt\main.py”, line 135, in main
-
results, succeeded = handle_and_check(args)
- File “C:\Users\xli\Anaconda3\envs\dbt-env\lib\site-packages\dbt\main.py”, line 198, in handle_and_check
-
task, res = run_from_args(parsed)
- File “C:\Users\xli\Anaconda3\envs\dbt-env\lib\site-packages\dbt\main.py”, line 245, in run_from_args
-
results = task.run()
- File “C:\Users\xli\Anaconda3\envs\dbt-env\lib\site-packages\dbt\task\runnable.py”, line 454, in run
-
self._runtime_initialize()
- File “C:\Users\xli\Anaconda3\envs\dbt-env\lib\site-packages\dbt\task\runnable.py”, line 165, in _runtime_initialize
-
super()._runtime_initialize()
- File “C:\Users\xli\Anaconda3\envs\dbt-env\lib\site-packages\dbt\task\runnable.py”, line 94, in _runtime_initialize
-
self.load_manifest()
- File “C:\Users\xli\Anaconda3\envs\dbt-env\lib\site-packages\dbt\task\runnable.py”, line 81, in load_manifest
-
self.manifest = ManifestLoader.get_full_manifest(self.config)
- File “C:\Users\xli\Anaconda3\envs\dbt-env\lib\site-packages\dbt\parser\manifest.py”, line 203, in get_full_manifest
-
manifest = loader.load()
- File “C:\Users\xli\Anaconda3\envs\dbt-env\lib\site-packages\dbt\parser\manifest.py”, line 339, in load
-
self.parse_project(
- File “C:\Users\xli\Anaconda3\envs\dbt-env\lib\site-packages\dbt\parser\manifest.py”, line 467, in parse_project
-
parser.parse_file(block)
- File “C:\Users\xli\Anaconda3\envs\dbt-env\lib\site-packages\dbt\parser\base.py”, line 425, in parse_file
-
self.parse_node(file_block)
- File “C:\Users\xli\Anaconda3\envs\dbt-env\lib\site-packages\dbt\parser\base.py”, line 386, in parse_node
-
self.render_update(node, config)
- File “C:\Users\xli\Anaconda3\envs\dbt-env\lib\site-packages\dbt\parser\models.py”, line 362, in render_update
-
super().render_update(node, config)
- File “C:\Users\xli\Anaconda3\envs\dbt-env\lib\site-packages\dbt\parser\base.py”, line 362, in render_update
-
context = self.render_with_context(node, config)
- File “C:\Users\xli\Anaconda3\envs\dbt-env\lib\site-packages\dbt\parser\base.py”, line 240, in render_with_context
-
get_rendered(parsed_node.raw_code, context, parsed_node, capture_macros=True)
- File “C:\Users\xli\Anaconda3\envs\dbt-env\lib\site-packages\dbt\clients\jinja.py”, line 590, in get_rendered
-
return render_template(template, ctx, node)
- File “C:\Users\xli\Anaconda3\envs\dbt-env\lib\site-packages\dbt\clients\jinja.py”, line 545, in render_template
-
return template.render(ctx)
- File “C:\Users\xli\Anaconda3\envs\dbt-env\lib\site-packages\jinja2\environment.py”, line 1301, in render
-
self.environment.handle_exception()
- File “C:\Users\xli\Anaconda3\envs\dbt-env\lib\site-packages\jinja2\environment.py”, line 936, in handle_exception
-
raise rewrite_traceback_stack(source=source)
- File “”, line 3, in top-level template code
- File “C:\Users\xli\Anaconda3\envs\dbt-env\lib\site-packages\jinja2\sandbox.py”, line 393, in call
-
return __context.call(__obj, *args, **kwargs) ot callable
The context of why I’m trying to do this
I was trying to run my models after installed the dbt-labs/metrics
What I’ve already tried
I try dbt clean, but it doesn’t work.