Folium ModuleNotFoundError

I have started a streamlit project on github. I can load all kinds of other libraries but for some reason with will not load both folium and st_folium. I keep getting a modulenotfound error. The application runs flawlessly locally. Here is the requirements.txt file I have:

altair==5.2.0
attrs==23.1.0
blinker==1.7.0
branca==0.7.0
cachetools==5.3.2
certifi==2023.11.17
charset-normalizer==3.3.2
click==8.1.7
folium==0.14.0
gitdb==4.0.11
GitPython==3.1.40
idna==3.6
importlib-metadata==6.9.0
Jinja2==3.1.2
joblib==1.3.2
jsonschema==4.20.0
jsonschema-specifications==2023.11.2
markdown-it-py==3.0.0
MarkupSafe==2.1.3
mdurl==0.1.2
numpy==1.26.2
packaging==23.2
pandas==1.5.2
Pillow==10.1.0
pip==23.3.1
protobuf==3.20.3
pyarrow==14.0.1
pydeck==0.8.1b0
Pygments==2.17.2
Pympler==1.0.1
python-dateutil==2.8.2
pytz==2023.3.post1
referencing==0.31.1
requests==2.31.0
rich==13.7.0
rpds-py==0.13.2
scikit-learn==1.2.0
scipy==1.11.4
semver==3.0.2
setuptools==65.5.0
six==1.16.0
smmap==5.0.1
streamlit==1.16.0
streamlit-folium==0.16.0
threadpoolctl==3.2.0
toml==0.10.2
toolz==0.12.0
tornado==6.4
typing_extensions==4.8.0
tzlocal==5.2
urllib3==2.1.0
validators==0.22.0
watchdog==3.0.0
zipp==3.17.0

I have searched the forums, tried commenting out those libraries and using others to deploy and they work. The closest thing I found was: ModuleNotFoundError No module named - Streamlit Docs Any help would be appreciated.


I guess I had to remove the application from streamlit-cloud and redeploy and it worked just fine!

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.