Skip to content

RuntimeError: asyncio.run() cannot be called from a running event loop #333

Discussion options

You must be logged in to vote

I can't reproduce this behaviour standalone. Are you absolutely sure you're not running this in a context that manages its own async execution context? If so, you must use the await async_sign_pdf calling convention instead. This is a limitation in asyncio, not something in pyHanko as such.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@aemikarafi
Comment options

Answer selected by aemikarafi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants