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

Last updated: October 05,2024

1. Install "python38-nest-asyncio" package

Here is a brief guide to show you how to install python38-nest-asyncio on openSuSE Tumbleweed

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

2. Uninstall "python38-nest-asyncio" package

Please follow the steps below to uninstall python38-nest-asyncio on openSuSE Tumbleweed:

$ sudo zypper remove python38-nest-asyncio

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

Information for package python38-nest-asyncio:
----------------------------------------------
Repository : openSUSE-Tumbleweed-Oss
Name : python38-nest-asyncio
Version : 1.5.1-1.2
Arch : noarch
Vendor : openSUSE
Installed Size : 24,1 KiB
Installed : No
Status : not installed
Source package : python-nest-asyncio-1.5.1-1.2.src
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``.