Randomly get "Your app is having trouble loading the streamlit_folium.st_folium component." Had to reboot.

Please take a moment to search the forum and documentation before posting a new topic.
If you’re creating a debugging post, please include the following info:

  1. Are you running your app locally or is it deployed? Answer: Running Locally (Win11)

  2. If your app is deployed:
    a. Is it deployed on Community Cloud or another hosting platform? Locally only for now
    b. Share the link to the public deployed app.

  3. Share the link to your app’s public GitHub repository (including a requirements file).

  4. Share the full text of the error message (not a screenshot). Your app is having trouble loading the streamlit_folium.st_folium component.

    If this is an installed component that works locally, the app may be having trouble accessing the component frontend assets due to network latency or proxy settings in your app deployment.

    For more troubleshooting help, please see the Streamlit Component docs or visit our forums.

  5. Share the Streamlit and Python versions. Streamlit 1.52.2 Python 3.14.2

Hey, thanks for sharing all those details and welcome to the community! :blush: The error you’re seeing—“trouble loading the streamlit_folium.st_folium component”—typically means Streamlit can’t find or load the frontend assets for the component. This can happen if the component isn’t installed properly, or if there are issues with your local environment.

First, make sure both folium and streamlit_folium are installed in your environment. You can do this by running:

pip install folium streamlit_folium

If the issue persists, try restarting your app and your terminal, and ensure you’re not behind a restrictive firewall or proxy. For more troubleshooting tips, check the Streamlit Component docs and forum posts.

Sources: