Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
1 task done
Paladin-673 opened this issue May 17, 2024 · 3 comments
Open
1 task done

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

Paladin-673 opened this issue May 17, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@Paladin-673
Copy link

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? 🔎

  • I have searched and found no 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

@Paladin-673 Paladin-673 added the bug Something isn't working label May 17, 2024
@freddyaboulton
Copy link
Collaborator

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
Copy link
Author

Paladin-673 commented May 22, 2024 via email

@Paladin-673
Copy link
Author

Paladin-673 commented May 22, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants