Describe the bug
By default, utils.version_check() is called every time when an Interface is instantiated, as in
However, the requests.get() call within version_check() does not have timeout config, as in
|
latest_pkg_version = requests.get(url=PKG_VERSION_URL).json()["version"] |
This leads to forever waiting time when in certain environment, external network connection is disabled.
There was an issue #2052 that might resolve this problem by converting the http call to be async. But it was not directly fix this 'bug'?
Is there an existing issue for this?
Reproduction
Not sure how to share the exact setting, but I'm attaching an screenshot after I run
pyinstrument app.py
during which, it took ~ 5 minutes to launch the application, where app.py is my own toy app that includes TabbedInterface.launch.
Screenshot

Logs
System Info
gradio==3.11.0
MaxOS M1
Chrome
Severity
serious, but I can work around it
Describe the bug
By default,
utils.version_check()is called every time when an Interface is instantiated, as ingradio/gradio/interface.py
Line 406 in 1c244cc
However, the
requests.get()call withinversion_check()does not have timeout config, as ingradio/gradio/utils.py
Line 57 in 5e148c3
This leads to forever waiting time when in certain environment, external network connection is disabled.
There was an issue #2052 that might resolve this problem by converting the http call to be async. But it was not directly fix this 'bug'?
Is there an existing issue for this?
Reproduction
Not sure how to share the exact setting, but I'm attaching an screenshot after I run
pyinstrument app.pyduring which, it took ~ 5 minutes to launch the application, where
app.pyis my own toy app that includesTabbedInterface.launch.Screenshot
Logs
System Info
Severity
serious, but I can work around it