Skip to content

Please stop using deprecated/archived nest_asyncio package #2259

@dagardner-nv

Description

@dagardner-nv

[x] I have checked the documentation and related resources and couldn't resolve my bug.

Describe the bug
nest_asyncio has been archived by the owner for over a year now.

This has created problems with asyncio support in newer versions of Python and other packages which depend on these newer features. Specifically Python 3.12+ added an optional loop_factory parameter, however the patched version of asyncio.run from nest_asyncio's patched run method doesn't pass-through this keyword argument resulting in errors like:

> asyncio_run(amain(), loop_factory=get_loop_factory())
E TypeError: _patch_asyncio.<locals>.run() got an unexpected keyword argument 'loop_factory'

Ragas version: v0.2.15 (however this dependency exists in the main branch: https://github.com/explodinggradients/ragas/blob/main/pyproject.toml
Python version: 3.12

Code to Reproduce
Share code to reproduce the issue

Error trace

Expected behavior
A clear and concise description of what you expected to happen.

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions