Skip to content

Cannot run function when using Python 3.12 #40

@humoflife

Description

@humoflife

What happened?

When making a new function from template, and using Python 3.12, the following error occurs:

hatch run development
Cannot run function: Task <Task pending name='Task-3' coro=<Server.stop() running at /Users/......./.venv-default/lib/python3.12/site-packages/grpc/aio/_server.py:150> cb=[_run_until_complete_cb() at /Users/......./miniconda3/lib/python3.12/asyncio/base_events.py:180]> got Future <Task pending name='Task-2' coro=<AioServer._server_main_loop()> cb=[AioServer._serving_task_crash_handler()]> attached to a different loop

How can we reproduce it?

  • Install Python 3.12.
  • Initialize function from template: crossplane beta xpkg init function-xbuckets https://github.com/crossplane/function-template-python -d function-xbuckets.
  • Run hatch run development.

What environment did it happen in?

Function-template-python version: ba13247.

The issue was observed at 12:49pm PDT, Fri March 15.

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