Nawfel
10/12/2023, 9:44 AMedr send-report but elementary is apparently trying to run dbt deps during the process, which cause an error because our Airflow is not allowed to get access to internet and install packages for example. But my question is why does it try to run dbt deps even though all the dbt packages are already installed? How can i skip this step?
I saw this in the dbt_runner Class:
def _run_deps_if_needed(self):
installed_package_names = set(self._get_installed_packages_names())
required_package_names = set(self._get_required_packages_names())
if not required_package_names.issubset(installed_package_names):
self.deps(quiet=True)
It is apparently running dbt deps only if the required package (elementary, dbt_utils) are not installed but in my case they are actually installed so I don’t understand why it still tries to run that command.Nawfel
10/12/2023, 9:45 AMAlex
10/12/2023, 9:52 AMNawfel
10/12/2023, 9:53 AMedr=0.11.0
elementary-data/elementary=0.11.1Nawfel
10/12/2023, 10:45 AMAlex
10/12/2023, 10:45 AMHan Lai
10/16/2023, 11:34 PMdbt deps command in my docker image. But whenever I ran edr report, it still evokes dbt deps command.. would be able to kindly share how did you handle it in you case? Thank youNawfel
10/24/2023, 1:38 PMRUN dbt deps --project-dir /usr/local/lib/python3.11/site-packages/elementary/monitor/dbt_project in my docker image (you should change the project path to where your elementary package is installed in your image) so that it installs the packages in the path of dbt_packages of elementary monitor dbt project, which is the path that they check in _get_required_packages_names()Nawfel
10/24/2023, 1:40 PMdbt deps anymore when running edr reportHan Lai
10/26/2023, 5:19 AM