[bug] edr report: Path not found: `dbt-data-reliability-0.20.0` should be `elementary`
Describe the bug
When running uv run edr report it crashed with the following data:
[Errno 2] No such file or directory: 'dbt_packages\\dbt-data-reliability-0.20.0\\integration_tests\\deprecated_tests\\macros\\unit_tests\\test_adapter_specific_macros_have_default_implementation.sql'
Using "elementary-data[databricks]>=0.20.0".
The error looked to be to be very simple dbt-data-reliability-0.20.0 in the file path needs to be replaced with elementary, which is where it actually lives. However manually changing the path didn't resolve the problem.
To Reproduce Steps to reproduce the behavior:
Setup according to the provided documentation and try to generate a report.
Expected behavior I expect a report to be generated.
Screenshots If applicable, add screenshots to help explain your problem.
Environment (please complete the following information):
- Elementary CLI (edr) version: 0.20.0
- Elementary dbt package version:
- package: elementary-data/elementary
version: 0.20.1
- dbt version: 1.9.4
- Data warehouse: Databricks (dbt-databricks>=1.10.1)
- Infrastructure details: Windows
Hey! We're looking into it, just making sure - did everything work with the previous versions?
@NoyaOffer I just started the setup. But I've tried it before (quite some time ago) and vaguely remember I got the same error, so probably not.
OK. We couldn't reproduce this on our side, so we'll check what's going on!
@NoyaOffer here is some more of the stack-trace (removed my personal information)
self.internal_dbt_runner = self._init_internal_dbt_runner()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
internal_dbt_runner = create_dbt_runner(
^^^^^^^^^^^^^^^^^^
, line 36, in create_dbt_runner
return runner_class(
^^^^^^^^^^^^^
packages\elementary\clients\dbt\command_line_dbt_runner.py", line 58, in __init__
self._run_deps_if_needed()
packages\elementary\clients\dbt\command_line_dbt_runner.py", line 325, in _run_deps_if_needed
self.deps()
packages\elementary\clients\dbt\command_line_dbt_runner.py", line 134, in deps
result = self._run_command(
^^^^^^^^^^^^^^^^^^
packages\elementary\clients\dbt\command_line_dbt_runner.py", line 115, in _run_command
result = self._inner_run_command(
^^^^^^^^^^^^^^^^^^^^^^^^
packages\elementary\clients\dbt\api_dbt_runner.py", line 54, in _inner_run_command
raise DbtCommandError(
elementary.exceptions.exceptions.DbtCommandError: Failed to run dbt command.
@NoyaOffer It could also be related to my project setup.
my dbt_project.yml is in the project root.
The dbt_packages are in the project root.
The dbt objects (models, seeds etc) are in project_root/dbt
Or Windows (notorious paths). I will try on linux later on.
The initial logs say:
INFO:elementary.clients.dbt.command_line_dbt_runner:Running dbt command --log-format json deps --project-dir <myproject_root>\.venv\Lib\site-packages\elementary\monitor\dbt_project
@NoyaOffer No warnings on linux.