Closed ronf closed 4 years ago
Following up on my own question, it appears this may be an incompatibility with Python 3.8. When I try the example under Python 3.7, it does run the sleep. However, I still get a trio deprecation error:
/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/trio_asyncio/base.py:718: TrioDeprecationWarning: trio.Event.clear is deprecated since Trio 0.12.0; use multiple Event objects or other synchronization primitives instead (https://github.com/python-trio/trio/issues/637)
Can you please try the 0.11.0 release and tell us if it helps?
I verified that the given example works on the latest trio-asyncio release, so I'm closing this.
Thanks - I can confirm that the example works for me as well with 0.11.0, on Python versions 3.6, 3.7, and 3.8!
Sorry for such a basic question, but I've been trying for the last hour or so to get some of the examples in the documentation to run and none of the variations I've tried seem to work. I must be missing something, but I'm not sure what.
For instance, I tried the following:
and I get back:
I've tried other variations where I switch out the callable for an awaitable or where I use the "open_loop" call or the "run_asyncio" call shown in some of the other examples but all of them pretty much end up telling me I don't have a running event loop. What am I missing?