Collecting usage statistics failure

Hi there.

App is crashing with this in the terminal:

Collecting usage statistics. To deactivate, set browser.gatherUsageStats to False.

I created a config.toml fil in my Github repo, and added the line:

[browser]
gatherUsageStats = false

After reboot, still facing the same issue.

What should I do to fix it?
The repo : https://github.com/cnoret/Energie_France/tree/main
The cloud : https://energie-france.streamlit.app/

Thanks for your time.

Hey @sibmel29, welcome to our forum :balloon:

My intuition is this is not the reason why the app crashes. This is just a default log that is shown for every app building.

Would you mind sharing the full traceback in your terminal? I’m hoping there is something else we could understand! Oh and btw, your repository is private, so can’t read it!

Thanks Arnaud for the swift reply. :wave:

So it seems to be crashing right after the installation of the requirements.

For context, the file contains this:

matplotlib
numpy
pandas
scikit_learn
streamlit
streamlit_option_menu
geopandas
ipywidgets
pyarrow
plotly
colorcet
seaborn
datetime

Probably much easier to read in this version:

[ UTC ] Logs for energie-france.streamlit.app/
────────────────────────────────────────────────────────────────────────────────────────
[10:16:00] :rocket: Starting up repository: β€˜energie_france’, branch: β€˜main’, main module: β€˜streamlit_app.py’
[10:16:00] :octopus: Cloning repository…
[10:16:04] :octopus: Cloning into β€˜/mount/src/energie_france’…

[10:16:04] :octopus: Cloned repository!
[10:16:04] :octopus: Pulling code changes from Github…
[10:16:05] :package: Processing dependencies…

──────────────────────────────────────── pip ───────────────────────────────────────────

Collecting matplotlib
Downloading matplotlib-3.8.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (11.6 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 11.6/11.6 MB 135.0 MB/s eta 0:00:00[2023-10-14 10:16:07.425223]
Collecting numpy
Downloading numpy-1.26.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (18.2 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 18.2/18.2 MB 140.9 MB/s eta 0:00:00[2023-10-14 10:16:08.059163]
Collecting pandas
Downloading pandas-2.1.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (12.3 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 12.3/12.3 MB 207.4 MB/s eta 0:00:00[2023-10-14 10:16:08.618359]
Collecting scikit_learn
Downloading scikit_learn-1.3.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (10.9 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 10.9/10.9 MB 175.3 MB/s eta 0:00:00[2023-10-14 10:16:08.971037]
Collecting streamlit
Downloading streamlit-1.27.2-py2.py3-none-any.whl (7.6 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 7.6/7.6 MB 176.5 MB/s eta 0:00:00[2023-10-14 10:16:09.165663]
Collecting streamlit_option_menu
Downloading streamlit_option_menu-0.3.6-py3-none-any.whl (799 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 799.2/799.2 KB 141.5 MB/s eta 0:00:00[2023-10-14 10:16:09.245037]
Collecting geopandas
Downloading geopandas-0.14.0-py3-none-any.whl (1.1 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.1/1.1 MB 170.4 MB/s eta 0:00:00[2023-10-14 10:16:09.325252]
Collecting ipywidgets
Downloading ipywidgets-8.1.1-py3-none-any.whl (139 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 139.4/139.4 KB 207.8 MB/s eta 0:00:00[2023-10-14 10:16:09.422891]
Collecting pyarrow
Downloading pyarrow-13.0.0-cp39-cp39-manylinux_2_28_x86_64.whl (40.1 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 40.1/40.1 MB 164.9 MB/s eta 0:00:00[2023-10-14 10:16:09.863630]
Collecting plotly
Downloading plotly-5.17.0-py2.py3-none-any.whl (15.6 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 15.6/15.6 MB 83.9 MB/s eta 0:00:00[2023-10-14 10:16:10.320629]
Collecting colorcet
Downloading colorcet-3.0.1-py2.py3-none-any.whl (1.7 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.7/1.7 MB 185.2 MB/s eta 0:00:00[2023-10-14 10:16:10.593231]
Collecting seaborn
Downloading seaborn-0.13.0-py3-none-any.whl (294 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 294.6/294.6 KB 190.4 MB/s eta 0:00:00[2023-10-14 10:16:10.655996]
Collecting datetime
Downloading DateTime-5.2-py3-none-any.whl (52 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 52.2/52.2 KB 119.9 MB/s eta 0:00:00[2023-10-14 10:16:10.706607]
Collecting kiwisolver>=1.0.1
Downloading kiwisolver-1.4.5-cp39-cp39-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (1.6 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.6/1.6 MB 153.7 MB/s eta 0:00:00[2023-10-14 10:16:10.933466]
Collecting fonttools>=4.22.0
Downloading fonttools-4.43.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.5 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 4.5/4.5 MB 185.3 MB/s eta 0:00:00[2023-10-14 10:16:11.200844]
Collecting pillow>=6.2.0
Downloading Pillow-10.0.1-cp39-cp39-manylinux_2_28_x86_64.whl (3.6 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.6/3.6 MB 141.2 MB/s eta 0:00:00
Collecting cycler>=0.10
Downloading cycler-0.12.1-py3-none-any.whl (8.3 kB)
Collecting packaging>=20.0
Downloading packaging-23.2-py3-none-any.whl (53 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 53.0/53.0 KB 121.4 MB/s eta 0:00:00[2023-10-14 10:16:11.934684]
Collecting python-dateutil>=2.7
Downloading python_dateutil-2.8.2-py2.py3-none-any.whl (247 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 247.7/247.7 KB 149.9 MB/s eta 0:00:00[2023-10-14 10:16:12.011387]
Collecting contourpy>=1.0.1
Downloading contourpy-1.1.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (301 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 301.9/301.9 KB 167.1 MB/s eta 0:00:00[2023-10-14 10:16:12.228905]
Collecting importlib-resources>=3.2.0
Downloading importlib_resources-6.1.0-py3-none-any.whl (33 kB)
Collecting pyparsing>=2.3.1
Downloading pyparsing-3.1.1-py3-none-any.whl (103 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 103.1/103.1 KB 133.2 MB/s eta 0:00:00[2023-10-14 10:16:12.408565]
Collecting tzdata>=2022.1
Downloading tzdata-2023.3-py2.py3-none-any.whl (341 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 341.8/341.8 KB 158.0 MB/s eta 0:00:00[2023-10-14 10:16:12.627470]
Collecting pytz>=2020.1
Downloading pytz-2023.3.post1-py2.py3-none-any.whl (502 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 502.5/502.5 KB 140.4 MB/s eta 0:00:00[2023-10-14 10:16:12.784452]
Collecting scipy>=1.5.0
Downloading scipy-1.11.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (36.6 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 36.6/36.6 MB 170.7 MB/s eta 0:00:00[2023-10-14 10:16:13.609968]
Collecting joblib>=1.1.1
Downloading joblib-1.3.2-py3-none-any.whl (302 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 302.2/302.2 KB 153.1 MB/s eta 0:00:00[2023-10-14 10:16:13.783366]
Collecting threadpoolctl>=2.0.0
Downloading threadpoolctl-3.2.0-py3-none-any.whl (15 kB)
Collecting toml<2,>=0.10.1
Downloading toml-0.10.2-py2.py3-none-any.whl (16 kB)
Collecting protobuf<5,>=3.20
Downloading protobuf-4.24.4-cp37-abi3-manylinux2014_x86_64.whl (311 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 311.6/311.6 KB 221.3 MB/s eta 0:00:00[2023-10-14 10:16:14.501203]
Collecting tzlocal<6,>=1.1
Downloading tzlocal-5.1-py3-none-any.whl (21 kB)
Collecting cachetools<6,>=4.0
Downloading cachetools-5.3.1-py3-none-any.whl (9.3 kB)
Collecting rich<14,>=10.14.0
Downloading rich-13.6.0-py3-none-any.whl (239 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 239.8/239.8 KB 175.3 MB/s eta 0:00:00[2023-10-14 10:16:14.855642]
Collecting click<9,>=7.0
Downloading click-8.1.7-py3-none-any.whl (97 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 97.9/97.9 KB 179.1 MB/s eta 0:00:00[2023-10-14 10:16:14.917775]
Collecting pydeck<1,>=0.8.0b4
Downloading pydeck-0.8.1b0-py2.py3-none-any.whl (4.8 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 4.8/4.8 MB 223.7 MB/s eta 0:00:00[2023-10-14 10:16:15.001243]
Collecting tenacity<9,>=8.1.0
Downloading tenacity-8.2.3-py3-none-any.whl (24 kB)
Collecting altair<6,>=4.0
Downloading altair-5.1.2-py3-none-any.whl (516 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 516.2/516.2 KB 149.1 MB/s eta 0:00:00[2023-10-14 10:16:15.142449]
Collecting validators<1,>=0.2
Downloading validators-0.22.0-py3-none-any.whl (26 kB)
Collecting blinker<2,>=1.0.0
Downloading blinker-1.6.3-py3-none-any.whl (13 kB)
Collecting tornado<7,>=6.0.3
Downloading tornado-6.3.3-cp38-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (427 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 427.7/427.7 KB 175.1 MB/s eta 0:00:00[2023-10-14 10:16:15.408268]
Collecting importlib-metadata<7,>=1.4
Downloading importlib_metadata-6.8.0-py3-none-any.whl (22 kB)
Collecting typing-extensions<5,>=4.3.0
Downloading typing_extensions-4.8.0-py3-none-any.whl (31 kB)
Collecting watchdog>=2.1.5
Downloading watchdog-3.0.0-py3-none-manylinux2014_x86_64.whl (82 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 82.1/82.1 KB 165.1 MB/s eta 0:00:00[2023-10-14 10:16:15.793785]
Collecting gitpython!=3.1.19,<4,>=3.0.7
Downloading GitPython-3.1.37-py3-none-any.whl (190 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 190.0/190.0 KB 215.9 MB/s eta 0:00:00[2023-10-14 10:16:15.926230]
Collecting requests<3,>=2.27
Downloading requests-2.31.0-py3-none-any.whl (62 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 62.6/62.6 KB 121.5 MB/s eta 0:00:00[2023-10-14 10:16:16.020150]
Collecting fiona>=1.8.21
Downloading fiona-1.9.5-cp39-cp39-manylinux2014_x86_64.whl (15.7 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 15.7/15.7 MB 201.1 MB/s eta 0:00:00[2023-10-14 10:16:16.347700]
Collecting pyproj>=3.3.0
Downloading pyproj-3.6.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (8.3 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 8.3/8.3 MB 192.2 MB/s eta 0:00:00[2023-10-14 10:16:16.629111]
Collecting shapely>=1.8.0
Downloading shapely-2.0.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.5 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.5/2.5 MB 148.4 MB/s eta 0:00:00[2023-10-14 10:16:17.071128]
Collecting traitlets>=4.3.1
Downloading traitlets-5.11.2-py3-none-any.whl (83 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 83.7/83.7 KB 118.5 MB/s eta 0:00:00[2023-10-14 10:16:17.235890]
Collecting jupyterlab-widgets~=3.0.9
Downloading jupyterlab_widgets-3.0.9-py3-none-any.whl (214 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 214.9/214.9 KB 164.5 MB/s eta 0:00:00[2023-10-14 10:16:17.311482]
Collecting ipython>=6.1.0
Downloading ipython-8.16.1-py3-none-any.whl (806 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 807.0/807.0 KB 149.6 MB/s eta 0:00:00[2023-10-14 10:16:17.459135]
Collecting comm>=0.1.3
Downloading comm-0.1.4-py3-none-any.whl (6.6 kB)
Collecting widgetsnbextension~=4.0.9
Downloading widgetsnbextension-4.0.9-py3-none-any.whl (2.3 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.3/2.3 MB 147.5 MB/s eta 0:00:00[2023-10-14 10:16:17.638489]
Collecting pyct>=0.4.4
Downloading pyct-0.5.0-py2.py3-none-any.whl (15 kB)
Collecting zope.interface
Downloading zope.interface-6.1-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (246 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 246.2/246.2 KB 140.4 MB/s eta 0:00:00[2023-10-14 10:16:18.271680]
Collecting jinja2
Downloading Jinja2-3.1.2-py3-none-any.whl (133 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 133.1/133.1 KB 121.7 MB/s eta 0:00:00[2023-10-14 10:16:18.410737]
Collecting toolz
Downloading toolz-0.12.0-py3-none-any.whl (55 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 55.8/55.8 KB 102.5 MB/s eta 0:00:00[2023-10-14 10:16:18.483776]
Collecting jsonschema>=3.0
Downloading jsonschema-4.19.1-py3-none-any.whl (83 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 83.3/83.3 KB 110.7 MB/s eta 0:00:00[2023-10-14 10:16:18.647256]
Collecting cligj>=0.5
Downloading cligj-0.7.2-py3-none-any.whl (7.1 kB)
Collecting attrs>=19.2.0
Downloading attrs-23.1.0-py3-none-any.whl (61 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 61.2/61.2 KB 156.2 MB/s eta 0:00:00
Collecting six
Downloading six-1.16.0-py2.py3-none-any.whl (11 kB)
Collecting certifi
Downloading certifi-2023.7.22-py3-none-any.whl (158 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 158.3/158.3 KB 180.3 MB/s eta 0:00:00
Collecting setuptools
Downloading setuptools-68.2.2-py3-none-any.whl (807 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 807.9/807.9 KB 197.1 MB/s eta 0:00:00[2023-10-14 10:16:19.568932]
Collecting click-plugins>=1.0
Downloading click_plugins-1.1.1-py2.py3-none-any.whl (7.5 kB)
Collecting gitdb<5,>=4.0.1
Downloading gitdb-4.0.10-py3-none-any.whl (62 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 62.7/62.7 KB 111.7 MB/s eta 0:00:00[2023-10-14 10:16:19.724501]
Collecting zipp>=0.5
Downloading zipp-3.17.0-py3-none-any.whl (7.4 kB)
Collecting pygments>=2.4.0
Downloading Pygments-2.16.1-py3-none-any.whl (1.2 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.2/1.2 MB 243.4 MB/s eta 0:00:00[2023-10-14 10:16:20.117086]
Collecting exceptiongroup
Downloading exceptiongroup-1.1.3-py3-none-any.whl (14 kB)
Collecting stack-data
Downloading stack_data-0.6.3-py3-none-any.whl (24 kB)
Collecting prompt-toolkit!=3.0.37,<3.1.0,>=3.0.30
Downloading prompt_toolkit-3.0.39-py3-none-any.whl (385 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 385.2/385.2 KB 165.9 MB/s eta 0:00:00[2023-10-14 10:16:20.470681]
Collecting pickleshare
Downloading pickleshare-0.7.5-py2.py3-none-any.whl (6.9 kB)
Collecting matplotlib-inline
Downloading matplotlib_inline-0.1.6-py3-none-any.whl (9.4 kB)
Collecting jedi>=0.16
Downloading jedi-0.19.1-py2.py3-none-any.whl (1.6 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.6/1.6 MB 150.9 MB/s eta 0:00:00[2023-10-14 10:16:20.679577]
Collecting pexpect>4.3
Downloading pexpect-4.8.0-py2.py3-none-any.whl (59 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 59.0/59.0 KB 157.2 MB/s eta 0:00:00[2023-10-14 10:16:20.747864]
Collecting decorator
Downloading decorator-5.1.1-py3-none-any.whl (9.1 kB)
Collecting backcall
Downloading backcall-0.2.0-py2.py3-none-any.whl (11 kB)
Collecting param>=1.7.0
Downloading param-1.13.0-py2.py3-none-any.whl (87 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 87.3/87.3 KB 138.3 MB/s eta 0:00:00[2023-10-14 10:16:21.034701]
Collecting idna<4,>=2.5
Downloading idna-3.4-py3-none-any.whl (61 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 61.5/61.5 KB 132.0 MB/s eta 0:00:00[2023-10-14 10:16:21.260139]
Collecting charset-normalizer<4,>=2
Downloading charset_normalizer-3.3.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (138 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 139.0/139.0 KB 170.7 MB/s eta 0:00:00[2023-10-14 10:16:21.460848]
Collecting urllib3<3,>=1.21.1
Downloading urllib3-2.0.6-py3-none-any.whl (123 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 123.8/123.8 KB 168.6 MB/s eta 0:00:00[2023-10-14 10:16:21.575328]
Collecting markdown-it-py>=2.2.0
Downloading markdown_it_py-3.0.0-py3-none-any.whl (87 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 87.5/87.5 KB 117.5 MB/s eta 0:00:00[2023-10-14 10:16:21.678819]
Collecting smmap<6,>=3.0.1
Downloading smmap-5.0.1-py3-none-any.whl (24 kB)
Collecting parso<0.9.0,>=0.8.3
Downloading parso-0.8.3-py2.py3-none-any.whl (100 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100.8/100.8 KB 155.2 MB/s eta 0:00:00[2023-10-14 10:16:22.299953]
Collecting MarkupSafe>=2.0
Downloading MarkupSafe-2.1.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (25 kB)
Collecting rpds-py>=0.7.1
Downloading rpds_py-0.10.6-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.2 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.2/1.2 MB 184.9 MB/s eta 0:00:00[2023-10-14 10:16:22.902161]
Collecting referencing>=0.28.4
Downloading referencing-0.30.2-py3-none-any.whl (25 kB)
Collecting jsonschema-specifications>=2023.03.6
Downloading jsonschema_specifications-2023.7.1-py3-none-any.whl (17 kB)
Collecting mdurl~=0.1
Downloading mdurl-0.1.2-py3-none-any.whl (10.0 kB)
Collecting ptyprocess>=0.5
Downloading ptyprocess-0.7.0-py2.py3-none-any.whl (13 kB)
Collecting wcwidth
Downloading wcwidth-0.2.8-py2.py3-none-any.whl (31 kB)
Collecting asttokens>=2.1.0
Downloading asttokens-2.4.0-py2.py3-none-any.whl (27 kB)
Collecting executing>=1.2.0
Downloading executing-2.0.0-py2.py3-none-any.whl (24 kB)
Collecting pure-eval
Downloading pure_eval-0.2.2-py3-none-any.whl (11 kB)
Installing collected packages: wcwidth, pytz, pure-eval, ptyprocess, pickleshare, executing, backcall, zipp, widgetsnbextension, watchdog, validators, urllib3, tzlocal, tzdata, typing-extensions, traitlets, tornado, toolz, toml, threadpoolctl, tenacity, smmap, six, setuptools, rpds-py, pyparsing, pygments, protobuf, prompt-toolkit, pillow, pexpect, parso, param, packaging, numpy, mdurl, MarkupSafe, kiwisolver, jupyterlab-widgets, joblib, idna, fonttools, exceptiongroup, decorator, cycler, click, charset-normalizer, certifi, cachetools, blinker, attrs, zope.interface, shapely, scipy, requests, referencing, python-dateutil, pyproj, pyct, pyarrow, plotly, matplotlib-inline, markdown-it-py, jinja2, jedi, importlib-resources, importlib-metadata, gitdb, contourpy, comm, cligj, click-plugins, asttokens, stack-data, scikit_learn, rich, pydeck, pandas, matplotlib, jsonschema-specifications, gitpython, fiona, datetime, colorcet, seaborn, jsonschema, ipython, geopandas, ipywidgets, altair, streamlit, streamlit_option_menu
Attempting uninstall: setuptools
Found existing installation: setuptools 68.2.0
Uninstalling setuptools-68.2.0:
Successfully uninstalled setuptools-68.2.0
Successfully installed MarkupSafe-2.1.3 altair-5.1.2 asttokens-2.4.0 attrs-23.1.0 backcall-0.2.0 blinker-1.6.3 cachetools-5.3.1 certifi-2023.7.22 charset-normalizer-3.3.0 click-8.1.7 click-plugins-1.1.1 cligj-0.7.2 colorcet-3.0.1 comm-0.1.4 contourpy-1.1.1 cycler-0.12.1 datetime-5.2 decorator-5.1.1 exceptiongroup-1.1.3 executing-2.0.0 fiona-1.9.5 fonttools-4.43.1 geopandas-0.14.0 gitdb-4.0.10 gitpython-3.1.37 idna-3.4 importlib-metadata-6.8.0 importlib-resources-6.1.0 ipython-8.16.1 ipywidgets-8.1.1 jedi-0.19.1 jinja2-3.1.2 joblib-1.3.2 jsonschema-4.19.1 jsonschema-specifications-2023.7.1 jupyterlab-widgets-3.0.9 kiwisolver-1.4.5 markdown-it-py-3.0.0 matplotlib-3.8.0 matplotlib-inline-0.1.6 mdurl-0.1.2 numpy-1.26.0 packaging-23.2 pandas-2.1.1 param-1.13.0 parso-0.8.3 pexpect-4.8.0 pickleshare-0.7.5 pillow-10.0.1 plotly-5.17.0 prompt-toolkit-3.0.39 protobuf-4.24.4 ptyprocess-0.7.0 pure-eval-0.2.2 pyarrow-13.0.0 pyct-0.5.0 pydeck-0.8.1b0 pygments-2.16.1 pyparsing-3.1.1 pyproj-3.6.1 python-dateutil-2.8.2 pytz-2023.3.post1 referencing-0.30.2 requests-2.31.0 rich-13.6.0 rpds-py-0.10.6 scikit_learn-1.3.1 scipy-1.11.3 seaborn-0.13.0 setuptools-68.2.2 shapely-2.0.2 six-1.16.0 smmap-5.0.1 stack-data-0.6.3 streamlit-1.27.2 streamlit_option_menu-0.3.6 tenacity-8.2.3 threadpoolctl-3.2.0 toml-0.10.2 toolz-0.12.0 tornado-6.3.3 traitlets-5.11.2 typing-extensions-4.8.0 tzdata-2023.3 tzlocal-5.1 urllib3-2.0.6 validators-0.22.0 watchdog-3.0.0 wcwidth-0.2.8 widgetsnbextension-4.0.9 zipp-3.17.0 zope.interface-6.1
WARNING: You are using pip version 22.0.3; however, version 23.2.1 is available.
You should consider upgrading via the β€˜/home/adminuser/venv/bin/python -m pip install --upgrade pip’ command.
Checking if Streamlit is installed
Found Streamlit version 1.27.2 in the environment

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

[10:17:11] :snake: Python dependencies were installed from /mount/src/energie_france/requirements.txt using pip.
Check if streamlit is installed
Streamlit is already installed
[10:17:12] :package: Processed dependencies!

Collecting usage statistics. To deactivate, set browser.gatherUsageStats to False.

[11:14:40] :exclamation: Streamlit server consistently failed status checks
[11:14:40] :exclamation: Please fix the errors, push an update to the git repo, or reboot the app.

Hi there, @arnaud !

We have made the repo public, hoping you’ll be able to check it out on your side when you get a chance.

Thanks a lot! :pray:

Hey @sibmel29,

Thanks for sharing your logs, and also making the repository public. I was able to fork your repository, try to deploy it in Cloud and also locally.

A few notes:

  1. I confirm the app crashes in Community Cloud after successfully building. Meaning, the requirements are properly installed, the app starts, but then the server crashes.
  2. Launched the app locally and there it does work, but after painful computations being done repeatedly.

I suspect this (the heavy computations being done at app start) might be a reason why the app crashes. To test that hypothesis, I tried commenting all imports and the app now works. Well, the app is now almost empty so you better hope it does. But at least it confirms that all the different packages and utils are not causing issues. See the app and my forked repo.

My recommendation: try and hide all of this costly Pandas logic into a separated function that uses the @st.cache_data decorator. Maybe even better, pre-compute that into your .parquet file already, so this computation doesn’t have to be rerun all the time!

Thanks Arnaud!

I created a new parquet file, pushed it from github desktop, and it’s working like a charm now, all the pre-processing needs to be done outside StreamLit, I understand.

Thanks for your help!
Cheers

Simon

Awesome! Yeah it’s generally best practice to take any job that doesn’t need to be done in Streamlit… outside Streamlit. That will maximize a good user experience for your app visitors.

Kinda resonates with a great article @blackary just wrote btw: How to improve Streamlit app loading speed

Best,

1 Like

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