Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Error in Python3.14: "RuntimeError: There is no current event loop in thread 'MainThread'." #285

Description

@johnfraney
╭──────────────────────────────────────────────────────────── Traceback (most recent call last) ─────────────────────────────────────────────────────────────╮
│ /home/john/Code/blurry/blurry/__init__.py:180 in runserver                                                                                                 │
│                                                                                                                                                            │
│   177 │                                                                                                                                                    │
│   178 │   SETTINGS["RUNSERVER"] = True                                                                                                                     │
│   179 │                                                                                                                                                    │
│ ❱ 180 │   event_loop = asyncio.get_event_loop()                                                                                                            │
│   181 │   event_loop.create_task(build(release=False))                                                                                                     │
│   182 │                                                                                                                                                    │
│   183 │   jinja_env = get_jinja_env()                                                                                                                      │
│                                                                                                                                                            │
│ /usr/lib/python3.14/asyncio/events.py:715 in get_event_loop                                                                                                │
│                                                                                                                                                            │
│   712 │   │   Returns an instance of EventLoop or raises an exception.                                                                                     │
│   713 │   │   """                                                                                                                                          │
│   714 │   │   if self._local._loop is None:                                                                                                                │
│ ❱ 715 │   │   │   raise RuntimeError('There is no current event loop in thread %r.'                                                                        │
│   716 │   │   │   │   │   │   │      % threading.current_thread().name)                                                                                    │
│   717 │   │                                                                                                                                                │
│   718 │   │   return self._local._loop                                                                                                                     │
╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
RuntimeError: There is no current event loop in thread 'MainThread'.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Fields

No fields configured for Bug.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions