Skip to content

[Bug]: Failed to initialize agent: The 'anthropic' package is required for the Anthropic provider. Install it with: pip install 'anthropic>=0.39.0' #30149

Open

Description

@arch1mede

Bug Description

I keep getting this same error message even though I followed the directions

pip install 'anthropic>=0.39.0'
Requirement already satisfied: anthropic>=0.39.0 in C:\Python314\Lib\site-packages (0.104.0)
Requirement already satisfied: anyio<5,>=3.5.0 in C:\Python314\Lib\site-packages (from anthropic>=0.39.0) (4.13.0)
Requirement already satisfied: distro<2,>=1.7.0 in C:\Python314\Lib\site-packages (from anthropic>=0.39.0) (1.9.0)
Requirement already satisfied: docstring-parser<1,>=0.15 in C:\Python314\Lib\site-packages (from anthropic>=0.39.0) (0.18.0)
Requirement already satisfied: httpx<1,>=0.25.0 in C:\Python314\Lib\site-packages (from anthropic>=0.39.0) (0.28.1)
Requirement already satisfied: jiter<1,>=0.4.0 in C:\Python314\Lib\site-packages (from anthropic>=0.39.0) (0.15.0)
Requirement already satisfied: pydantic<3,>=1.9.0 in C:\Python314\Lib\site-packages (from anthropic>=0.39.0) (2.13.4)
Requirement already satisfied: sniffio in C:\Python314\Lib\site-packages (from anthropic>=0.39.0) (1.3.1)
Requirement already satisfied: typing-extensions<5,>=4.14 in C:\Python314\Lib\site-packages (from anthropic>=0.39.0) (4.15.0)
Requirement already satisfied: idna>=2.8 in C:\Python314\Lib\site-packages (from anyio<5,>=3.5.0->anthropic>=0.39.0) (3.16)
Requirement already satisfied: certifi in C:\Python314\Lib\site-packages (from httpx<1,>=0.25.0->anthropic>=0.39.0) (2026.5.20)
Requirement already satisfied: httpcore==1.* in C:\Python314\Lib\site-packages (from httpx<1,>=0.25.0->anthropic>=0.39.0) (1.0.9)
Requirement already satisfied: h11>=0.16 in C:\Python314\Lib\site-packages (from httpcore==1.*->httpx<1,>=0.25.0->anthropic>=0.39.0) (0.16.0)
Requirement already satisfied: annotated-types>=0.6.0 in C:\Python314\Lib\site-packages (from pydantic<3,>=1.9.0->anthropic>=0.39.0) (0.7.0)
Requirement already satisfied: pydantic-core==2.46.4 in C:\Python314\Lib\site-packages (from pydantic<3,>=1.9.0->anthropic>=0.39.0) (2.46.4)
Requirement already satisfied: typing-inspection>=0.4.2 in C:\Python314\Lib\site-packages (from pydantic<3,>=1.9.0->anthropic>=0.39.0) (0.4.2)`

Also it would be very helpful to include the tokens left as a replacement bar on the bottom, im not sure what this represents but its not at all helpful

### Steps to Reproduce

Same error as above

### Expected Behavior

For it to work

### Actual Behavior

Getting an error

### Affected Component

CLI (interactive chat)

### Messaging Platform (if gateway-related)

_No response_

### Debug Report

```shell
Debug report uploaded:
  Report       https://paste.rs/fDOxc
  agent.log    https://paste.rs/6aoXx
  gateway.log  https://paste.rs/bByHc

Operating System

Win 11

Python Version

No response

Hermes Version

No response

Additional Logs / Traceback (optional)

Root Cause Analysis (optional)

No response

Proposed Fix (optional)

No response

Are you willing to submit a PR for this?

  • I'd like to fix this myself and submit a PR

Activity

  1. added
    type/bugSomething isn't working
    P3Low — cosmetic, nice to have
    area/configConfig system, migrations, profiles
    on May 22, 2026
  2. GottZ commented on Jul 31, 2026

    @GottZ

    This was generated by AI during triage.

    Summary

    One PR, #30157, addresses #30149 by replacing the opaque missing-package error with diagnostics that expose the active interpreter, the underlying import failure, and an interpreter-mismatch hint across the Anthropic, Bedrock, and Azure paths. Its diff targets the reported diagnostic failure, but it does not establish the reporter’s exact root cause and currently contains a stale dependency specification plus incomplete public-path coverage.

    Related pull requests

    Suggested consolidation

    Author action: rebase #30157 onto main, or split out the part that can merge. #30157 remains the best existing fix because its diagnostic changes directly address the opaque failure reported in #30149, and the contributor keep_open review supports its high-salvageability direction; before further consideration, update the installation guidance to the canonical supported spec and cover the Azure unavailable-SDK behavior through the public build_anthropic_client entry point.

    Complex graph

    flowchart LR
        classDef open fill:#dbeafe,stroke:#1d4ed8,color:#1e3a8a
        classDef merged fill:#dcfce7,stroke:#15803d,color:#14532d
        classDef closed fill:#e5e7eb,stroke:#6b7280,color:#1f2937
        classDef unverified fill:#f3f4f6,stroke:#9ca3af,color:#374151
        classDef best stroke-width:3px,stroke:#b45309
        classDef target stroke-width:3px,stroke:#4338ca
        I30149(["issue #30149 (open)"])
        P30157["PR #30157 (open)"]
        P30157 -->|best fix| I30149
        class I30149 open
        class I30149 target
        class P30157 open
        class P30157 best
        click I30149 "https://github.com/NousResearch/hermes-agent/issues/30149"
        click P30157 "https://github.com/NousResearch/hermes-agent/pull/30157"
    
    Loading

    Graph: solid arrow = fixes / best fix, dashed arrow = partial or unverified (see edge label); boxed group = PRs duplicating each other; amber border = best fix; indigo border = target; gray node = closed (state tag in the node label).

    Cross-PR triage: Reviewed 1 pull request and 1 issue in this complex. Each diff was read against this issue; Assessment working set: 16 kB of PR diffs, 9 kB of issue/PR text, 1 kB of discussion (1 comments), 2 verify verdicts. verdicts reflect diff content, not PR titles. Part of an automated triage batch.

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

    P3Low — cosmetic, nice to havearea/configConfig system, migrations, profilesarea/install-updateInstaller, updater, packaging, wheels, doctorprovider/anthropicAnthropic native Messages APItype/bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions