Skip to content

Commit 7a9aec7

Browse files
authored
fix: Add packaging to base dependencies (#897)
# Description This PR resolves an issue where installing the `a2a-sdk` from a fresh environment resulted in a ModuleNotFoundError: No module named 'packaging' error at runtime. The packaging library is a core runtime requirement; it is imported by several components such as `client_factory.py`, `versions.py`, and `helpers.py` to parse and validate protocol versions (e.g., Version(VERSION_STRING)). However, it was previously omitted from the base dependencies in `pyproject.toml`. This has been resolved by adding `packaging>=24.0` to the base dependencies list in `pyproject.toml`. Packaging dependency was first introduced here: https://github.com/a2aproject/a2a-python/blob/e4b365306d554014bbb2195ad2a3d3c85e01cf78/src/a2a/client/client_factory.py#L10 # Changes Made Added "packaging>=24.0" to the dependencies array in pyproject.toml.
1 parent 4be2064 commit 7a9aec7

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ dependencies = [
1616
"json-rpc>=1.15.0",
1717
"googleapis-common-protos>=1.70.0",
1818
"culsans>=0.11.0 ; python_full_version < '3.13'",
19+
"packaging>=24.0",
1920
]
2021

2122
classifiers = [

uv.lock

Lines changed: 5 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)