Skip to content

Bug: Missing google-cloud-dataplex dependency causes Cloud Run deployment failure out of the box #114

Description

@masirt

Hi everyone,

When following the deployment tutorial for Cloud Run, the agent-bar-v2 container crashes on startup. The application fails to initialize because the ADK BigQuery toolset relies on dataplex dependencies, which are not included in the project's dependencies.

This prevents the agent from deploying successfully out of the box.

Error Logs

  File "/usr/local/lib/python3.12/site-packages/google/adk/integrations/bigquery/client.py", line 26, in <module>
    from google.cloud import dataplex_v1
ImportError: Fail to load 'agent_bar_v2' module. cannot import name 'dataplex_v1' from 'google.cloud' (unknown location)

Expected behavior
The Cloud Run service should start successfully and initialize the agent out of the box without requiring manual dependency updates.

Workaround / Suggested Fix
I was able to resolve this locally by simply adding the missing dependency directly to the pyproject.toml file and rebuilding the container:

google-cloud-dataplex = "^1.x.x" # (or whichever version constraints fit the project)

Adding this to the base requirements should fix the issue for future users following the tutorial.

It would be great if we could fix it to avoid the same error for others (in case it appears).

Cheers,
Mario

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions