Cannot statically find a gradio demo called demo. Reload work may fail.
Description
When I successfully run the docker container, I can't reach the ip port, here are my logs:
Reproduction steps
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error
Screenshots

Logs
Warning: Cannot statically find a gradio demo called demo. Reload work may fail.
Watching: '/app' '/app'
Browsers
No response
OS
No response
Additional information
No response
Same here, M2 pro
Same here. M1 Pro
Same here. Ubuntu 18.04
Warning: Cannot statically find a gradio demo called demo. Reload work may fail.
Watching: '/app' '/app'
[nltk_data] Downloading package punkt_tab to
[nltk_data] /usr/local/lib/python3.10/site-
[nltk_data] packages/llama_index/core/_static/nltk_cache...
[nltk_data] Unzipping tokenizers/punkt_tab.zip.
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/urllib3/connection.py", line 174, in _new_conn
conn = connection.create_connection(
File "/usr/local/lib/python3.10/site-packages/urllib3/util/connection.py", line 95, in create_connection
raise err
File "/usr/local/lib/python3.10/site-packages/urllib3/util/connection.py", line 85, in create_connection
sock.connect(sa)
OSError: [Errno 101] Network is unreachable
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/urllib3/connectionpool.py", line 716, in urlopen
httplib_response = self._make_request(
File "/usr/local/lib/python3.10/site-packages/urllib3/connectionpool.py", line 404, in _make_request
self._validate_conn(conn)
File "/usr/local/lib/python3.10/site-packages/urllib3/connectionpool.py", line 1061, in _validate_conn
conn.connect()
File "/usr/local/lib/python3.10/site-packages/urllib3/connection.py", line 363, in connect
self.sock = conn = self._new_conn()
File "/usr/local/lib/python3.10/site-packages/urllib3/connection.py", line 186, in _new_conn
raise NewConnectionError(
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9daa8286a0>: Failed to establish a new connection: [Errno 101] Network is unreachable
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/requests/adapters.py", line 486, in send
resp = conn.urlopen(
File "/usr/local/lib/python3.10/site-packages/urllib3/connectionpool.py", line 802, in urlopen
retries = retries.increment(
File "/usr/local/lib/python3.10/site-packages/urllib3/util/retry.py", line 594, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='huggingface.co', port=443): Max retries exceeded with url: /api/spaces/lone17/kotaemon (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9daa8286a0>: Failed to establish a new connection: [Errno 101] Network is unreachable'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/app/app.py", line 15, in
It may be because you can't access HuggingFace in China?
For those who's getting error of using docker, you can switch to install it directly via python, it works well on my M2 Pro chip. P/s: It works on python >= 3.10, sudo is needed in my case.
sudo docker run -e GRADIO_SERVER_NAME=0.0.0.0 -e GRADIO_SERVER_PORT=7860 -p 7860:7860 -it --rm taprosoft/kotaemon:v1.0
Warning: Cannot statically find a gradio demo called demo. Reload work may fail. Watching: '/app' '/app'
[nltk_data] Error loading punkt_tab: <urlopen error [Errno 111] [nltk_data] Connection refused>
same problem for ubuntu22.04. Try to switch on install it directly via python.Hope me succeed
Thanks!
丁生秦 Ding Shengqin (Mr.) Body Shop Planning Digitalization& Series Planning
From: CaMi1le @.> Sent: Thursday, September 5, 2024 4:56 PM To: Cinnamon/kotaemon @.> Cc: Ding, Shengqin (VWA-PP2E) @.>; Comment @.> Subject: Re: [Cinnamon/kotaemon] Cannot statically find a gradio demo called demo. Reload work may fail. (Issue #183)
sudo docker run -e GRADIO_SERVER_NAME=0.0.0.0 -e GRADIO_SERVER_PORT=7860 -p 7860:7860 -it --rm taprosoft/kotaemon:v1.0
Warning: Cannot statically find a gradio demo called demo. Reload work may fail. Watching: '/app' '/app'
[nltk_data] Error loading punkt_tab: <urlopen error [Errno 111] [nltk_data] Connection refused>
same problem for ubuntu22.04. Try to switch on install it directly via python.Hope me succeed
— Reply to this email directly, view it on GitHubhttps://github.com/Cinnamon/kotaemon/issues/183#issuecomment-2330975268, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AP6EF5FRXZI6GL6QJY3XEJDZVAMC7AVCNFSM6AAAAABNQSX5UWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMZQHE3TKMRWHA. You are receiving this because you commented.Message ID: @.@.>>
INTERNAL
中国大陆网络无法直连huggingface.io.而hf-mirror.com也暂时因为 由于流量过大,本站暂不支持访问 Spaces 空间,可前往 Hugging Face 官网查看。 无法访问。
docker run -e https_proxy=你的代理ip:port -e https_proxy=你的代理ip:port -e GRADIO_SERVER_NAME=0.0.0.0 -e GRADIO_SERVER_PORT=7860 -p 7860:7860 --name kotaemon taprosoft/kotaemon:v1.0
just the problem of VPN, use it.