Skip to content

[Bug] adk deploy agent_engine Fails on Windows with [WinError 2] Despite All Dependencies Installed #5437

Open
@yashsarvaiya1

Description

@yashsarvaiya1

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":

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

  1. Install Vertex AI SDK:
    pip install google-cloud-aiplatform[adk,agent_engines]
  2. Create an agent:
    adk create firstagent
  3. Edit firstagent/.env with correct project info:
  4. PROJECT_ID=...
    LOCATION=us-central1
    STAGING_BUCKET=gs://my-bucket-name
      
  5. Deploy with:
    adk deploy agent_engine firstagent

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!

Metadata

Metadata

Assignees

Labels

api: vertex-aiIssues related to the googleapis/python-aiplatform API.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions