aleph-im / aleph-vm

Aleph.im VM execution engine

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

FastAPI version in Debian 12 is incompatible with features available in the Debian 11 runtime

odesenfans opened this issue · comments

Describe the bug
The Debian 11 runtime provides FastAPI version 0.95.1 (installed with pip install) while the Debian 12 runtime provides FastAPI 0.92.0 (installed with apt install python3-fastapi).

0.95.1 introduces new features like the support for Annotated type annotations, meaning that code that uses such annotations works with the Debian 11 runtime and does not with the Debian 12 runtime.

Expected behavior
A VM that ran with the Debian 11 runtime should be able to run on the Debian 12 runtime unmodified.

Proposed solution
Install FastAPI from PyPI like we do in the Debian 11 runtime.