From a4c15c00de335bb1c0583c4fcb6275e5ac93e600 Mon Sep 17 00:00:00 2001 From: Sameer Puri Date: Thu, 26 Mar 2026 18:32:37 +0000 Subject: [PATCH 1/2] Downgrade cryptography, fixes micropip failure Prior to this, these web pages fail to load with `ValueError: Can't find a pure Python 3 wheel for 'cryptography>=44.0.3; platform_system == "Emscripten"'.` --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 601c3367..53ab6ed8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -19,7 +19,7 @@ dependencies = [ # Pyodide bundles a version of cryptography that is built for wasm, which may not match the # versions available on PyPI. Relax the version requirement since it's better than being # completely unable to import the package in case of version mismatch. - "cryptography >= 44.0.3; platform_system=='Emscripten'", + "cryptography >= 39.0.0; platform_system=='Emscripten'", # Android wheels for cryptography are not yet available on PyPI, so chaquopy uses # the builds from https://chaquo.com/pypi-13.1/cryptography/. But these are not regually # updated. Relax the version requirement since it's better than being completely unable From eda7360222a04434278be25552163cd392dbdcbb Mon Sep 17 00:00:00 2001 From: Sameer Puri Date: Thu, 26 Mar 2026 18:32:37 +0000 Subject: [PATCH 2/2] Upgrade pyodide in web fixes import error Prior to this, these web pages fail to load with `ImportError: cannot import name 'TypeIs' from 'typing_extensions' (/lib/python3.11/site-packages/typing_extensions.py)` --- web/heart_rate_monitor/heart_rate_monitor.html | 2 +- web/scanner/scanner.html | 2 +- web/speaker/speaker.html | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/web/heart_rate_monitor/heart_rate_monitor.html b/web/heart_rate_monitor/heart_rate_monitor.html index f44470fd..775f609b 100644 --- a/web/heart_rate_monitor/heart_rate_monitor.html +++ b/web/heart_rate_monitor/heart_rate_monitor.html @@ -3,7 +3,7 @@ - + diff --git a/web/speaker/speaker.html b/web/speaker/speaker.html index 1a9183d3..3d6d5108 100644 --- a/web/speaker/speaker.html +++ b/web/speaker/speaker.html @@ -4,7 +4,7 @@ Bumble Speaker - +