Hi there, I installed the elementary package succ...
# community-support
c
Hi there, I installed the elementary package successful. I can run dbt test, elementary pre and post hooks work like expected and 'dbt run -m elementary' works aswell. Then I installed the CLI with the provided documentation. But 'edr report' rises the following error: (Using dbt-snowflake version 1.5.0) -------------------------------
Copy code
Any feedback and suggestions are welcomed! join our community here - <https://bit.ly/slack-elementary>

2023-11-30 16:04:12 — INFO — Running with edr=0.12.1
2023-11-30 16:04:17 — ERROR — Unable to get the latest invocation: Failed to run dbt command.
Encountered an error:
list index out of range
Traceback (most recent call last):
  File "C:\Users\CedricKäslin\AppData\Local\Programs\Python\Python39\lib\site-packages\dbt\cli\requires.py", line 86, in wrapper
    result, success = func(*args, **kwargs)
  File "C:\Users\CedricKäslin\AppData\Local\Programs\Python\Python39\lib\site-packages\dbt\cli\requires.py", line 71, in wrapper
    return func(*args, **kwargs)
  File "C:\Users\CedricKäslin\AppData\Local\Programs\Python\Python39\lib\site-packages\dbt\cli\requires.py", line 142, in wrapper
    return func(*args, **kwargs)
  File "C:\Users\CedricKäslin\AppData\Local\Programs\Python\Python39\lib\site-packages\dbt\cli\requires.py", line 168, in wrapper
    return func(*args, **kwargs)
  File "C:\Users\CedricKäslin\AppData\Local\Programs\Python\Python39\lib\site-packages\dbt\cli\requires.py", line 215, in wrapper
    return func(*args, **kwargs)
  File "C:\Users\CedricKäslin\AppData\Local\Programs\Python\Python39\lib\site-packages\dbt\cli\requires.py", line 242, in wrapper
    manifest = ManifestLoader.get_full_manifest(
  File "C:\Users\CedricKäslin\AppData\Local\Programs\Python\Python39\lib\site-packages\dbt\parser\manifest.py", line 227, in get_full_manifest
    manifest = loader.load()
  File "C:\Users\CedricKäslin\AppData\Local\Programs\Python\Python39\lib\site-packages\dbt\parser\manifest.py", line 386, in load
    self.parse_project(
  File "C:\Users\CedricKäslin\AppData\Local\Programs\Python\Python39\lib\site-packages\dbt\parser\manifest.py", line 515, in parse_project
    parser.parse_file(block)
  File "C:\Users\CedricKäslin\AppData\Local\Programs\Python\Python39\lib\site-packages\dbt\parser\base.py", line 433, in parse_file
    self.parse_node(file_block)
  File "C:\Users\CedricKäslin\AppData\Local\Programs\Python\Python39\lib\site-packages\dbt\parser\base.py", line 394, in parse_node
    self.render_update(node, config)
  File "C:\Users\CedricKäslin\AppData\Local\Programs\Python\Python39\lib\site-packages\dbt\parser\models.py", line 337, in render_update
    self.populate(node, config, statically_parsed)
  File "C:\Users\CedricKäslin\AppData\Local\Programs\Python\Python39\lib\site-packages\dbt\parser\models.py", line 495, in populate
    package, name = ref[0], refs[1]
IndexError: list index out of range

2023-11-30 16:04:27 — ERROR — Failed to parse Elementary's database and schema.
2023-11-30 16:04:27 — INFO — Running dbt --log-format json run-operation elementary.log_macro_results --args {"macro_name": "elementary_cli.get_test_results", "macro_args": {"days_back": 7, "invocations_per_test": 720, "disable_passed_test_metrics": false}} --project-dir C:\Users\CedricKäslin\AppData\Local\Programs\Python\Python39\Lib\site-packages\elementary\monitor\dbt_project
2023-11-30 16:04:31 — ERROR — Could not generate the report - Error: Failed to run dbt command.
Encountered an error:
list index out of range
Traceback (most recent call last):
  File "C:\Users\CedricKäslin\AppData\Local\Programs\Python\Python39\lib\site-packages\dbt\cli\requires.py", line 86, in wrapper
    result, success = func(*args, **kwargs)
  File "C:\Users\CedricKäslin\AppData\Local\Programs\Python\Python39\lib\site-packages\dbt\cli\requires.py", line 71, in wrapper
    return func(*args, **kwargs)
  File "C:\Users\CedricKäslin\AppData\Local\Programs\Python\Python39\lib\site-packages\dbt\cli\requires.py", line 142, in wrapper
    return func(*args, **kwargs)
  File "C:\Users\CedricKäslin\AppData\Local\Programs\Python\Python39\lib\site-packages\dbt\cli\requires.py", line 168, in wrapper
    return func(*args, **kwargs)
  File "C:\Users\CedricKäslin\AppData\Local\Programs\Python\Python39\lib\site-packages\dbt\cli\requires.py", line 215, in wrapper
    return func(*args, **kwargs)
  File "C:\Users\CedricKäslin\AppData\Local\Programs\Python\Python39\lib\site-packages\dbt\cli\requires.py", line 242, in wrapper
    manifest = ManifestLoader.get_full_manifest(
  File "C:\Users\CedricKäslin\AppData\Local\Programs\Python\Python39\lib\site-packages\dbt\parser\manifest.py", line 227, in get_full_manifest
    manifest = loader.load()
  File "C:\Users\CedricKäslin\AppData\Local\Programs\Python\Python39\lib\site-packages\dbt\parser\manifest.py", line 386, in load
    self.parse_project(
  File "C:\Users\CedricKäslin\AppData\Local\Programs\Python\Python39\lib\site-packages\dbt\parser\manifest.py", line 515, in parse_project
    parser.parse_file(block)
  File "C:\Users\CedricKäslin\AppData\Local\Programs\Python\Python39\lib\site-packages\dbt\parser\base.py", line 433, in parse_file
    self.parse_node(file_block)
  File "C:\Users\CedricKäslin\AppData\Local\Programs\Python\Python39\lib\site-packages\dbt\parser\base.py", line 394, in parse_node
    self.render_update(node, config)
  File "C:\Users\CedricKäslin\AppData\Local\Programs\Python\Python39\lib\site-packages\dbt\parser\models.py", line 337, in render_update
    self.populate(node, config, statically_parsed)
  File "C:\Users\CedricKäslin\AppData\Local\Programs\Python\Python39\lib\site-packages\dbt\parser\models.py", line 495, in populate
    package, name = ref[0], refs[1]
IndexError: list index out of range

Please reach out to our community for help with this issue.
NoneType: None
------------------------------- Any help on how I can resolve this issue is greatly appreciated! Thanks in advance!
I also experienced strange behavior with 'dbt deps' command. After running 'dbt deps' the first time, it installed following packages (see first picture). So far so good... Everything works like expected. When running dbt deps a second time it installs another package (see second picture with package 'dbt-data-reliability-0.12.1') plus i get error message. After that nothing works anymore! My packages.yml looks like this:
Copy code
packages:
  - package: elementary-data/elementary
    version: 0.12.1
    ## Docs: <https://docs.elementary-data.com>
  - package: dbt-labs/logging
    version: 0.8.0
n
Hey @cedric! Thanks for reaching out 🙂 Can you share which dbt version you’re using? the first error you send looks like a previous error with dbt 1.5 which requires an upgrade Re the second error (
dbt deps
) is anything running while you ran this command? Can you try stopping tests and make sure elementary is not being used while you run it? Thanks!