gradio-app / gradio

Build and share delightful machine learning apps, all in Python. 🌟 Star to support our work!
http://www.gradio.app
Apache License 2.0
30.36k stars 2.26k forks source link

ConnectionResetError: [WinError 10054] when click radio to switch #8313

Open Paladin-673 opened 1 month ago

Paladin-673 commented 1 month ago

Describe the bug

my code is like this:

def practiceUI(): def changeCalType(choice): if choice == 'type_one': return {type_one_row: gr.Row(visible=True), type_two_row: gr.Row(visible=False)} if choice == 'type_two': return {type_one_row: gr.Row(visible=False), type_two_row: gr.Row(visible=True)}

and when click the radio to change type, and get misktake like this:

Exception in callback _ProactorBasePipeTransport._call_connection_lost(None) handle: <Handle _ProactorBasePipeTransport._call_connection_lost(None)> Traceback (most recent call last): File "asyncio\events.py", line 80, in _run File "asyncio\proactor_events.py", line 162, in _call_connection_lost ConnectionResetError: [WinError 10054]

although this mistake does not effect normal use,but how to clear up this error

Have you searched existing issues? 🔎

Reproduction

def practiceUI(): def changeCalType(choice): if choice == 'type_one': return {type_one_row: gr.Row(visible=True), type_two_row: gr.Row(visible=False)} if choice == 'type_two': return {type_one_row: gr.Row(visible=False), type_two_row: gr.Row(visible=True)}

Screenshot

No response

Logs

No response

System Info

Exception in callback _ProactorBasePipeTransport._call_connection_lost(None)
handle: <Handle _ProactorBasePipeTransport._call_connection_lost(None)>
Traceback (most recent call last):
  File "asyncio\events.py", line 80, in _run
  File "asyncio\proactor_events.py", line 162, in _call_connection_lost
ConnectionResetError: [WinError 10054]

Severity

I can work around it

freddyaboulton commented 3 weeks ago

Hi @Paladin-673 ! Can you please share the full minimal reproducer (properly formatted) so that someone can take a look? We would also need all the system info (browser, gradio version and those of its dependencies). Thank you !

Paladin-673 commented 3 weeks ago

Thanks for your attention, my brower is google chrome and graido version is 4.16.0

This code in the attachment can report the same error. Please help to slove this problem, 3q.

@.***

From: Freddy Boulton Date: 2024-05-21 23:14 To: gradio-app/gradio CC: Paladin-673; Mention Subject: Re: [gradio-app/gradio] ConnectionResetError: [WinError 10054] when click radio to switch (Issue #8313) Hi @Paladin-673 ! Can you please share the full minimal reproducer (properly formatted) so that someone can take a look? We would also need all the system info (browser, gradio version and those of its dependencies). Thank you ! — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>

Paladin-673 commented 3 weeks ago

Thanks for your attention, my brower is google chrome and gradio version is 4.16.0

This code in the attachment can report the same error. Please help to slove this problem, 3q.

@.***

From: Freddy Boulton Date: 2024-05-21 23:14 To: gradio-app/gradio CC: Paladin-673; Mention Subject: Re: [gradio-app/gradio] ConnectionResetError: [WinError 10054] when click radio to switch (Issue #8313) Hi @Paladin-673 ! Can you please share the full minimal reproducer (properly formatted) so that someone can take a look? We would also need all the system info (browser, gradio version and those of its dependencies). Thank you ! — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>