请问mac之前一直都能用,目前网络配置代理失败怎么解决的,用 conda安装的,直接本地拒绝访问 #1318
ouyangmenngdi
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
[PROXY] 网络代理状态:已配置。配置信息如下: {'http': 'socks5h://127.0.0.1:7890', 'https': 'socks5h://127.0.0.1:7890'}
所有问询记录将自动保存在本地目录./gpt_log/chat_secrets.log, 请注意自我隐私保护哦!
代理配置 socks5h://127.0.0.1:7890, 代理所在地:China - China Unicom CHINA169 Guangdong Network
[API_KEY] 本项目现已支持OpenAI和Azure的api-key。也支持同时填写多个api-key,如API_KEY="openai-key1,openai-key2,azure-key3"
[API_KEY] 您既可以在config.py中修改api-key(s),也可以在问题输入区输入临时的api-key(s),然后回车键提交后即可生效。
[API_KEY] 您的 API_KEY 是: sk-ixGbriMxFRy9*** API_KEY 导入成功
如果浏览器没有自动打开,请复制并转到以下URL:
「暗色主题已启用(支持动态切换主题)」: http://localhost:62540
Traceback (most recent call last):
File "/Users/ouyang/miniconda3/envs/gptac_venv/lib/python3.11/site-packages/urllib3/connection.py", line 203, in _new_conn
sock = connection.create_connection(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/ouyang/miniconda3/envs/gptac_venv/lib/python3.11/site-packages/urllib3/util/connection.py", line 60, in create_connection
for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/ouyang/miniconda3/envs/gptac_venv/lib/python3.11/socket.py", line 962, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
socket.gaierror: [Errno 8] nodename nor servname provided, or not known
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/Users/ouyang/miniconda3/envs/gptac_venv/lib/python3.11/site-packages/urllib3/connectionpool.py", line 790, in urlopen
response = self._make_request(
^^^^^^^^^^^^^^^^^^^
File "/Users/ouyang/miniconda3/envs/gptac_venv/lib/python3.11/site-packages/urllib3/connectionpool.py", line 496, in _make_request
conn.request(
File "/Users/ouyang/miniconda3/envs/gptac_venv/lib/python3.11/site-packages/urllib3/connection.py", line 395, in request
self.endheaders()
File "/Users/ouyang/miniconda3/envs/gptac_venv/lib/python3.11/http/client.py", line 1281, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/Users/ouyang/miniconda3/envs/gptac_venv/lib/python3.11/http/client.py", line 1041, in _send_output
self.send(msg)
File "/Users/ouyang/miniconda3/envs/gptac_venv/lib/python3.11/http/client.py", line 979, in send
self.connect()
File "/Users/ouyang/miniconda3/envs/gptac_venv/lib/python3.11/site-packages/urllib3/connection.py", line 243, in connect
self.sock = self._new_conn()
^^^^^^^^^^^^^^^^
File "/Users/ouyang/miniconda3/envs/gptac_venv/lib/python3.11/site-packages/urllib3/connection.py", line 210, in _new_conn
raise NameResolutionError(self.host, self, e) from e
urllib3.exceptions.NameResolutionError: <urllib3.connection.HTTPConnection object at 0x143110890>: Failed to resolve 'localhost' ([Errno 8] nodename nor servname provided, or not known)
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/Users/ouyang/miniconda3/envs/gptac_venv/lib/python3.11/site-packages/requests/adapters.py", line 486, in send
resp = conn.urlopen(
^^^^^^^^^^^^^
File "/Users/ouyang/miniconda3/envs/gptac_venv/lib/python3.11/site-packages/urllib3/connectionpool.py", line 844, in urlopen
retries = retries.increment(
^^^^^^^^^^^^^^^^^^
File "/Users/ouyang/miniconda3/envs/gptac_venv/lib/python3.11/site-packages/urllib3/util/retry.py", line 515, in increment
raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=62540): Max retries exceeded with url: /startup-events (Caused by NameResolutionError("<urllib3.connection.HTTPConnection object at 0x143110890>: Failed to resolve 'localhost' ([Errno 8] nodename nor servname provided, or not known)"))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/ouyang/gpt_academic/main.py", line 448, in
main()
File "/Users/ouyang/gpt_academic/main.py", line 427, in main
demo.queue(concurrency_count=CONCURRENT_COUNT).launch(
File "/Users/ouyang/miniconda3/envs/gptac_venv/lib/python3.11/site-packages/gradio/blocks.py", line 1775, in launch
requests.get(f"{self.local_url}startup-events", verify=ssl_verify)
File "/Users/ouyang/miniconda3/envs/gptac_venv/lib/python3.11/site-packages/requests/api.py", line 73, in get
return request("get", url, params=params, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/ouyang/miniconda3/envs/gptac_venv/lib/python3.11/site-packages/requests/api.py", line 59, in request
return session.request(method=method, url=url, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/ouyang/miniconda3/envs/gptac_venv/lib/python3.11/site-packages/requests/sessions.py", line 589, in request
resp = self.send(prep, **send_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/ouyang/miniconda3/envs/gptac_venv/lib/python3.11/site-packages/requests/sessions.py", line 703, in send
r = adapter.send(request, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/ouyang/miniconda3/envs/gptac_venv/lib/python3.11/site-packages/requests/adapters.py", line 519, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=62540): Max retries exceeded with url: /startup-events (Caused by NameResolutionError("<urllib3.connection.HTTPConnection object at 0x143110890>: Failed to resolve 'localhost' ([Errno 8] nodename nor servname provided, or not known)"))
(gptac_venv) ouyang@ouyangdeMacBook-Pro gpt_academic %
Beta Was this translation helpful? Give feedback.
All reactions