Skip to content

[Crash] ImportError: Using SOCKS proxy, but the 'socksio' package is not installed. Make sure to install httpx using pip install httpx[socks]. #4245

Description

@Winggggg

Description

This crash was auto-reported by Omnigent's crash handler.

Exception: ImportError: Using SOCKS proxy, but the 'socksio' package is not installed. Make sure to install httpx using pip install httpx[socks].

Command:

/Users/hwy/.local/bin/omnigent cursor

Traceback:

Traceback (most recent call last):
  File "/Users/hwy/.local/share/uv/tools/omnigent/lib/python3.12/site-packages/omnigent/cli.py", line 1836, in main
    cli(args=argv, standalone_mode=False)
  File "/Users/hwy/.local/share/uv/tools/omnigent/lib/python3.12/site-packages/click/core.py", line 1569, in __call__
    return self.main(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/hwy/.local/share/uv/tools/omnigent/lib/python3.12/site-packages/click/core.py", line 1490, in main
    rv = self.invoke(ctx)
         ^^^^^^^^^^^^^^^^
  File "/Users/hwy/.local/share/uv/tools/omnigent/lib/python3.12/site-packages/click/core.py", line 1970, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/hwy/.local/share/uv/tools/omnigent/lib/python3.12/site-packages/click/core.py", line 1353, in invoke
    return ctx.invoke(self.callback, **ctx.params)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/hwy/.local/share/uv/tools/omnigent/lib/python3.12/site-packages/click/core.py", line 907, in invoke
    return callback(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/hwy/.local/share/uv/tools/omnigent/lib/python3.12/site-packages/omnigent/cli_native.py", line 665, in cursor
    server = _ensure_backend(server)
             ^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/hwy/.local/share/uv/tools/omnigent/lib/python3.12/site-packages/omnigent/cli_native.py", line 47, in proxy
    return getter()(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/hwy/.local/share/uv/tools/omnigent/lib/python3.12/site-packages/omnigent/cli.py", line 2961, in _ensure_backend
    config_changed = _ensure_host_daemon(None)
                     ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/hwy/.local/share/uv/tools/omnigent/lib/python3.12/site-packages/omnigent/cli.py", line 2750, in _ensure_host_daemon
    decision = _reuse_existing_daemon_record(target)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/hwy/.local/share/uv/tools/omnigent/lib/python3.12/site-packages/omnigent/cli.py", line 2523, in _reuse_existing_daemon_record
    if age_s >= _DAEMON_REUSE_MIN_AGE_S and not _daemon_tunnel_recovers(existing):
                                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/hwy/.local/share/uv/tools/omnigent/lib/python3.12/site-packages/omnigent/cli.py", line 2393, in _daemon_tunnel_recovers
    if _daemon_host_online(record):
       ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/hwy/.local/share/uv/tools/omnigent/lib/python3.12/site-packages/omnigent/cli.py", line 2142, in _daemon_host_online
    result = _host_http_json(
             ^^^^^^^^^^^^^^^^
  File "/Users/hwy/.local/share/uv/tools/omnigent/lib/python3.12/site-packages/omnigent/cli.py", line 7484, in _host_http_json
    with httpx.Client(
         ^^^^^^^^^^^^^
  File "/Users/hwy/.local/share/uv/tools/omnigent/lib/python3.12/site-packages/httpx/_client.py", line 700, in __init__
    else self._init_proxy_transport(
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/hwy/.local/share/uv/tools/omnigent/lib/python3.12/site-packages/httpx/_client.py", line 750, in _init_proxy_transport
    return HTTPTransport(
           ^^^^^^^^^^^^^^
  File "/Users/hwy/.local/share/uv/tools/omnigent/lib/python3.12/site-packages/httpx/_transports/default.py", line 191, in __init__
    raise ImportError(
ImportError: Using SOCKS proxy, but the 'socksio' package is not installed. Make sure to install httpx using `pip install httpx[socks]`.

Steps to reproduce

omnigent cursor

Version

0.8.2

OS

macOS-26.4

Harness

No response

Harness mode

No response

Platform or device

No response

Observed impact

No response

Authentication type

No response

Metadata

Metadata

Assignees

Labels

BugSomething isn't workingP2-mediumPriority: bug with workaround, important feature requestcomp:serverComponent: server, API, session managementtriagedIssue has been triaged by the botvalidated:reproducedRepro agent validated the issue can be reproduced

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions