Skip to content

[Bug]: dev extra's setuptools==82.0.1 pin is unsatisfiable alongside torch (setuptools<82 cap) #44692

Closed as not planned

Description

@benegessarit

What happened

The dev extra exact-pins setuptools==82.0.1, but torch (>= 2.11) declares Requires-Dist: setuptools<82. Any environment that resolves the dev extra together with torch is unsatisfiable — e.g. developing hermes-agent in an env that also carries a local embedding/reranker stack.

Reproduction

From a checkout of main:

$ uv pip install --dry-run ".[dev]" "torch==2.12.0"
  × No solution found when resolving dependencies:
  ╰─▶ Because only hermes-agent[dev]==0.16.0 is available and
      hermes-agent[dev]==0.16.0 depends on setuptools==82.0.1, we can conclude
      that all versions of hermes-agent[dev] depend on setuptools==82.0.1.
      And because torch==2.12.0 depends on setuptools<82, we can conclude that
      torch==2.12.0 and all versions of hermes-agent[dev] are incompatible.
      And because you require torch==2.12.0 and hermes-agent[dev], we can
      conclude that your requirements are unsatisfiable.

The cap is in torch's published metadata (PyPI requires_dist, torch 2.11.0 and 2.12.0): setuptools<82. torch 2.10.0 had no cap.

Expected behavior

The dev extra should be co-installable with torch. setuptools==81.0.0 is the latest release below torch's cap, and it stays inside the build-system support window already declared in pyproject.toml (setuptools>=77.0,<83).

Environment

  • hermes-agent main @ c57417005
  • macOS 26.4 (arm64), uv 0.9.29, Python 3.11

Proposed fix

Relax the dev pin to setuptools==81.0.0 (keeps the exact-pin style). Fix PR incoming.

Activity

  1. added
    type/bugSomething isn't working
    P2Medium — degraded but workaround exists
    dependenciesPull requests that update a dependency file
    python:uvPull requests that update python:uv code
    area/configConfig system, migrations, profiles
    on Jun 12, 2026
  2. szzhoujiarui-sketch commented on Jun 12, 2026

    @szzhoujiarui-sketch

    I would like to fix this issue and submit a PR.

  3. teknium1 commented on Jul 14, 2026

    @teknium1
    Collaborator

    Implemented on main via the salvaged fix from the linked PR #44693.

    • Automated hermes-sweeper review verified pyproject.toml:160 now pins the dev extra to setuptools==81.0.0, explicitly documenting torch's <82 cap.
    • uv.lock:1835 and uv.lock:3855-3860 consistently resolve and lock setuptools 81.0.0.
    • Commit 0bbff1fc7e132c7464986483b50e7048e68255b3 (fix(deps): declare websockets as core dep + relax dev setuptools pin) merged this exact compatibility fix and cites the linked salvage PR.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Medium — degraded but workaround existsarea/configConfig system, migrations, profilesdependenciesPull requests that update a dependency filepython:uvPull requests that update python:uv codesweeper:implemented-on-mainSweeper: behavior already present on current maintype/bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions