ModuleNotFoundError: No module named 'folium'

If you’re creating a debugging post, please include the following info:

  1. Share the link to the public app (deployed on Community Cloud).
    Streamlit

  2. Share the link to your app’s public GitHub repository (including a requirements file).
    theeliad/Geospatial-Watches-and-Warnings-App: This is a Climatebase Capstone Project

  3. Share the full text of the error message (not a screenshot).
    [ UTC ] Logs for theeliad-geospatial-watches-and-warnings-app-main.streamlit.app/

    ────────────────────────────────────────────────────────────────────────────────────────

    [18:37:31] 🖥 Provisioning machine...

    [18:37:31] 🎛 Preparing system...

    [18:37:31] ⛓ Spinning up manager process...

    [18:37:36] 🚀 Starting up repository: 'geospatial-watches-and-warnings-app', branch: 'main', main module: 'main.py'

    [18:37:36] 🐙 Cloning repository...

    [18:37:38] 🐙 Cloning into '/mount/src/geospatial-watches-and-warnings-app'...

    [18:37:38] 🐙 Cloned repository!

    [18:37:38] 🐙 Pulling code changes from Github...

    [18:37:39] 📦 Processing dependencies...

    Check if streamlit is installed

    cat: /mount/admin/install_path[2025-10-08 18:37:39.802826] : No such file or directory

    ──────────────────────────────── Installing Streamlit ──────────────────────────────────

    Using uv pip install.

    Using Python 3.10.18 environment at /home/adminuser/venv

    Resolved 37 packages in 409ms

    Prepared 37 packages in 1.80s

    Installed 37 packages in 243ms

    + altair==5.5.0

    + attrs==25.4.0

    + blinker==1.9.0

    + cachetools==6.2.0

    + certifi==2025.10.5

    + charset-normalizer==3.4.3

    + click==8.3.0

    + gitdb==4.0.12

    + gitpython==3.1.45

    + idna==3.10

    + jinja2==3.1.6

    + jsonschema[2025-10-08 18:37:42.372708] ==4.25.1

    + jsonschema-specifications==2025.9.1

    + markupsafe==3.0.3

    + narwhals==2.7.0

    + numpy==2.2.6

    + packaging==25.0

    + pandas==2.3.3

    + pillow==11.3.0

    + protobuf[2025-10-08 18:37:42.372887] ==6.32.1

    + pyarrow==21.0.0

    + pydeck==0.9.1

    + python-dateutil==2.9.0.post0

    + pytz==2025.2

    + referencing==0.36.2

    + [2025-10-08 18:37:42.373065] requests==2.32.5

    + rpds-py==0.27.1

    + six==1.17.0

    + smmap==5.0.2

    + streamlit==1.50.0

    + tenacity==[2025-10-08 18:37:42.373197] 9.1.2

    + toml==0.10.2

    + tornado==6.5.2

    + typing-extensions==4.15.0

    + tzdata==2025.2[2025-10-08 18:37:42.373354]

    + urllib3==2.5.0

    + watchdog==6.0.0

    ────────────────────────────────────────────────────────────────────────────────────────

    [18:37:43] 📦 Processed dependencies!

    cat: /mount/admin/install_path: No such file or directory

    2025-10-08 18:37:50.658 Uncaught app execution

    Traceback (most recent call last):

    File "/home/adminuser/venv/lib/python3.10/site-packages/streamlit/runtime/scriptrunner/exec_code.py", line 128, in exec_func_with_error_handling

    result = func()

    File "/home/adminuser/venv/lib/python3.10/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 669, in code_to_exec

    exec(code, module.__dict__) # noqa: S102

    File "/mount/src/geospatial-watches-and-warnings-app/main.py", line 2, in <module>

    import folium

    ModuleNotFoundError: No module named 'folium'

    main

    theeliad/geospatial-watches-and-warnings-app/main/main.py

  4. Share the Streamlit and Python versions.

Hello Streamlit Cloud Friends!

I am trying to upload a cloud version of my latest Steamlit-folium application and wondering why it is now downloading dependencies despite having a requirements.txt file within the Github repo.

Thanks for any help in advanced.

Looks like you forgot to install folium.

Yeah that is what I immediately noticed, however it should be installed automatically.

The issue was the requirements.txt file, I no longer have this issue but it caused a new error.