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

python web_demo.py报错 #352

Open
Dreamior opened this issue Apr 11, 2024 · 1 comment
Open

python web_demo.py报错 #352

Dreamior opened this issue Apr 11, 2024 · 1 comment

Comments

@Dreamior
Copy link

(visualglm) bit@ubuntu:~/LLM/VisualGLM-6B$ python web_demo.py --quant 4
Traceback (most recent call last):
File "/home/bit/LLM/VisualGLM-6B/web_demo.py", line 3, in
import gradio as gr
File "/home/bit/anaconda3/envs/visualglm/lib/python3.10/site-packages/gradio/init.py", line 3, in
import gradio._simple_templates
File "/home/bit/anaconda3/envs/visualglm/lib/python3.10/site-packages/gradio/_simple_templates/init.py", line 1, in
from .simpledropdown import SimpleDropdown
File "/home/bit/anaconda3/envs/visualglm/lib/python3.10/site-packages/gradio/_simple_templates/simpledropdown.py", line 6, in
from gradio.components.base import FormComponent
File "/home/bit/anaconda3/envs/visualglm/lib/python3.10/site-packages/gradio/components/init.py", line 1, in
from gradio.components.annotated_image import AnnotatedImage
File "/home/bit/anaconda3/envs/visualglm/lib/python3.10/site-packages/gradio/components/annotated_image.py", line 13, in
from gradio import processing_utils, utils
File "/home/bit/anaconda3/envs/visualglm/lib/python3.10/site-packages/gradio/processing_utils.py", line 30, in
async_client = httpx.AsyncClient()
File "/home/bit/anaconda3/envs/visualglm/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/bit/anaconda3/envs/visualglm/lib/python3.10/site-packages/httpx/_client.py", line 217, in _get_proxy_map
return {
File "/home/bit/anaconda3/envs/visualglm/lib/python3.10/site-packages/httpx/_client.py", line 218, in
key: None if url is None else Proxy(url=url)
File "/home/bit/anaconda3/envs/visualglm/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://127.0.0.1:7890/')

@LFWOvO
Copy link

LFWOvO commented Apr 17, 2024

You need to shut down all the proxy and start a new terminal to run the command

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