capnproto / pycapnp

Cap'n Proto serialization/RPC system - Python bindings
BSD 2-Clause "Simplified" License
458 stars 125 forks source link

Fix 'AttributeError: '_UnixSelectorEventLoop' object has no attribute… #333

Closed LasseBlaauwbroek closed 9 months ago

LasseBlaauwbroek commented 9 months ago

… 'call_soon'

See haata/pycapnp#1 for a discussion. The cause of this bug is still unknown to me. But it likely has been fixed in Python 3.10. For some crazy reason, you can just keep retrying the offending call, and the attribute will magically 'reappear'.

I was able to reproduce this locally (in a slightly different way than in CI), and the problem goes away with this fix (no infinite loops have occurred). There are a bunch of CI tests running here: https://github.com/LasseBlaauwbroek/pycapnp/commits/fix-attribute-error-ci-test I'd suggest waiting for them to be green to merge this.