Hi team, I also got this error when deploy on Dags...
# dagster-plus
j
Hi team, I also got this error when deploy on Dagster Cloud
Copy code
dagster_dbt.errors.DagsterDbtCliFatalRuntimeError: Fatal error in the dbt CLI (return code 2): Running with dbt=1.5.2 Registered adapter: snowflake=1.5.0 Encountered an error:
Compilation Error
  dbt found 4 package(s) specified in packages.yml, but only 0 package(s) installed in dbt_packages. Run "dbt deps" to install package dependencies.
  File "/usr/local/lib/python3.9/site-packages/dagster/_grpc/server.py", line 278, in __init__
    self._loaded_repositories: Optional[LoadedRepositories] = LoadedRepositories(
  File "/usr/local/lib/python3.9/site-packages/dagster/_grpc/server.py", line 122, in __init__
    loadable_targets = get_loadable_targets(
  File "/usr/local/lib/python3.9/site-packages/dagster/_grpc/utils.py", line 57, in get_loadable_targets
    else loadable_targets_from_python_package(package_name, working_directory)
  File "/usr/local/lib/python3.9/site-packages/dagster/_core/workspace/autodiscovery.py", line 48, in loadable_targets_from_python_package
    module = load_python_module(
  File "/usr/local/lib/python3.9/site-packages/dagster/_core/code_pointer.py", line 135, in load_python_module
    return importlib.import_module(module_name)
  File "/usr/local/lib/python3.9/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 850, in exec_module
  File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
  File "/opt/dagster/app/dbt_vault/__init__.py", line 24, in <module>
    from dbt_vault.assets import list_of_assets
  File "/opt/dagster/app/dbt_vault/assets/__init__.py", line 123, in <module>
    dbt_assets = load_assets_from_dbt_project(
  File "/usr/local/lib/python3.9/site-packages/dagster_dbt/asset_defs.py", line 520, in load_assets_from_dbt_project
    manifest_json, cli_output = _load_manifest_for_project(
  File "/usr/local/lib/python3.9/site-packages/dagster_dbt/asset_defs.py", line 76, in _load_manifest_for_project
    cli_output = execute_cli(
  File "/usr/local/lib/python3.9/site-packages/dagster_dbt/cli/utils.py", line 229, in execute_cli
    for event in _core_execute_cli(
  File "/usr/local/lib/python3.9/site-packages/dagster_dbt/cli/utils.py", line 151, in _core_execute_cli
    raise DagsterDbtCliFatalRuntimeError(messages=messages)
how can I run dbt deps when build and deploy dagster cloud serverless?
p
You might find this discussion helpful: https://github.com/dagster-io/dagster/discussions/12180