GithubHelp home page GithubHelp logo

Comments (12)

guiniao avatar guiniao commented on June 4, 2024

报错详细信息:

Traceback (most recent call last):
File "/usr/local/anaconda/envs/foundation_models/lib/python3.9/site-packages/httpcore/_exceptions.py", line 10, in map_exceptions
yield
File "/usr/local/anaconda/envs/foundation_models/lib/python3.9/site-packages/httpcore/_backends/sync.py", line 206, in connect_tcp
sock = socket.create_connection(
File "/usr/local/anaconda/envs/foundation_models/lib/python3.9/socket.py", line 844, in create_connection
raise err
File "/usr/local/anaconda/envs/foundation_models/lib/python3.9/socket.py", line 832, in create_connection
sock.connect(sa)
socket.timeout: timed out

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/usr/local/anaconda/envs/foundation_models/lib/python3.9/site-packages/httpx/_transports/default.py", line 67, in map_httpcore_exceptions
yield
File "/usr/local/anaconda/envs/foundation_models/lib/python3.9/site-packages/httpx/_transports/default.py", line 231, in handle_request
resp = self._pool.handle_request(req)
File "/usr/local/anaconda/envs/foundation_models/lib/python3.9/site-packages/httpcore/_sync/connection_pool.py", line 268, in handle_request
raise exc
File "/usr/local/anaconda/envs/foundation_models/lib/python3.9/site-packages/httpcore/_sync/connection_pool.py", line 251, in handle_request
response = connection.handle_request(request)
File "/usr/local/anaconda/envs/foundation_models/lib/python3.9/site-packages/httpcore/_sync/connection.py", line 99, in handle_request
raise exc
File "/usr/local/anaconda/envs/foundation_models/lib/python3.9/site-packages/httpcore/_sync/connection.py", line 76, in handle_request
stream = self._connect(request)
File "/usr/local/anaconda/envs/foundation_models/lib/python3.9/site-packages/httpcore/_sync/connection.py", line 124, in _connect
stream = self._network_backend.connect_tcp(**kwargs)
File "/usr/local/anaconda/envs/foundation_models/lib/python3.9/site-packages/httpcore/_backends/sync.py", line 213, in connect_tcp
sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1)
File "/usr/local/anaconda/envs/foundation_models/lib/python3.9/contextlib.py", line 137, in exit
self.gen.throw(typ, value, traceback)
File "/usr/local/anaconda/envs/foundation_models/lib/python3.9/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions
raise to_exc(exc) from exc
httpcore.ConnectTimeout: timed out

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/usr/local/anaconda/envs/foundation_models/lib/python3.9/threading.py", line 980, in _bootstrap_inner
self.run()
File "/usr/local/anaconda/envs/foundation_models/lib/python3.9/threading.py", line 917, in run
self._target(*self._args, **self._kwargs)
File "/usr/local/anaconda/envs/foundation_models/lib/python3.9/site-packages/gradio/analytics.py", line 61, in _do_normal_analytics_request
data["ip_address"] = get_local_ip_address()
File "/usr/local/anaconda/envs/foundation_models/lib/python3.9/site-packages/gradio/analytics.py", line 117, in get_local_ip_address
ip_address = httpx.get(
File "/usr/local/anaconda/envs/foundation_models/lib/python3.9/site-packages/httpx/_api.py", line 196, in get
return request(
File "/usr/local/anaconda/envs/foundation_models/lib/python3.9/site-packages/httpx/_api.py", line 104, in request
return client.request(
File "/usr/local/anaconda/envs/foundation_models/lib/python3.9/site-packages/httpx/_client.py", line 828, in request
return self.send(request, auth=auth, follow_redirects=follow_redirects)
File "/usr/local/anaconda/envs/foundation_models/lib/python3.9/site-packages/httpx/_client.py", line 915, in send
response = self._send_handling_auth(
File "/usr/local/anaconda/envs/foundation_models/lib/python3.9/site-packages/httpx/_client.py", line 943, in _send_handling_auth
response = self._send_handling_redirects(
File "/usr/local/anaconda/envs/foundation_models/lib/python3.9/site-packages/httpx/_client.py", line 980, in _send_handling_redirects
response = self._send_single_request(request)
File "/usr/local/anaconda/envs/foundation_models/lib/python3.9/site-packages/httpx/_client.py", line 1016, in _send_single_request
response = transport.handle_request(request)
File "/usr/local/anaconda/envs/foundation_models/lib/python3.9/site-packages/httpx/_transports/default.py", line 231, in handle_request
resp = self._pool.handle_request(req)
File "/usr/local/anaconda/envs/foundation_models/lib/python3.9/contextlib.py", line 137, in exit
self.gen.throw(typ, value, traceback)
File "/usr/local/anaconda/envs/foundation_models/lib/python3.9/site-packages/httpx/_transports/default.py", line 84, in map_httpcore_exceptions
raise mapped_exc(message) from exc
httpx.ConnectTimeout: timed out
Exception in thread Thread-6:
Traceback (most recent call last):
File "/usr/local/anaconda/envs/foundation_models/lib/python3.9/site-packages/httpcore/_exceptions.py", line 10, in map_exceptions
yield
File "/usr/local/anaconda/envs/foundation_models/lib/python3.9/site-packages/httpcore/_backends/sync.py", line 206, in connect_tcp
sock = socket.create_connection(
File "/usr/local/anaconda/envs/foundation_models/lib/python3.9/socket.py", line 844, in create_connection
raise err
File "/usr/local/anaconda/envs/foundation_models/lib/python3.9/socket.py", line 832, in create_connection
sock.connect(sa)
socket.timeout: timed out

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/usr/local/anaconda/envs/foundation_models/lib/python3.9/site-packages/httpx/_transports/default.py", line 67, in map_httpcore_exceptions
yield
File "/usr/local/anaconda/envs/foundation_models/lib/python3.9/site-packages/httpx/_transports/default.py", line 231, in handle_request
resp = self._pool.handle_request(req)
File "/usr/local/anaconda/envs/foundation_models/lib/python3.9/site-packages/httpcore/_sync/connection_pool.py", line 268, in handle_request
raise exc
File "/usr/local/anaconda/envs/foundation_models/lib/python3.9/site-packages/httpcore/_sync/connection_pool.py", line 251, in handle_request
response = connection.handle_request(request)
File "/usr/local/anaconda/envs/foundation_models/lib/python3.9/site-packages/httpcore/_sync/connection.py", line 99, in handle_request
raise exc
File "/usr/local/anaconda/envs/foundation_models/lib/python3.9/site-packages/httpcore/_sync/connection.py", line 76, in handle_request
stream = self._connect(request)
File "/usr/local/anaconda/envs/foundation_models/lib/python3.9/site-packages/httpcore/_sync/connection.py", line 124, in _connect
stream = self._network_backend.connect_tcp(**kwargs)
File "/usr/local/anaconda/envs/foundation_models/lib/python3.9/site-packages/httpcore/_backends/sync.py", line 213, in connect_tcp
sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1)
File "/usr/local/anaconda/envs/foundation_models/lib/python3.9/contextlib.py", line 137, in exit
self.gen.throw(typ, value, traceback)
File "/usr/local/anaconda/envs/foundation_models/lib/python3.9/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions
raise to_exc(exc) from exc
httpcore.ConnectTimeout: timed out

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/usr/local/anaconda/envs/foundation_models/lib/python3.9/threading.py", line 980, in _bootstrap_inner
self.run()
File "/usr/local/anaconda/envs/foundation_models/lib/python3.9/threading.py", line 917, in run
self._target(*self._args, **self._kwargs)
File "/usr/local/anaconda/envs/foundation_models/lib/python3.9/site-packages/gradio/analytics.py", line 61, in _do_normal_analytics_request
data["ip_address"] = get_local_ip_address()
File "/usr/local/anaconda/envs/foundation_models/lib/python3.9/site-packages/gradio/analytics.py", line 117, in get_local_ip_address
ip_address = httpx.get(
File "/usr/local/anaconda/envs/foundation_models/lib/python3.9/site-packages/httpx/_api.py", line 196, in get
return request(
File "/usr/local/anaconda/envs/foundation_models/lib/python3.9/site-packages/httpx/_api.py", line 104, in request
return client.request(
File "/usr/local/anaconda/envs/foundation_models/lib/python3.9/site-packages/httpx/_client.py", line 828, in request
return self.send(request, auth=auth, follow_redirects=follow_redirects)
File "/usr/local/anaconda/envs/foundation_models/lib/python3.9/site-packages/httpx/_client.py", line 915, in send
response = self._send_handling_auth(
File "/usr/local/anaconda/envs/foundation_models/lib/python3.9/site-packages/httpx/_client.py", line 943, in _send_handling_auth
response = self._send_handling_redirects(
File "/usr/local/anaconda/envs/foundation_models/lib/python3.9/site-packages/httpx/_client.py", line 980, in _send_handling_redirects
response = self._send_single_request(request)
File "/usr/local/anaconda/envs/foundation_models/lib/python3.9/site-packages/httpx/_client.py", line 1016, in _send_single_request
response = transport.handle_request(request)
File "/usr/local/anaconda/envs/foundation_models/lib/python3.9/site-packages/httpx/_transports/default.py", line 231, in handle_request
resp = self._pool.handle_request(req)
File "/usr/local/anaconda/envs/foundation_models/lib/python3.9/contextlib.py", line 137, in exit
self.gen.throw(typ, value, traceback)
File "/usr/local/anaconda/envs/foundation_models/lib/python3.9/site-packages/httpx/_transports/default.py", line 84, in map_httpcore_exceptions
raise mapped_exc(message) from exc
httpx.ConnectTimeout: timed out

from codegeex2.

guiniao avatar guiniao commented on June 4, 2024

已解决

from codegeex2.

violet17 avatar violet17 commented on June 4, 2024

已解决

这是什么原因呢?

from codegeex2.

ZeanNi avatar ZeanNi commented on June 4, 2024

已解决

请问是什么原因?当我部署到AWS也遇到这样相似的错误

from codegeex2.

violet17 avatar violet17 commented on June 4, 2024

怎么解决的呢?

from codegeex2.

ZeanNi avatar ZeanNi commented on June 4, 2024

怎么解决的呢?

我是proxy的问题

from codegeex2.

violet17 avatar violet17 commented on June 4, 2024

怎么解决的呢?

我是proxy的问题

是关掉proxy? 我已经关掉了proxy 但是还是有这个问题。很奇怪。 还有h11 timed out。 好无语啊

from codegeex2.

ZeanNi avatar ZeanNi commented on June 4, 2024

怎么解决的呢?

我是proxy的问题

是关掉proxy? 我已经关掉了proxy 但是还是有这个问题。很奇怪。 还有h11 timed out。 好无语啊

我设置了本地访问时候的no _proxy,但是外界用户访问的时候仍然使用原本已有的proxy

from codegeex2.

violet17 avatar violet17 commented on June 4, 2024

怎么解决的呢?

我是proxy的问题

是关掉proxy? 我已经关掉了proxy 但是还是有这个问题。很奇怪。 还有h11 timed out。 好无语啊

我设置了本地访问时候的no _proxy,但是外界用户访问的时候仍然使用原本已有的proxy

我全部用的是本地访问,没有外界用户访问,也没有远程访问,不知道为啥gradio 会这样抽风

from codegeex2.

ZeanNi avatar ZeanNi commented on June 4, 2024

怎么解决的呢?

我是proxy的问题

是关掉proxy? 我已经关掉了proxy 但是还是有这个问题。很奇怪。 还有h11 timed out。 好无语啊

我设置了本地访问时候的no _proxy,但是外界用户访问的时候仍然使用原本已有的proxy

我全部用的是本地访问,没有外界用户访问,也没有远程访问,不知道为啥gradio 会这样抽风

你试一试只设置允许no_proxy的本地地址,但是不去设置proxy内容,及我下面注释的部分

import os
os.environ["no_proxy"] = "127.0.0.1,localhost"
# os.environ["http_proxy"] = ""
# os.environ["https_proxy"] = ""

from codegeex2.

violet17 avatar violet17 commented on June 4, 2024

只设置允许no_proxy的本地地址

嗯 我试试 多谢

from codegeex2.

violet17 avatar violet17 commented on June 4, 2024

还是不行 还是各种timed out

from codegeex2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.