Skip to content

ADK 2.0 CLI fails at creation command due to module not found error #5766

@michel7x

Description

@michel7x

🔴 Required Information

Describe the Bug:
After installing Google ADK 2.0.0 and running the command adk create it fails complaining about a missing module 'google.cloud'

Steps to Reproduce:
Please provide a numbered list of steps to reproduce the behavior:

  1. Create virtual environmentpython -m venv .adk-2.0-venv && source .adk-2.0-venv/bin/activate
  2. Install latest ADK pip install google-adk
  3. Run adk create my_agent
  4. ModuleNotFoundError: No module named 'google.cloud

Expected Behavior:
An input prompt to select model. See example below:

Choose a model for the root agent:
1. gemini-2.5-flash
2. Other models (fill later)
Choose model (1, 2):

Observed Behavior:
It fails complaining about missing module 'google.cloud'

Environment Details:

  • ADK Library Version (pip show google-adk):
Name: google-adk
Version: 2.0.0
Summary: Agent Development Kit
Home-page: https://google.github.io/adk-docs/
Author: 
Author-email: Google LLC <googleapis-packages@google.com>
License: 
Location: /Users/michel7x/workspace/autobots/ai-sandbox/.adk-2.0-venv/lib/python3.12/site-packages
Requires: aiosqlite, authlib, click, fastapi, google-auth, google-genai, graphviz, httpx, jsonschema, opentelemetry-api, opentelemetry-sdk, packaging, pydantic, python-dotenv, pyyaml, requests, starlette, tenacity, typing-extensions, tzlocal, uvicorn, watchdog, websockets
Required-by:
  • Desktop OS:** macOS
  • Python Version (python -V): Python 3.12.12

🟡 Optional Information

Logs

➜  ((.adk-2.0-venv) ) ai-sandbox adk create my_agent
Traceback (most recent call last):
  File "/Users/michel7x/workspace/autobots/ai-sandbox/.adk-2.0-venv/bin/adk", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/Users/michel7x/workspace/autobots/ai-sandbox/.adk-2.0-venv/lib/python3.12/site-packages/click/core.py", line 1524, in __call__
    return self.main(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/michel7x/workspace/autobots/ai-sandbox/.adk-2.0-venv/lib/python3.12/site-packages/click/core.py", line 1445, in main
    rv = self.invoke(ctx)
         ^^^^^^^^^^^^^^^^
  File "/Users/michel7x/workspace/autobots/ai-sandbox/.adk-2.0-venv/lib/python3.12/site-packages/click/core.py", line 1912, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/michel7x/workspace/autobots/ai-sandbox/.adk-2.0-venv/lib/python3.12/site-packages/click/core.py", line 1308, in invoke
    return ctx.invoke(self.callback, **ctx.params)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/michel7x/workspace/autobots/ai-sandbox/.adk-2.0-venv/lib/python3.12/site-packages/click/core.py", line 877, in invoke
    return callback(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/michel7x/workspace/autobots/ai-sandbox/.adk-2.0-venv/lib/python3.12/site-packages/google/adk/cli/cli_tools_click.py", line 489, in cli_create_cmd
    from . import cli_create
  File "/Users/michel7x/workspace/autobots/ai-sandbox/.adk-2.0-venv/lib/python3.12/site-packages/google/adk/cli/cli_create.py", line 23, in <module>
    from .utils import _onboarding
  File "/Users/michel7x/workspace/autobots/ai-sandbox/.adk-2.0-venv/lib/python3.12/site-packages/google/adk/cli/utils/_onboarding.py", line 26, in <module>
    from . import gcp_utils
  File "/Users/michel7x/workspace/autobots/ai-sandbox/.adk-2.0-venv/lib/python3.12/site-packages/google/adk/cli/utils/gcp_utils.py", line 30, in <module>
    from google.cloud import resourcemanager_v3
ModuleNotFoundError: No module named 'google.cloud'

Regression:
Did this work in a previous version of ADK? If so, which one?
Yes, version 1.34.0

How often has this issue occurred?:

  • Always (100%)

Metadata

Metadata

Assignees

Labels

core[Component] This issue is related to the core interface and implementationv2Affects only 2.0 version

Type

No fields configured for Bug.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions