Bug: Missing `google-cloud-dataplex` dependency causes Cloud Run deployment failure out of the box
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
- Domain
- build-system, cloud
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from GoogleCloudPlatform/agentsmithy
-
Difficulty 3/5 1-2 days Newbie friendliness 74/100
All issues in GoogleCloudPlatform/agentsmithy
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100