{"added":"2026-07-14T23:28:50-04:00","apiVersion":1,"behindSince":null,"buildDepends":["devel/py-setuptools","devel/py-setuptools-scm","devel/py-wheel"],"categories":["devel","python"],"comment":"Patch asyncio to allow nested event loops","compare":"/compare/py312-nest-asyncio/index.json","dependentCount":null,"description":"By design asyncio does not allow its event loop to be nested. This presents a\npractical problem: When in an environment where the event loop is already\nrunning it's impossible to run tasks and wait for the result. Trying to do so\nwill give the error \"RuntimeError: This event loop is already running\".\n\nThe issue pops up in various environments, such as web servers, GUI applications\nand in Jupyter notebooks.\n\nThis module patches asyncio to allow nested use of asyncio.run and\nloop.run_until_complete.","flavors":[],"html":"https://daemonports.org/midnightbsd/devel/py-nest-asyncio/","kind":"port","lastUpdate":"2026-07-14T23:28:50-04:00","license":["bsd2"],"maintainer":"ports@MidnightBSD.org","name":"${PYTHON_PKGNAMEPREFIX}nest-asyncio","newest":true,"newestVersion":"1.6.0","noVulnData":true,"origin":"devel/py-nest-asyncio","otherSystems":[{"maintainer":"sunpoet@FreeBSD.org","newest":true,"origin":"devel/py-nest-asyncio","path":"/devel/py-nest-asyncio/","system":"FreeBSD","version":"1.6.0_1"},{"behindSince":"2026-07-14","maintainer":"The OpenBSD ports mailing-list \u003cports@openbsd.org\u003e","noVulnData":true,"origin":"devel/py-nest-asyncio","path":"/openbsd/devel/py-nest-asyncio/","system":"OpenBSD","version":"1.5.4p3"},{"maintainer":"pkgsrc-users@NetBSD.org","newest":true,"origin":"devel/py-nest-asyncio","path":"/netbsd/devel/py-nest-asyncio/","system":"NetBSD","version":"1.6.0nb1"},{"maintainer":"sunpoet@FreeBSD.org","newest":true,"origin":"devel/py-nest-asyncio","path":"/dragonfly/devel/py-nest-asyncio/","system":"DragonFly","version":"1.6.0_1"},{"maintainer":"sunpoet@FreeBSD.org","newest":true,"noVulnData":true,"origin":"devel/py-nest-asyncio","path":"","system":"HardenedBSD","version":"1.6.0_1"},{"maintainer":"sunpoet@FreeBSD.org","newest":true,"noVulnData":true,"origin":"devel/py-nest-asyncio","path":"","system":"GhostBSD","version":"1.6.0_1"}],"packages":null,"pkgName":"${PYTHON_PKGNAMEPREFIX}nest-asyncio-1.6.0_1","related":["devel/py-nest-asyncio2"],"repository":"mports","requiredBy":["ai/py-sagemaker-train"],"requiredByCount":1,"runDepends":[],"status":null,"system":"midnightbsd","systemLabel":"MidnightBSD","version":"1.6.0_1","versions":[{"commit":"b807d69740d814e9a9f67fedd06769996bcc27ea","date":"2026-07-14","version":"1.6.0"}],"vulnerabilities":null,"www":"https://github.com/erdewit/nest_asyncio"}
