-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Labels
bot triaged[Bot] This issue is triaged by ADK bot[Bot] This issue is triaged by ADK bottools[Component] This issue is related to tools[Component] This issue is related to tools
Description
Describe the bug
When executing the command adk deploy cloud_run, the following error is returned:
Deploy failed: expected str, bytes or os.PathLike object, not NoneType
.
This started happening after upgrading from version 1.8.0 to 1.9.0.
To Reproduce
Steps to reproduce the behavior:
adk deploy cloud_run \
--project=$GOOGLE_CLOUD_PROJECT \
--region=$GOOGLE_CLOUD_LOCATION \
--service_name=$SERVICE_NAME \
--app_name=$APP_NAME \
--session_service_uri "$DATABASE_URL" \
--with_ui \
$AGENT_PATH
Output:
Start generating Cloud Run source files in /var/folders/k0/m27jf9zx6nvb007zyd3h8fcm0000gn/T/cloud_run_deploy_src/20250804_111610
Copying agent source code...
Copying agent source code completed.
Creating Dockerfile...
Creating Dockerfile complete: /var/folders/k0/m27jf9zx6nvb007zyd3h8fcm0000gn/T/cloud_run_deploy_src/20250804_111610/Dockerfile
Deploying to Cloud Run...
Cleaning up the temp folder: /var/folders/k0/m27jf9zx6nvb007zyd3h8fcm0000gn/T/cloud_run_deploy_src/20250804_111610
Deploy failed: expected str, bytes or os.PathLike object, not NoneType
Expected behavior
Container deployed
Screenshots
Start generating Cloud Run source files in /var/folders/k0/m27jf9zx6nvb007zyd3h8fcm0000gn/T/cloud_run_deploy_src/20250804_111610
Copying agent source code...
Copying agent source code completed.
Creating Dockerfile...
Creating Dockerfile complete: /var/folders/k0/m27jf9zx6nvb007zyd3h8fcm0000gn/T/cloud_run_deploy_src/20250804_111610/Dockerfile
Deploying to Cloud Run...
Cleaning up the temp folder: /var/folders/k0/m27jf9zx6nvb007zyd3h8fcm0000gn/T/cloud_run_deploy_src/20250804_111610
Deploy failed: expected str, bytes or os.PathLike object, not NoneType
Desktop (please complete the following information):
- OS: macOS
Darwin Addos-MacBook-Pro-2.local 24.6.0 Darwin Kernel Version 24.6.0: Mon Jul 14 11:30:29 PDT 2025; - Python version(python -V): Python 3.13.4
- ADK version(pip show google-adk): Name: google-adk
Version: 1.9.0
Summary: Agent Development Kit
Home-page: https://google.github.io/adk-docs/
Author:
Author-email: Google LLC [email protected]
License:
Location: /Users/addo/jobs/konfido/adapti-agent/venv/lib/python3.13/site-packages
Requires: absolufy-imports, anyio, authlib, click, fastapi, google-api-python-client, google-cloud-aiplatform, google-cloud-secret-manager, google-cloud-speech, google-cloud-storage, google-genai, graphviz, mcp, opentelemetry-api, opentelemetry-exporter-gcp-trace, opentelemetry-sdk, pydantic, python-dateutil, python-dotenv, PyYAML, requests, sqlalchemy, starlette, tenacity, typing-extensions, tzlocal, uvicorn, watchdog, websockets
Required-by:
Model Information:
Not applicable
Additional context
Not applicable
Metadata
Metadata
Assignees
Labels
bot triaged[Bot] This issue is triaged by ADK bot[Bot] This issue is triaged by ADK bottools[Component] This issue is related to tools[Component] This issue is related to tools