Skip to content

fix(opamp-client): add missing requests dependency - #4930

Open
theycallmeloki wants to merge 2 commits into
open-telemetry:mainfrom
theycallmeloki:fix/opamp-requests-dep
Open

fix(opamp-client): add missing requests dependency#4930
theycallmeloki wants to merge 2 commits into
open-telemetry:mainfrom
theycallmeloki:fix/opamp-requests-dep

Conversation

@theycallmeloki

Copy link
Copy Markdown

fix(opamp-client): add missing requests dependency

Fixes #4929

opentelemetry._opamp.transport.requests imports the requests package but
pyproject.toml never declared it, so import opentelemetry._opamp.client
raised ModuleNotFoundError in a fresh environment.

Adds requests ~= 2.0 to the dependencies (same pin as
opentelemetry-instrumentation-requests).

Verified: fresh venv install of the package now imports cleanly.

Signed-off-by: Loki San <ogmiladyloki@gmail.com>

@pmcollins pmcollins left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs changelog tweak but otherwise LGTM.

Comment thread opamp/opentelemetry-opamp-client/.changelog/4930.fixed
Signed-off-by: Loki San <ogmiladyloki@gmail.com>
@theycallmeloki

theycallmeloki commented Aug 6, 2026

Copy link
Copy Markdown
Author

Done: renamed to .changelog/4930.fixed (PR number, no extension) and pushed to the branch. Thanks @pmcollins!

@emdneto emdneto moved this to Easy to review / merge / close in Python PR digest Aug 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Easy to review / merge / close

Development

Successfully merging this pull request may close these issues.

opentelemetry-opamp-client requires requests package but is not included in dependencies in pyprojec.toml

3 participants