Open
Description
Thanks for stopping by to let us know something could be better!
PLEASE READ: If you have a support contract with Google, please create an issue in the support console instead of filing on GitHub. This will ensure a timely response.
Please run down the following list and make sure you've tried the usual "quick fixes":
- Search the issues already opened: https://github.com/googleapis/python-aiplatform/issues
- Search StackOverflow: https://stackoverflow.com/questions/tagged/google-cloud-platform+python
If you are still having issues, please be sure to include as much information as possible:
Environment details
- OS type and version: Windows 11 (no WSL installed)
- Python version: 3.12.10 (inside virtualenv)
- pip version: 24.0
- google-cloud-aiplatform version: 1.51.0
- Other tools: Docker, zip, tar, and gcloud are installed and in PATH
Steps to reproduce
- Install Vertex AI SDK:
pip install google-cloud-aiplatform[adk,agent_engines]
- Create an agent:
adk create firstagent
- Edit
firstagent/.env
with correct project info: - Deploy with:
adk deploy agent_engine firstagent
PROJECT_ID=... LOCATION=us-central1 STAGING_BUCKET=gs://my-bucket-name
Code example
from vertexai.preview import reasoning_engines
from google.adk.agents import Agent
def get_time(city: str) -> dict:
return {"status": "success", "report": "Test time report."}
root_agent = Agent(
name="testagent",
model="gemini-2.0-pro",
description="Test Agent",
instruction="Respond with test time",
tools=[get_time],
)
app = reasoning_engines.AdkApp(agent=root_agent)
Stack trace
(venv) > adk deploy agent_engine firstagent
Copying agent source code...
Copying agent source code complete.
Initializing Vertex AI...
Cleaning up the temp folder: C:\Users\...\Temp\agent_engine_deploy_src\20250616_165521
Deploy failed: [WinError 2] The system cannot find the file specified
(venv) > adk deploy cloud_run firstagent
Creating Dockerfile complete: ...\Dockerfile
Deploying to Cloud Run...
Cleaning up the temp folder: ...
Deploy failed: [WinError 2] The system cannot find the file specified
Additional notes
- This only affects the deployment step. Everything else works correctly.
- Tested on PowerShell, CMD, and Git Bash (admin and normal).
- Verified that all required binaries work from the terminal.
- Enabled debug mode via
$env:ADK_DEBUG_LOGGING=1
– still no helpful log info.
Making sure to follow these steps will guarantee the quickest resolution possible.
Thanks!