Skip to content
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://localhost:10808/') #134

Open
AImagicAI opened this issue Mar 28, 2024 · 1 comment

Comments

@AImagicAI
Copy link

Hello, I encountered the following error while running Python demo/seed/app. py. How should I resolve it? Thank you·

Traceback (most recent call last):
File "/home/cv8888/byf/industrial_vision/SAM/Segment-Everything-Everywhere-All-At-Once/demo/seem/app.py", line 14, in
import gradio as gr
File "/home/cv8888/anaconda3/envs/efficientvit/lib/python3.10/site-packages/gradio/init.py", line 3, in
import gradio._simple_templates
File "/home/cv8888/anaconda3/envs/efficientvit/lib/python3.10/site-packages/gradio/_simple_templates/init.py", line 1, in
from .simpledropdown import SimpleDropdown
File "/home/cv8888/anaconda3/envs/efficientvit/lib/python3.10/site-packages/gradio/_simple_templates/simpledropdown.py", line 6, in
from gradio.components.base import FormComponent
File "/home/cv8888/anaconda3/envs/efficientvit/lib/python3.10/site-packages/gradio/components/init.py", line 1, in
from gradio.components.annotated_image import AnnotatedImage
File "/home/cv8888/anaconda3/envs/efficientvit/lib/python3.10/site-packages/gradio/components/annotated_image.py", line 14, in
from gradio.components.base import Component
File "/home/cv8888/anaconda3/envs/efficientvit/lib/python3.10/site-packages/gradio/components/base.py", line 20, in
from gradio.blocks import Block, BlockContext
File "/home/cv8888/anaconda3/envs/efficientvit/lib/python3.10/site-packages/gradio/blocks.py", line 29, in
from gradio import (
File "/home/cv8888/anaconda3/envs/efficientvit/lib/python3.10/site-packages/gradio/networking.py", line 13, in
from gradio.routes import App # HACK: to avoid circular import # noqa: F401
File "/home/cv8888/anaconda3/envs/efficientvit/lib/python3.10/site-packages/gradio/routes.py", line 137, in
client = httpx.AsyncClient()
File "/home/cv8888/anaconda3/envs/efficientvit/lib/python3.10/site-packages/httpx/_client.py", line 1429, in init
proxy_map = self._get_proxy_map(proxies or proxy, allow_env_proxies)
File "/home/cv8888/anaconda3/envs/efficientvit/lib/python3.10/site-packages/httpx/_client.py", line 217, in _get_proxy_map
return {
File "/home/cv8888/anaconda3/envs/efficientvit/lib/python3.10/site-packages/httpx/_client.py", line 218, in
key: None if url is None else Proxy(url=url)
File "/home/cv8888/anaconda3/envs/efficientvit/lib/python3.10/site-packages/httpx/_config.py", line 336, in init
raise ValueError(f"Unknown scheme for proxy URL {url!r}")
ValueError: Unknown scheme for proxy URL URL('socks://localhost:10808/')

@jwyang
Copy link
Collaborator

jwyang commented Apr 5, 2024

you probably need to upgrade/change the gradio version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants