google-adk[db] is missing greenlet
Maintainer thường phản hồi trong vòng 5 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 76/100
Hướng nghiên cứu
Tái hiện lỗi bằng cách cài đặt google-adk[db] với SQLAlchemy 2.1 và khởi tạo DatabaseSessionService. Kiểm tra metadata về các dependency của package và database_session_service.py xung quanh lệnh gọi create_async_engine. Hoàn tất khi extra db cài đặt dependency bất đồng bộ cần thiết và DatabaseSessionService được khởi tạo mà không gặp NameError đã báo cáo.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
🔴 Required Information
Describe the Bug:
With the recent new release of sqlalchemy (v2.1), sqlalchemy does no longer install the greenlet dependency by default. Consequently, with only google-adk[db] and an install after the release of sqlalchemy in v2.1, the db-related async functionality is missing and instantiating DatabaseSessionService results in NameError: name 'create_async_engine' is not defined.
Steps to Reproduce:
- Install 'google-adk[db]' (tested with
v2.10.0); this needs to installsqlalchemy>=2.1 - Instantiate a DatabaseSessionService
- Observe the error
db_engine = create_async_engine(db_url, **engine_kwargs)
^^^^^^^^^^^^^^^^^^^
E NameError: name 'create_async_engine' is not defined
.venv/lib/python3.13/site-packages/google/adk/sessions/database_session_service.py:393: NameError
Expected Behavior:
Instantiating DatabaseSessionService should pass normally.
Observed Behavior:
A NameError occurs due to the missing greenlet dependency.
Environment Details:
- ADK Library Version (pip show google-adk):
2.10.0(but earlier version should be affected alike) - Desktop OS:** Ubuntu 24.04 on WSL under Windows 11
- Python Version (python -V):
3.13.13
Model Information:
- Are you using LiteLLM: No
- Which model is being used:
gemini-3.7-flash
🟡 Optional Information
Regression:
This worked fine with ~v2.0 of sqlalchemy.
Additional Context:
Additionally installing greenlet (resp. sqlalchemy[asyncio]) solves the issue, but since ADK relies on async session so heavily, google-adk[db] really just should install sqlalchemy with the asyncio extra.
- Ngôn ngữ chính
- Python
- Star
- 21.6k
- Fork
- 4k
- Merge trung bình
- 12 giờ 6 phút
- Pull request đã merge (30 ngày)
- 4
Chuẩn bị môi trường
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của google/adk-python
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
google/adk-python#7334 · 2 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 5 ngày
-
GoogleOidcVerifier treats string "false" as a verified email claimCó thể đã có người làm @surajksharma07 đã nhận 2 ngày trước. Đang mởcore
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
google/adk-python#7289 · 5 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 5 ngày
-
RestApiTool raises uncaught KeyError when a required path param is omittedCó thể đã có người làm @llalitkumarrr đã nhận 2 ngày trước. Đang mởrequest clarification tools
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
google/adk-python#7282 · 3 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 5 ngày
-
CredentialsManager should also extract scopes when populating auth schemesCó thể đã có người làm @sanketpatil06 đã nhận 5 ngày trước. Đang mởcore needs review
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
google/adk-python#7266 · 2 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 5 ngày
-
OAuth2 Discovery method fails because FastMCP with GoogleProvider (OAuth) returns issuerUrl with trailing slashCó thể đã có người làm @sanketpatil06 đã nhận 5 ngày trước. Đang mởmcp
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
google/adk-python#7265 · 3 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 5 ngày
Tất cả issue của google/adk-python
Issue tương tự
-
customer-reported
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Azure/azure-cli#34150 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
community-request
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 95/100
NVIDIA-NeMo/Curator#2464 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
weblate-discover crashes with an unhandled FileNotFoundError when the directory does not existĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
WeblateOrg/translation-finder#1099 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
trezor/trezor-firmware#7997 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
Maintainer thường phản hồi trong vòng 1 ngày