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

Open Beginner friendly
#114 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
78/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Quiet
Tech stack
google-cloud, python

Research direction

Review pyproject.toml and the Cloud Run deployment tutorial, starting with the project's base dependencies and the agent-bar-v2 startup failure. Add the required google-cloud-dataplex dependency with a compatible constraint, rebuild the container, and redeploy the tutorial's Cloud Run service to confirm the agent initializes successfully.

Written by the indexing model from the issue text.

Description

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

Dominant language
Python
Stars
121
Forks
28
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from GoogleCloudPlatform/agentsmithy

All issues in GoogleCloudPlatform/agentsmithy

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.