How to Install and Uninstall python311-nest-asyncio Package on openSuSE Tumbleweed

Last updated: July 03,2024

1. Install "python311-nest-asyncio" package

In this section, we are going to explain the necessary steps to install python311-nest-asyncio on openSuSE Tumbleweed

$ sudo zypper refresh $ sudo zypper install python311-nest-asyncio

2. Uninstall "python311-nest-asyncio" package

Learn how to uninstall python311-nest-asyncio on openSuSE Tumbleweed:

$ sudo zypper remove python311-nest-asyncio

3. Information about the python311-nest-asyncio package on openSuSE Tumbleweed

Information for package python311-nest-asyncio:
-----------------------------------------------
Repository : openSUSE-Tumbleweed-Oss
Name : python311-nest-asyncio
Version : 1.6.0-1.4
Arch : noarch
Vendor : openSUSE
Installed Size : 26.4 KiB
Installed : No
Status : not installed
Source package : python-nest-asyncio-1.6.0-1.4.src
Upstream URL : https://github.com/erdewit/nest_asyncio
Summary : Patch asyncio to allow nested event loops
Description :
By design asyncio `does not allow `_
its event loop to be nested. This presents a practical problem:
When in an environment where the event loop is
already running it's impossible to run tasks and wait
for the result. Trying to do so will give the error
"``RuntimeError: This event loop is already running``".
The issue pops up in various environments, such as web servers,
GUI applications and in Jupyter notebooks.
This module patches asyncio to allow nested use of ``asyncio.run`` and
``loop.run_until_complete``.