simonw / llm

Access large language models from the command-line
https://llm.datasette.io
Apache License 2.0
4.31k stars 237 forks source link

some plugins fail to install with "Connection refused" error #479

Closed nhoffman closed 5 months ago

nhoffman commented 5 months ago

Hello - using llm version 0.13.1 (just installed using pipx), some (but not all) plugins fail to install:

llm-ollama installed without an issue:

% llm install llm-ollama
...
% llm plugins
[
  {
    "name": "llm-ollama",
    "hooks": [
      "register_commands",
      "register_models"
    ],
    "version": "0.2.0"
  }
]

but others fail:

% llm install llm-cmd
Collecting llm-cmd
  WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x1067ba410>: Failed to establish a new connection: [Errno 61] Connection refused')': /packages/e0/d1/caaeb1ffe8cdc131bda41cff37a35f95ad3ab8305e6a01aaa74ce61e2a1b/llm_cmd-0.1a0-py3-none-any.whl.metadata
  WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x1067d2110>: Failed to establish a new connection: [Errno 61] Connection refused')': /packages/e0/d1/caaeb1ffe8cdc131bda41cff37a35f95ad3ab8305e6a01aaa74ce61e2a1b/llm_cmd-0.1a0-py3-none-any.whl.metadata
  WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x1067d2990>: Failed to establish a new connection: [Errno 61] Connection refused')': /packages/e0/d1/caaeb1ffe8cdc131bda41cff37a35f95ad3ab8305e6a01aaa74ce61e2a1b/llm_cmd-0.1a0-py3-none-any.whl.metadata
  WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x1067d3250>: Failed to establish a new connection: [Errno 61] Connection refused')': /packages/e0/d1/caaeb1ffe8cdc131bda41cff37a35f95ad3ab8305e6a01aaa74ce61e2a1b/llm_cmd-0.1a0-py3-none-any.whl.metadata
  WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x1067d3b50>: Failed to establish a new connection: [Errno 61] Connection refused')': /packages/e0/d1/caaeb1ffe8cdc131bda41cff37a35f95ad3ab8305e6a01aaa74ce61e2a1b/llm_cmd-0.1a0-py3-none-any.whl.metadata
ERROR: Could not install packages due to an OSError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Max retries exceeded with url: /packages/e0/d1/caaeb1ffe8cdc131bda41cff37a35f95ad3ab8305e6a01aaa74ce61e2a1b/llm_cmd-0.1a0-py3-none-any.whl.metadata (Caused by NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x1067e0490>: Failed to establish a new connection: [Errno 61] Connection refused'))

I see the same sort of error for llm install llm-claude-3

I'm on MacOS Sonoma using Python 3.11.9 installed with pyenv. Please let me know if additional system info would be helpful.

nhoffman commented 5 months ago

Ok, apologies - this appears to have been due to a firewall issue on my end. llm-ollama must have worked because it was cached. I'm closing this.

Thanks for llm!