Skip to content

Crashes in Python 3.14 #354

@khteh

Description

@khteh
Traceback (most recent call last):
  File "/usr/lib/python3.14/multiprocessing/process.py", line 320, in _bootstrap
    self.run()
    ~~~~~~~~^^
  File "/usr/lib/python3.14/multiprocessing/process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
    ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/Python/PythonRestAPI/.venv/lib/python3.14/site-packages/hypercorn/asyncio/run.py", line 195, in asyncio_worker
    _run(
    ~~~~^
        partial(worker_serve, app, config, sockets=sockets),
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        debug=config.debug,
        ^^^^^^^^^^^^^^^^^^^
        shutdown_trigger=shutdown_trigger,
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
  File "/usr/src/Python/PythonRestAPI/.venv/lib/python3.14/site-packages/hypercorn/asyncio/run.py", line 233, in _run
    runner.run(main(shutdown_trigger=shutdown_trigger))
    ~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.14/asyncio/runners.py", line 127, in run
    return self._loop.run_until_complete(task)
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^
  File "/usr/lib/python3.14/asyncio/base_events.py", line 719, in run_until_complete
    return future.result()
           ~~~~~~~~~~~~~^^
  File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result
    raise self._exception.with_traceback(self._exception_tb)
  File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result
    result = coro.send(None)
  File "/usr/src/Python/PythonRestAPI/.venv/lib/python3.14/site-packages/hypercorn/asyncio/run.py", line 85, in worker_serve
    await lifespan.wait_for_startup()
  File "/usr/src/Python/PythonRestAPI/.venv/lib/python3.14/site-packages/hypercorn/asyncio/lifespan.py", line 93, in wait_for_startup
    await asyncio.wait_for(self.startup.wait(), timeout=self.config.startup_timeout)
  File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for
    async with timeouts.timeout(timeout):
               ~~~~~~~~~~~~~~~~^^^^^^^^^
  File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__
    raise RuntimeError("Timeout should be used inside a task")
RuntimeError: Timeout should be used inside a task
<sys>:0: RuntimeWarning: coroutine 'Event.wait' was never awaited
RuntimeWarning: Enable tracemalloc to get the object allocation traceback

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions