qasync doesn't work with Python 3.11
See original GitHub issueAfter updating to python 3.11 I’m no longer able to launch application:
qasync.run(main())
File "/path/venv/lib/python3.11/site-packages/qasync/__init__.py", line 821, in run
return asyncio.run(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/asyncio/runners.py", line 190, in run
return runner.run(main)
^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/asyncio/runners.py", line 93, in run
raise RuntimeError(
RuntimeError: Runner.run() cannot be called from a running event loop
sys:1: RuntimeWarning: coroutine 'main' was never awaited
Process finished with exit code 1
Issue Analytics
- State:
- Created a year ago
- Comments:5
Top Results From Across the Web
CabbageDevelopment/qasync: Python library for ... - GitHub
qasync allows coroutines to be used in PyQt/PySide applications by providing an implementation of the PEP 3156 event-loop. qasync is a fork of...
Read more >What's New In Python 3.11 — Python 3.11.1 documentation
This article explains the new features in Python 3.11, compared to 3.10. ... PEP 655: Marking individual TypedDict items as required or not-required....
Read more >asyncio — Asynchronous I/O — Python 3.11.1 documentation
asyncio provides a set of high-level APIs to: run Python coroutines concurrently and have full control over their execution;. perform network IO and...
Read more >Python Release Python 3.11.1
Python 3.11.1 is the newest major release of the Python programming language, and it contains many new features and optimizations.
Read more >Python Release Python 3.11.0
Python 3.11.0 is the newest major release of the Python programming language, and it contains many new features and optimizations.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
i got the same error after set the event loop maybe its caused by i use QGuiApplication not QApplication
PySide6 support asyncio official recently, here is an example i use the AsyncHelper from it to fix the problem, FYI
For me, no problem on 3.11 have you set the event loop at start?