aider
aider copied to clipboard
Uncaught ValueError in _config.py line 214
Aider version: 0.75.1 Python version: 3.12.9 Platform: Linux-5.15.0-133-generic-x86_64-with-glibc2.31 Python implementation: CPython Virtual environment: Yes OS: Linux 5.15.0-133-generic (64bit) Git version: git version 2.48.1
An uncaught exception occurred:
Traceback (most recent call last):
File "aider", line 10, in <module>
sys.exit(main())
^^^^^^
File "main.py", line 1081, in main
coder.run()
File "base_coder.py", line 832, in run
self.run_one(user_message, preproc)
File "base_coder.py", line 879, in run_one
list(self.send_message(message))
File "base_coder.py", line 1304, in send_message
litellm_ex = LiteLLMExceptions()
^^^^^^^^^^^^^^^^^^^
File "exceptions.py", line 58, in __init__
self._load()
File "exceptions.py", line 61, in _load
import litellm
File "__init__.py", line 283, in <module>
module_level_aclient = AsyncHTTPHandler(
^^^^^^^^^^^^^^^^^
File "http_handler.py", line 101, in __init__
self.client = self.create_client(
^^^^^^^^^^^^^^^^^^^
File "http_handler.py", line 130, in create_client
return httpx.AsyncClient(
^^^^^^^^^^^^^^^^^^
File "_client.py", line 1400, in __init__
proxy_map = self._get_proxy_map(proxy, allow_env_proxies)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "_client.py", line 245, in _get_proxy_map
key: None if url is None else Proxy(url=url)
^^^^^^^^^^^^^^
File "_config.py", line 214, in __init__
raise ValueError(f"Unknown scheme for proxy URL {url!r}")
ValueError: Unknown scheme for proxy URL URL('socks://127.0.0.1:7890/')
Reinstall aider with httpcore[socks]
If you are using uv:
uv tool install --force --python python3.12 --with pip --with httpcore[socks] aider-chat@latest