From eefd37ef309fe796d4e241511b7d9d864fbb2317 Mon Sep 17 00:00:00 2001 From: Michael Hotan Date: Fri, 4 Sep 2026 11:53:55 +1000 Subject: [PATCH] examples/apps: unpin streamlit so protobuf>=6 can resolve streamlit<1.46 pins protobuf<6, which downgrades the app image to protobuf 5.29.6. That is older than flyteidl2's compiled gencode (6.33.5), so the app crashes at startup with a protobuf Gencode/Runtime VersionError before Streamlit starts. Require streamlit>=1.46 (relaxed the cap to protobuf<7) so protobuf resolves to 6.x and the app boots. Co-Authored-By: Claude Opus 4.8 (1M context) Claude-Session: https://claude.ai/code/session_01EPzd8Y6xoxKb9ZYWa8ffek Signed-off-by: Michael Hotan --- examples/apps/basic_app.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/apps/basic_app.py b/examples/apps/basic_app.py index f29088d60..f502e4fde 100644 --- a/examples/apps/basic_app.py +++ b/examples/apps/basic_app.py @@ -3,7 +3,9 @@ import flyte import flyte.app -image = flyte.Image.from_debian_base(python_version=(3, 12)).with_pip_packages("streamlit==1.41.1") +# streamlit must allow protobuf>=6 (>=1.46 relaxed the cap to <7); older pins force +# protobuf<6, which is incompatible with flyteidl2's gencode and crashes the app. +image = flyte.Image.from_debian_base(python_version=(3, 12)).with_pip_packages("streamlit>=1.46") # The `App` declaration. # Uses the `ImageSpec` declared above.