-
Notifications
You must be signed in to change notification settings - Fork 714
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RuntimeError: This event loop is already running #1824
Comments
Very annoying indeed. It's polluting my xonsh sessions on python 3.12.3 (and prompt toolkit 3.0.36). Until a suitable solution is found: # to be added at the top of the definition of the prompt-toolkit shell
# in: xonsh.ptk_shell.shell
import warnings
warnings.filterwarnings("ignore", category=DeprecationWarning, module="prompt_toolkit.eventloop.utils", lineno=118) To silence:
This won't fix op's runtime error but it will keep your shell clean if you'r using xonsh/0.16.0. EDIT: updating to version 3.0.43 (>3.0.36) of the toolkit should fix it from my understanding of the code and this review on op's PR |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Using prompt-toolkit 3.0.41, every time I launch scrapy shell (Scrapy 2.11.0) with ipython 8.18.0 and Python 3.10.12, the following stacktrace is produced:
The cause seems to be using
asyncio.get_event_loop()
, which will soon be deprecated. This is related to scrapy/scrapy#6160.The text was updated successfully, but these errors were encountered: