RuntimeError: asyncio.run() cannot be called from a running event loop #333
Answered
by
MatthiasValvekens
aemikarafi
asked this question in
Q&A
-
code is
Python is
system is
test.pdf is a one-page pdf file from latex. Please help me understand this issue. |
Beta Was this translation helpful? Give feedback.
Answered by
MatthiasValvekens
Oct 26, 2023
Replies: 1 comment 1 reply
-
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 |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
aemikarafi
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.