-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ValueError: Unknown scheme for proxy URL URL('socks://127.0.0.1:7890/') #9
Comments
I haven't seen this before. I tried installing litdb in a uv venv with python 3.13, but it was unable to resolve the package requirements. Are you able to run ollama in a shell, eg
Are you using a VPN? and a current version of ollama and the ollama python library? |
ollama run llama2 is normal. Yes, I used a VPN, and the settings are http_proxy and https_proxy. ollama version is 0.5.4. I downloaded ollama manually and used it directly. (myenv) ➜ ~ litdb --help |
I don't know what the fix is, maybe it is a library path issue, or you have to reinstall some combination of torch, cuda, etc. |
➜ litdb /home/vivlio/mnt/anaconda3/envs/myenv/bin/litdb --help
Traceback (most recent call last):
File "/home/vivlio/mnt/anaconda3/envs/myenv/bin/litdb", line 5, in
from litdb.cli import cli
File "/home/vivlio/mnt/anaconda3/envs/myenv/lib/python3.13/site-packages/litdb/cli.py", line 24, in
import ollama
File "/home/vivlio/mnt/anaconda3/envs/myenv/lib/python3.13/site-packages/ollama/init.py", line 38, in
_client = Client()
File "/home/vivlio/mnt/anaconda3/envs/myenv/lib/python3.13/site-packages/ollama/_client.py", line 115, in init
super().init(httpx.Client, host, **kwargs)
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/vivlio/mnt/anaconda3/envs/myenv/lib/python3.13/site-packages/ollama/_client.py", line 95, in init
self._client = client(
~~~~~~^
base_url=_parse_host(host or os.getenv('OLLAMA_HOST')),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...<12 lines>...
**kwargs,
^^^^^^^^^
)
^
File "/home/vivlio/mnt/anaconda3/envs/myenv/lib/python3.13/site-packages/httpx/_client.py", line 693, in init
proxy_map = self._get_proxy_map(proxies or proxy, allow_env_proxies)
File "/home/vivlio/mnt/anaconda3/envs/myenv/lib/python3.13/site-packages/httpx/_client.py", line 219, in _get_proxy_map
key: None if url is None else Proxy(url=url)
~~~~~^^^^^^^^^
File "/home/vivlio/mnt/anaconda3/envs/myenv/lib/python3.13/site-packages/httpx/_config.py", line 338, 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/')
The text was updated successfully, but these errors were encountered: