Skip to content

fix: declare click as an explicit runtime dependency#267

Open
Dongbumlee wants to merge 2 commits into
developfrom
feature/add-click-dependency
Open

fix: declare click as an explicit runtime dependency#267
Dongbumlee wants to merge 2 commits into
developfrom
feature/add-click-dependency

Conversation

@Dongbumlee

Copy link
Copy Markdown
Collaborator

Summary

Declares click as an explicit runtime dependency so a clean pip install agentops-accelerator no longer crashes on the explain / manual commands.

Problem

The CLI imports click directly for its pager and manual output paths (app.py _emit_manual_output / _emit_doctor_explain). click was only available transitively via Typer, but Typer 0.26+ no longer depends on click. As a result, a fresh install of the published agentops-accelerator (0.3.11) crashes:

\
$ agentops explain
ModuleNotFoundError: No module named 'click'
\\

This affects agentops explain, agentops init explain, and agentops doctor explain (all formats/flags). It was masked in dev/editable installs and when the [foundry] extra is installed (which pulls click transitively), but the base install is broken.

Fix

Add click>=8.1,<9 to [project].dependencies in pyproject.toml.

Verification

Found via a full E2E test of the published 0.3.11 package in a fresh venv (44-case command/parameter matrix). Fix verified by building the wheel from this branch and installing it into a brand-new clean venv: click is pulled automatically and both agentops explain and agentops doctor explain exit 0.

No version bump (setuptools-scm owns versioning). Changelog updated under [Unreleased] > Fixed.

Dongbumlee and others added 2 commits June 8, 2026 13:59
The CLI imports click directly for its pager and manual output paths
(agentops explain, init explain, doctor explain). click was previously
only available transitively via Typer, but Typer 0.26+ no longer depends
on click, so a clean 'pip install agentops-accelerator' crashed every
explain command with ModuleNotFoundError: No module named 'click'.

Add click>=8.1,<9 to project.dependencies so the manual/pager paths work
on a fresh install. Verified by building the wheel and installing it into
a clean venv: click is pulled automatically and 'agentops explain' and
'agentops doctor explain' exit 0.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
set_env_values expects a Path, but location.env_path is Path | None.
Return early when env_path is None, fixing the lint (mypy) gate.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@Dongbumlee Dongbumlee requested a review from placerda June 9, 2026 00:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant