The issue leading to the ModuleNotFoundError: No module named 'ssl' error in Streamlit apps has been identified as a change in a third party library, specifically the Microsoft Authentication Library for Python (MSAL). MSAL is commonly used in conjuction with the Cognite SDK to handle authentication.
MSAL version 1.38, released on 2026-08-24, references the ssl module without declaring a dependency on it. This works on ordinary CPython installations because that environment includes the ssl module by default.
However, Streamlit in the browser uses the Pyodide runtime environment. Pyodide does not include the ssl module by default. This leads to failures when the latest MSAL library is used in Streamlit apps.
The engineering team is currently adding a workaround to the Cognite Streamlit runtime environment setup to ensure that the ssl module is always present.