A previously functional Streamlit app using geopandas and pandas is now failing on Streamlit Cloud due to a sudden ModuleNotFoundError, likely caused by changes in the cloud environment.

1. Are you running your app locally or is it deployed?
Deployed.

2. If your app is deployed:
a. Is it deployed on Community Cloud or another hosting platform?
– Community Cloud (Streamlit Cloud).
b. Share the link to the public deployed app.
https://sentinelprojectroot-pxojweqjzjpwmm3z8zu2k7.streamlit.app/chw_dashboard)*.

**3. Share the link to your app’s public GitHub repository (including a [requirements file] GitHub - LEAN-arch/sentinel_project_root

4. Share the full text of the error message (not a screenshot).
CRITICAL IMPORT ERROR in 1_chw_dashboard.py: No module named ‘geopandas’. Current Python Path: [‘test/app_home.py’, ‘/mount/src/sentinel_project_root/test’, ‘test’, ‘/home/adminuser/venv/bin’, ‘/usr/local/lib/python310.zip’, ‘/usr/local/lib/python3.10’, ‘/usr/local/lib/python3.10/lib-dynload’, ‘/home/adminuser/venv/lib/python3.10/site-packages’]. Attempted to add to path: /mount/src/sentinel_project_root/test. Ensure all modules are correctly placed and __init__.py files exist in ‘pages’ and component subdirectories (e.g., ‘pages/chw_components_sentinel/’).

CRITICAL IMPORT ERROR in 2_clinic_dashboard.py: No module named ‘geopandas’. Current Python Path: [‘test/app_home.py’, ‘/mount/src/sentinel_project_root/test’, ‘test’, ‘/home/adminuser/venv/bin’, ‘/usr/local/lib/python310.zip’, ‘/usr/local/lib/python3.10’, ‘/usr/local/lib/python3.10/lib-dynload’, ‘/home/adminuser/venv/lib/python3.10/site-packages’]. Attempted to add to path: /mount/src/sentinel_project_root/test. Ensure all modules are correctly placed and __init__.py files exist in ‘pages’ and component subdirectories. Also, ensure all external libraries (like geopandas, pandas, etc.) are installed in your environment (see requirements.txt).

CRITICAL IMPORT ERROR in 3_district_dashboard.py: No module named ‘geopandas’. Current Python Path: [‘test/app_home.py’, ‘/mount/src/sentinel_project_root/test’, ‘test’, ‘/home/adminuser/venv/bin’, ‘/usr/local/lib/python310.zip’, ‘/usr/local/lib/python3.10’, ‘/usr/local/lib/python3.10/lib-dynload’, ‘/home/adminuser/venv/lib/python3.10/site-packages’]. Attempted to add to path: /mount/src/sentinel_project_root/test. Ensure all modules are correctly placed and __init__.py files exist in ‘pages’ and component subdirectories. Most importantly, ensure all external libraries (like geopandas, pandas, etc.) are installed in your Python environment (see requirements.txt and, if on Streamlit Cloud, packages.txt).

CRITICAL IMPORT ERROR in 4_population_dashboard.py: No module named ‘plotly’. Current Python Path: [‘test/app_home.py’, ‘/mount/src/sentinel_project_root/test’, ‘test’, ‘/home/adminuser/venv/bin’, ‘/usr/local/lib/python310.zip’, ‘/usr/local/lib/python3.10’, ‘/usr/local/lib/python3.10/lib-dynload’, ‘/home/adminuser/venv/lib/python3.10/site-packages’]. Attempted to add to path: /mount/src/sentinel_project_root/test. Ensure all modules are correctly placed and __init__.py files exist in ‘pages’ and component subdirectories. Most importantly, ensure all external libraries (like plotly, pandas, etc.) are installed in your Python environment (see requirements.txt).

5. Share the Streamlit and Python versions.
– Streamlit: >=1.38.0
– Python: 3.10

1 Like