Error Messages
Introduction
Section titled “Introduction”Frequently identified error messages can be recorded in this section.
RuntimeError: asyncio.run() cannot be called from a running event loop
Section titled “RuntimeError: asyncio.run() cannot be called from a running event loop”If your calling program runs it’s own event loop, then Apprise can cause some commotion when it tries to work with it’s own. For these circumstances you have 2 options:
-
Do not call
notify(). Insteadawaittheasync_notify()call itself. See here for more details. -
Leverage a library that handles this exact case called nest-asyncio:
Terminal window pip3 install nest-asyncioThen from within your python application just import it at the top:
import nest_asyncio# apply itnest_asyncio.apply()An issue related to FastCGI was brought forth here and solved using this method.
Questions or Feedback?
Documentation
Notice a typo or an error? Report it or contribute a fix .
Technical Issues
Having trouble with the code? Open an issue on GitHub:
Made with love from Canada