Skip to content

Commit 2fdef2c

Browse files
mhotanclaudecosmicBboy
authored
examples/apps: unpin streamlit so protobuf>=6 can resolve (#1530)
`streamlit<1.46` pins `protobuf<6`, downgrading the app image to protobuf 5.29.6 — older than flyteidl2's compiled gencode (6.33.5). The app then crashes at startup with a protobuf Gencode/Runtime `VersionError` before Streamlit runs. streamlit 1.46 relaxed the cap to `protobuf<7`, so requiring `streamlit>=1.46` lets protobuf resolve to 6.x and the app boots. Verified end-to-end on a self-hosted canary: the app image built from `ghcr.io/flyteorg/flyte:py3.12-v2.6.13` + `streamlit>=1.46` starts cleanly (Knative revision Ready); the old `streamlit==1.41.1` image crash-loops with the VersionError. Signed-off-by: Michael Hotan <mike@union.ai> Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Co-authored-by: Niels Bantilan <niels.bantilan@gmail.com>
1 parent d6aeabb commit 2fdef2c

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

examples/apps/basic_app.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
import flyte
44
import flyte.app
55

6-
image = flyte.Image.from_debian_base(python_version=(3, 12)).with_pip_packages("streamlit==1.41.1")
6+
# streamlit must allow protobuf>=6 (>=1.46 relaxed the cap to <7); older pins force
7+
# protobuf<6, which is incompatible with flyteidl2's gencode and crashes the app.
8+
image = flyte.Image.from_debian_base(python_version=(3, 12)).with_pip_packages("streamlit>=1.46")
79

810
# The `App` declaration.
911
# Uses the `ImageSpec` declared above.

0 commit comments

Comments
 (0)