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

RuntimeError: cannot convert sockaddr into Python object #269

Closed
mosquito opened this issue Sep 26, 2019 · 4 comments
Closed

RuntimeError: cannot convert sockaddr into Python object #269

mosquito opened this issue Sep 26, 2019 · 4 comments

Comments

@mosquito
Copy link
Contributor

mosquito commented Sep 26, 2019

  • uvloop: 0.13.0
  • **Python **: Python 3.7.3 (v3.7.3:ef4ec6ed12, Mar 25 2019, 16:52:21)
  • Platform: MacOS
  • Can you reproduce the bug with PYTHONASYNCIODEBUG in env?: yes

After installing uvloop as an event-loop factory my UDP server implementation stops working.

Unhandled exception in event loop
Traceback (most recent call last):
  File "uvloop/handles/udp.pyx", line 335, in uvloop.loop.__uv_udp_on_receive
  File "uvloop/dns.pyx", line 63, in uvloop.loop.__convert_sockaddr_to_pyaddr
RuntimeError: cannot convert sockaddr into Python object

That's because __convert_sockaddr_to_pyaddr not compatibles af_unix socket family I guess.

@1st1
Copy link
Member

1st1 commented Sep 26, 2019

Do you want to submit a patch?

mosquito added a commit to mosquito/uvloop that referenced this issue Sep 27, 2019
@mosquito
Copy link
Contributor Author

@1st1 #271 fixes my case. But I'm not sure about tests which I have to add. I actually have not investigated well enough your test cases.

mosquito added a commit to mosquito/uvloop that referenced this issue Oct 21, 2019
mosquito added a commit to mosquito/uvloop that referenced this issue Oct 21, 2019
1st1 added a commit that referenced this issue Oct 24, 2019
Fixes #269.

Co-authored-by: Dmitry Orlov <[email protected]>
1st1 added a commit that referenced this issue Oct 24, 2019
Fixes #269.

Co-authored-by: Dmitry Orlov <[email protected]>
1st1 added a commit that referenced this issue Oct 24, 2019
Fixes #269.

Co-authored-by: Dmitry Orlov <[email protected]>
1st1 added a commit that referenced this issue Oct 24, 2019
Fixes #269.

Co-authored-by: Dmitry Orlov <[email protected]>
1st1 added a commit that referenced this issue Oct 24, 2019
Fixes #269.

Co-authored-by: Dmitry Orlov <[email protected]>
1st1 added a commit that referenced this issue Oct 25, 2019
Fixes #269.

Co-authored-by: Dmitry Orlov <[email protected]>
@1st1 1st1 closed this as completed in dd4cb7a Oct 25, 2019
@1st1 1st1 reopened this Oct 25, 2019
@mosquito
Copy link
Contributor Author

@1st1 if possible, I would leave it open until a new version has been released.

@1st1
Copy link
Member

1st1 commented Oct 25, 2019

I've just published https://github.com/MagicStack/uvloop/releases/tag/v0.14.0rc1. Please test. The final release will be published some time next week if RC1 is OK.

@1st1 1st1 closed this as completed Oct 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants