Skip to content

0.25.1 regression Python 3.9 asyncio_mode="auto" # RuntimeError: There is no current event loop in thread 'MainThread' #1039

Closed as not planned
@dimaqq

Description

@dimaqq

Happy new year.

0.25.1 was released recently and somehow it fails on Python 3.9 specifically.

In my case, asyncio_mode = "auto" is used, so maybe similar to #658, however I don't know if that's required for the regression.

Meanwhile, Python 3.8 is OK (0.25.x can't be used, 0.24 is used instead)
And Python 3.10, 3.11, 3.12, 3.13 are OK (with the new version)

Version resolution:

    { name = "pytest-asyncio", version = "0.24.0", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.9'" },
    { name = "pytest-asyncio", version = "0.25.1", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.9'" },

Run log: https://github.com/juju/python-libjuju/actions/runs/12423507633

Screenshot for the above:
Screenshot 2025-01-07 at 14 43 51

I've manually validated that 0.25.0 works fine in my setup.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions