Streamlit Sharing Deploy Caught in Endless Loop

Hi Community, Streamlit seems like an amazing product for data geeks and I’m onboarding myself with my 1st Sharing App.

My repo is here: https://github.com/s0yabean/mbti_classifier_streamlit

Every time I deploy it, it will create an endless loop of loading dependencies.

It seems to be stuck at a pretrained-embedding model, which I’m using word2vec-google-news-300.gz. Also, I have a pickled model in the same repo.

Not sure how to debug, thanks!

Copy & Paste of Logs:

*Requirement already satisfied, skipping upgrade: webencodings in /usr/local/lib/python3.7/site-packages (from bleach->nbconvert->notebook>=4.4.1->widgetsnbextension~=3.5.0->ipywidgets>=7.0.0->pydeck>=0.1.dev5->streamlit==0.69.2->-r requirements.txt (line 2)) (0.5.1)*

*Requirement already satisfied, skipping upgrade: nest-asyncio in /usr/local/lib/python3.7/site-packages (from nbclient<0.6.0,>=0.5.0->nbconvert->notebook>=4.4.1->widgetsnbextension~=3.5.0->ipywidgets>=7.0.0->pydeck>=0.1.dev5->streamlit==0.69.2->-r requirements.txt (line 2)) (1.4.1)*

*Requirement already satisfied, skipping upgrade: async-generator in /usr/local/lib/python3.7/site-packages (from nbclient<0.6.0,>=0.5.0->nbconvert->notebook>=4.4.1->widgetsnbextension~=3.5.0->ipywidgets>=7.0.0->pydeck>=0.1.dev5->streamlit==0.69.2->-r requirements.txt (line 2)) (1.10)*


*  You can now view your Streamlit app in your browser.*


*  Network URL: http://10.12.131.14:8501*

*  External URL: [2020-10-30 01:29:38.600715] http://34.105.31.194:8501*


*2020-10-30 01:29:39.713 loading projection weights from /home/appuser/gensim-data/word2vec-google-news-300/word2vec-google-news-300.gz*

*Requirement already up-to-date: scikit-learn==0.21.3 in /home/appuser/.local/lib/python3.7/site-packages (from -r requirements.txt (line 1)) (0.21.3)*

*Requirement already up-to-date: streamlit==0.69.2 in /usr/local/lib/python3.7/site-packages (from -r requirements.txt (line 2)) (0.69.2)*

*Requirement already up-to-date: numpy==1.19.2 in /usr/local/lib/python3.7/site-packages (from -r requirements.txt (line 3)) (1.19.2)*

*Requirement already up-to-date: pandas==1.1.3 in /usr/local/lib/python3.7/site-packages (from -r requirements.txt (line 4)) (1.1.3)*

*Requirement already up-to-date: gensim==3.8.3 in /home/appuser/.local/lib/python3.7/site-packages (from -r requirements.txt (line 6)) (3.8.3)*

*Requirement already up-to-date: pickleshare==0.7.5 in /usr/local/lib/python3.7/site-packages (from -r requirements.txt (line 7)) (0.7.5)*

*Requirement already satisfied, skipping upgrade: scipy>=0.17.0 in /home/appuser/.local/lib/python3.7/site-packages (from scikit-learn==0.21.3->-r requirements.txt (line 1)) (1.5.3)*

*Requirement already satisfied, skipping upgrade: joblib>=0.11 in /home/appuser/.local/lib/python3.7/site-packages (from scikit-learn==0.21.3->-r requirements.txt (line 1)) (0.17.0)*

*Requirement already satisfied, skipping upgrade: tornado>=5.0 in /usr/local/lib/python3.7/site-packages (from streamlit==0.69.2->-r requirements.txt (line 2)) (6.0.4)*

*Requirement already satisfied, skipping upgrade: packaging in /usr/local/lib/python3.7/site-packages (from streamlit==0.69.2->-r requirements.txt (line 2)) (20.4)*

*Requirement already satisfied, skipping upgrade: botocore>=1.13.44 in /usr/local/lib/python3.7/site-packages (from streamlit==0.69.2->-r requirements.txt (line 2)) (1.19.3)*

*Requirement already satisfied, skipping upgrade: python-dateutil in /usr/local/lib/python3.7/site-packages (from streamlit==0.69.2->-r requirements.txt (line 2)) (2.8.1)*

*Requirement already satisfied, skipping upgrade: tzlocal in /usr/local/lib/python3.7/site-packages (from streamlit==0.69.2->-r requirements.txt (line 2)) (2.1)*

*Requirement already satisfied, skipping upgrade: pillow>=6.2.0 in /usr/local/lib/python3.7/site-packages (from streamlit==0.69.2->-r requirements.txt (line 2)) (8.0.1)*

*Requirement already satisfied, skipping upgrade: requests in /usr/local/lib/python3.7/site-packages (from streamlit==0.69.2->-r requirements.txt (line 2)) (2.24.0)*

*Requirement already satisfied, skipping upgrade: watchdog in /usr/local/lib/python3.7/site-packages (from streamlit==0.69.2->-r requirements.txt (line 2)) (0.10.3)*

*Requirement already satisfied, skipping upgrade: protobuf>=3.6.0 in /usr/local/lib/python3.7/site-packages (from streamlit==0.69.2->-r requirements.txt (line 2)) (3.13.0)*

*Requirement already satisfied, skipping upgrade: gitpython in /usr/local/lib/python3.7/site-packages (from streamlit==0.69.2->-r requirements.txt (line 2)) (3.1.9)*

*Requirement already satisfied, skipping upgrade: altair>=3.2.0 in /usr/local/lib/python3.7/site-packages (from streamlit==0.69.2->-r requirements.txt (line 2)) (4.1.0)*

*Requirement already satisfied, skipping upgrade: pydeck>=0.1.dev5 in /usr/local/lib/python3.7/site-packages (from streamlit==0.69.2->-r requirements.txt (line 2)) (0.5.0b1)*

*Requirement already satisfied, skipping upgrade: toml in /usr/local/lib/python3.7/site-packages (from streamlit==0.69.2->-r requirements.txt (line 2)) (0.10.1)*

*Requirement already satisfied, skipping upgrade: boto3 in /usr/local/lib/python3.7/site-packages (from streamlit==0.69.2->-r requirements.txt (line 2)) (1.16.3)*

*Requirement already satisfied, skipping upgrade: base58 in /usr/local/lib/python3.7/site-packages (from streamlit==0.69.2->-r requirements.txt (line 2)) (2.0.1)*

*Requirement already satisfied, skipping upgrade: enum-compat in /usr/local/lib/python3.7/site-packages (from streamlit==0.69.2->-r requirements.txt (line 2)) (0.0.3)*

*Requirement already satisfied, skipping upgrade: astor in /usr/local/lib/python3.7/site-packages (from streamlit==0.69.2->-r requirements.txt (line 2)) (0.8.1)*

*Requirement already satisfied, skipping upgrade: validators in /usr/local/lib/python3.7/site-packages (from streamlit==0.69.2->-r requirements.txt (line 2)) (0.18.1)*

*Requirement already satisfied, skipping upgrade: pyarrow in /usr/local/lib/python3.7/site-packages (from streamlit==0.69.2->-r requirements.txt (line 2)) (2.0.0)*

*Requirement already satisfied, skipping upgrade: blinker in /usr/local/lib/python3.7/site-packages (from streamlit==0.69.2->-r requirements.txt (line 2)) (1.4)*

*Requirement already satisfied, skipping upgrade: cachetools>=4.0 in /usr/local/lib/python3.7/site-packages (from streamlit==0.69.2->-r requirements.txt (line 2)) (4.1.1)*

*Requirement already satisfied, skipping upgrade: click>=7.0 in /usr/local/lib/python3.7/site-packages (from streamlit==0.69.2->-r requirements.txt (line 2)) (7.1.2)*

*Requirement already satisfied, skipping upgrade: pytz>=2017.2 in /usr/local/lib/python3.7/site-packages (from pandas==1.1.3->-r requirements.txt (line 4)) (2020.1)*

*Requirement already satisfied, skipping upgrade: six>=1.5.0 in /usr/local/lib/python3.7/site-packages (from gensim==3.8.3->-r requirements.txt (line 6)) (1.15.0)*

*Requirement already satisfied, skipping upgrade: smart-open>=1.8.1 in /home/appuser/.local/lib/python3.7/site-packages (from gensim==3.8.3->-r requirements.txt (line 6)) (3.0.0)*

*Requirement already satisfied, skipping upgrade: pyparsing>=2.0.2 in /usr/local/lib/python3.7/site-packages (from packaging->streamlit==0.69.2->-r requirements.txt (line 2)) (2.4.7)*

*Requirement already satisfied, skipping upgrade: urllib3<1.26,>=1.25.4; python_version != "3.4" in /usr/local/lib/python3.7/site-packages (from botocore>=1.13.44->streamlit==0.69.2->-r requirements.txt (line 2)) (1.25.11)*

*Requirement already satisfied, skipping upgrade: jmespath<1.0.0,>=0.7.1 in /usr/local/lib/python3.7/site-packages (from botocore>=1.13.44->streamlit==0.69.2->-r requirements.txt (line 2)) (0.10.0)*

*Requirement already satisfied, skipping upgrade: chardet<4,>=3.0.2 in /usr/local/lib/python3.7/site-packages (from requests->streamlit==0.69.2->-r requirements.txt (line 2)) (3.0.4)*

*Requirement already satisfied, skipping upgrade: certifi>=2017.4.17 in /usr/local/lib/python3.7/site-packages (from requests->streamlit==0.69.2->-r requirements.txt (line 2)) (2020.6.20)*

*Requirement already satisfied, skipping upgrade: idna<3,>=2.5 in /usr/local/lib/python3.7/site-packages (from requests->streamlit==0.69.2->-r requirements.txt (line 2)) (2.10)*

*Requirement already satisfied, skipping upgrade: pathtools>=0.1.1 in /usr/local/lib/python3.7/site-packages (from watchdog->streamlit==0.69.2->-r requirements.txt (line 2)) (0.1.2)*

*Requirement already satisfied, skipping upgrade: setuptools in /usr/local/lib/python3.7/site-packages (from protobuf>=3.6.0->streamlit==0.69.2->-r requirements.txt (line 2)) (50.3.2)*

*Requirement already satisfied, skipping upgrade: gitdb<5,>=4.0.1 in /usr/local/lib/python3.7/site-packages (from gitpython->streamlit==0.69.2->-r requirements.txt (line 2)) (4.0.5)*

*Requirement already satisfied, skipping upgrade: toolz in /usr/local/lib/python3.7/site-packages (from altair>=3.2.0->streamlit==0.69.2->-r requirements.txt (line 2)) (0.11.1)*

*Requirement already satisfied, skipping upgrade: jinja2 in /usr/local/lib/python3.7/site-packages (from altair>=3.2.0->streamlit==0.69.2->-r requirements.txt (line 2)) (2.11.2)*

*Requirement already satisfied, skipping upgrade: entrypoints in /usr/local/lib/python3.7/site-packages (from altair>=3.2.0->streamlit==0.69.2->-r requirements.txt (line 2)) (0.3)*

*Requirement already satisfied, skipping upgrade: jsonschema in /usr/local/lib/python3.7/site-packages (from altair>=3.2.0->streamlit==0.69.2->-r requirements.txt (line 2)) (3.2.0)*

*Requirement already satisfied, skipping upgrade: traitlets>=4.3.2 in /usr/local/lib/python3.7/site-packages (from pydeck>=0.1.dev5->streamlit==0.69.2->-r requirements.txt (line 2)) (5.0.5)*

*Requirement already satisfied, skipping upgrade: ipywidgets>=7.0.0 in /usr/local/lib/python3.7/site-packages (from pydeck>=0.1.dev5->streamlit==0.69.2->-r requirements.txt (line 2)) (7.5.1)*

*Requirement already satisfied, skipping upgrade: ipykernel>=5.1.2; python_version >= "3.4" in /usr/local/lib/python3.7/site-packages (from pydeck>=0.1.dev5->streamlit==0.69.2->-r requirements.txt (line 2)) (5.3.4)*

*Requirement already satisfied, skipping upgrade: s3transfer<0.4.0,>=0.3.0 in /usr/local/lib/python3.7/site-packages (from boto3->streamlit==0.69.2->-r requirements.txt (line 2)) (0.3.3)*

*Requirement already satisfied, skipping upgrade: decorator>=3.4.0 in /usr/local/lib/python3.7/site-packages (from validators->streamlit==0.69.2->-r requirements.txt (line 2)) (4.4.2)*

*Requirement already satisfied, skipping upgrade: smmap<4,>=3.0.1 in /usr/local/lib/python3.7/site-packages (from gitdb<5,>=4.0.1->gitpython->streamlit==0.69.2->-r requirements.txt (line 2)) (3.0.4)*

*Requirement already satisfied, skipping upgrade: MarkupSafe>=0.23 in /usr/local/lib/python3.7/site-packages (from jinja2->altair>=3.2.0->streamlit==0.69.2->-r requirements.txt (line 2)) (1.1.1)*

*Requirement already satisfied, skipping upgrade: importlib-metadata; python_version < "3.8" in /usr/local/lib/python3.7/site-packages (from jsonschema->altair>=3.2.0->streamlit==0.69.2->-r requirements.txt (line 2)) (2.0.0)*

*Requirement already satisfied, skipping upgrade: pyrsistent>=0.14.0 in /usr/local/lib/python3.7/site-packages (from jsonschema->altair>=3.2.0->streamlit==0.69.2->-r requirements.txt (line 2)) (0.17.3)*

*Requirement already satisfied, skipping upgrade: attrs>=17.4.0 in /usr/local/lib/python3.7/site-packages (from jsonschema->altair>=3.2.0->streamlit==0.69.2->-r requirements.txt (line 2)) (20.2.0)*

*Requirement already satisfied, skipping upgrade: ipython-genutils in /usr/local/lib/python3.7/site-packages (from traitlets>=4.3.2->pydeck>=0.1.dev5->streamlit==0.69.2->-r requirements.txt (line 2)) (0.2.0)*

*Requirement already satisfied, skipping upgrade: ipython>=4.0.0; python_version >= "3.3" in /usr/local/lib/python3.7/site-packages (from ipywidgets>=7.0.0->pydeck>=0.1.dev5->streamlit==0.69.2->-r requirements.txt (line 2)) (7.18.1)*

*Requirement already satisfied, skipping upgrade: nbformat>=4.2.0 in /usr/local/lib/python3.7/site-packages (from ipywidgets>=7.0.0->pydeck>=0.1.dev5->streamlit==0.69.2->-r requirements.txt (line 2)) (5.0.8)*

*Requirement already satisfied, skipping upgrade: widgetsnbextension~=3.5.0 in /usr/local/lib/python3.7/site-packages (from ipywidgets>=7.0.0->pydeck>=0.1.dev5->streamlit==0.69.2->-r requirements.txt (line 2)) (3.5.1)*

*Requirement already satisfied, skipping upgrade: jupyter-client in /usr/local/lib/python3.7/site-packages (from ipykernel>=5.1.2; python_version >= "3.4"->pydeck>=0.1.dev5->streamlit==0.69.2->-r requirements.txt (line 2)) (6.1.7)*

*Requirement already satisfied, skipping upgrade: zipp>=0.5 in /usr/local/lib/python3.7/site-packages (from importlib-metadata; python_version < "3.8"->jsonschema->altair>=3.2.0->streamlit==0.69.2->-r requirements.txt (line 2)) (3.3.1)*

*Requirement already satisfied, skipping upgrade: backcall in /usr/local/lib/python3.7/site-packages (from ipython>=4.0.0; python_version >= "3.3"->ipywidgets>=7.0.0->pydeck>=0.1.dev5->streamlit==0.69.2->-r requirements.txt (line 2)) (0.2.0)*

*Requirement already satisfied, skipping upgrade: pygments in /usr/local/lib/python3.7/site-packages (from ipython>=4.0.0; python_version >= "3.3"->ipywidgets>=7.0.0->pydeck>=0.1.dev5->streamlit==0.69.2->-r requirements.txt (line 2)) (2.7.1)*

*Requirement already satisfied, skipping upgrade: pexpect>4.3; sys_platform != "win32" in /usr/local/lib/python3.7/site-packages (from ipython>=4.0.0; python_version >= "3.3"->ipywidgets>=7.0.0->pydeck>=0.1.dev5->streamlit==0.69.2->-r requirements.txt (line 2)) (4.8.0)*

*Requirement already satisfied, skipping upgrade: prompt-toolkit!=3.0.0,!=3.0.1,<3.1.0,>=2.0.0 in /usr/local/lib/python3.7/site-packages (from ipython>=4.0.0; python_version >= "3.3"->ipywidgets>=7.0.0->pydeck>=0.1.dev5->streamlit==0.69.2->-r requirements.txt (line 2)) (3.0.8)*

*Requirement already satisfied, skipping upgrade: jedi>=0.10 in /usr/local/lib/python3.7/site-packages (from ipython>=4.0.0; python_version >= "3.3"->ipywidgets>=7.0.0->pydeck>=0.1.dev5->streamlit==0.69.2->-r requirements.txt (line 2)) (0.17.2)*

*Requirement already satisfied, skipping upgrade: jupyter-core in /usr/local/lib/python3.7/site-packages (from nbformat>=4.2.0->ipywidgets>=7.0.0->pydeck>=0.1.dev5->streamlit==0.69.2->-r requirements.txt (line 2)) (4.6.3)*

*Requirement already satisfied, skipping upgrade: notebook>=4.4.1 in /usr/local/lib/python3.7/site-packages (from widgetsnbextension~=3.5.0->ipywidgets>=7.0.0->pydeck>=0.1.dev5->streamlit==0.69.2->-r requirements.txt (line 2)) (6.1.4)*

*Requirement already satisfied, skipping upgrade: pyzmq>=13 in /usr/local/lib/python3.7/site-packages (from jupyter-client->ipykernel>=5.1.2; python_version >= "3.4"->pydeck>=0.1.dev5->streamlit==0.69.2->-r requirements.txt (line 2)) (19.0.2)*

*Requirement already satisfied, skipping upgrade: ptyprocess>=0.5 in /usr/local/lib/python3.7/site-packages (from pexpect>4.3; sys_platform != "win32"->ipython>=4.0.0; python_version >= "3.3"->ipywidgets>=7.0.0->pydeck>=0.1.dev5->streamlit==0.69.2->-r requirements.txt (line 2)) (0.6.0)*

*Requirement already satisfied, skipping upgrade: wcwidth in /usr/local/lib/python3.7/site-packages (from prompt-toolkit!=3.0.0,!=3.0.1,<3.1.0,>=2.0.0->ipython>=4.0.0; python_version >= "3.3"->ipywidgets>=7.0.0->pydeck>=0.1.dev5->streamlit==0.69.2->-r requirements.txt (line 2)) (0.2.5)*

*Requirement already satisfied, skipping upgrade: parso<0.8.0,>=0.7.0 in /usr/local/lib/python3.7/site-packages (from jedi>=0.10->ipython>=4.0.0; python_version >= "3.3"->ipywidgets>=7.0.0->pydeck>=0.1.dev5->streamlit==0.69.2->-r requirements.txt (line 2)) (0.7.1)*

*Requirement already satisfied, skipping upgrade: terminado>=0.8.3 in /usr/local/lib/python3.7/site-packages (from notebook>=4.4.1->widgetsnbextension~=3.5.0->ipywidgets>=7.0.0->pydeck>=0.1.dev5->streamlit==0.69.2->-r requirements.txt (line 2)) (0.9.1)*

*Requirement already satisfied, skipping upgrade: nbconvert in /usr/local/lib/python3.7/site-packages (from notebook>=4.4.1->widgetsnbextension~=3.5.0->ipywidgets>=7.0.0->pydeck>=0.1.dev5->streamlit==0.69.2->-r requirements.txt (line 2)) (6.0.7)*

*Requirement already satisfied, skipping upgrade: prometheus-client in /usr/local/lib/python3.7/site-packages (from notebook>=4.4.1->widgetsnbextension~=3.5.0->ipywidgets>=7.0.0->pydeck>=0.1.dev5->streamlit==0.69.2->-r requirements.txt (line 2)) (0.8.0)*

*Requirement already satisfied, skipping upgrade: argon2-cffi in /usr/local/lib/python3.7/site-packages (from notebook>=4.4.1->widgetsnbextension~=3.5.0->ipywidgets>=7.0.0->pydeck>=0.1.dev5->streamlit==0.69.2->-r requirements.txt (line 2)) (20.1.0)*

*Requirement already satisfied, skipping upgrade: Send2Trash in /usr/local/lib/python3.7/site-packages (from notebook>=4.4.1->widgetsnbextension~=3.5.0->ipywidgets>=7.0.0->pydeck>=0.1.dev5->streamlit==0.69.2->-r requirements.txt (line 2)) (1.5.0)*

*Requirement already satisfied, skipping upgrade: mistune<2,>=0.8.1 in /usr/local/lib/python3.7/site-packages (from nbconvert->notebook>=4.4.1->widgetsnbextension~=3.5.0->ipywidgets>=7.0.0->pydeck>=0.1.dev5->streamlit==0.69.2->-r requirements.txt (line 2)) (0.8.4)*

*Requirement already satisfied, skipping upgrade: nbclient<0.6.0,>=0.5.0 in /usr/local/lib/python3.7/site-packages (from nbconvert->notebook>=4.4.1->widgetsnbextension~=3.5.0->ipywidgets>=7.0.0->pydeck>=0.1.dev5->streamlit==0.69.2->-r requirements.txt (line 2)) (0.5.1)*

*Requirement already satisfied, skipping upgrade: defusedxml in /usr/local/lib/python3.7/site-packages (from nbconvert->notebook>=4.4.1->widgetsnbextension~=3.5.0->ipywidgets>=7.0.0->pydeck>=0.1.dev5->streamlit==0.69.2->-r requirements.txt (line 2)) (0.6.0)*

*Requirement already satisfied, skipping upgrade: jupyterlab-pygments in /usr/local/lib/python3.7/site-packages (from nbconvert->notebook>=4.4.1->widgetsnbextension~=3.5.0->ipywidgets>=7.0.0->pydeck>=0.1.dev5->streamlit==0.69.2->-r requirements.txt (line 2)) (0.1.2)*

*Requirement already satisfied, skipping upgrade: pandocfilters>=1.4.1 in /usr/local/lib/python3.7/site-packages (from nbconvert->notebook>=4.4.1->widgetsnbextension~=3.5.0->ipywidgets>=7.0.0->pydeck>=0.1.dev5->streamlit==0.69.2->-r requirements.txt (line 2)) (1.4.2)*

*Requirement already satisfied, skipping upgrade: bleach in /usr/local/lib/python3.7/site-packages (from nbconvert->notebook>=4.4.1->widgetsnbextension~=3.5.0->ipywidgets>=7.0.0->pydeck>=0.1.dev5->streamlit==0.69.2->-r requirements.txt (line 2)) (3.2.1)*

*Requirement already satisfied, skipping upgrade: testpath in /usr/local/lib/python3.7/site-packages (from nbconvert->notebook>=4.4.1->widgetsnbextension~=3.5.0->ipywidgets>=7.0.0->pydeck>=0.1.dev5->streamlit==0.69.2->-r requirements.txt (line 2)) (0.4.4)*

*Requirement already satisfied, skipping upgrade: cffi>=1.0.0 in /usr/local/lib/python3.7/site-packages (from argon2-cffi->notebook>=4.4.1->widgetsnbextension~=3.5.0->ipywidgets>=7.0.0->pydeck>=0.1.dev5->streamlit==0.69.2->-r requirements.txt (line 2)) (1.14.3)*

*Requirement already satisfied, skipping upgrade: nest-asyncio in /usr/local/lib/python3.7/site-packages (from nbclient<0.6.0,>=0.5.0->nbconvert->notebook>=4.4.1->widgetsnbextension~=3.5.0->ipywidgets>=7.0.0->pydeck>=0.1.dev5->streamlit==0.69.2->-r requirements.txt (line 2)) (1.4.1)*

*Requirement already satisfied, skipping upgrade: async-generator in /usr/local/lib/python3.7/site-packages (from nbclient<0.6.0,>=0.5.0->nbconvert->notebook>=4.4.1->widgetsnbextension~=3.5.0->ipywidgets>=7.0.0->pydeck>=0.1.dev5->streamlit==0.69.2->-r requirements.txt (line 2)) (1.10)*

*Requirement already satisfied, skipping upgrade: webencodings in /usr/local/lib/python3.7/site-packages (from bleach->nbconvert->notebook>=4.4.1->widgetsnbextension~=3.5.0->ipywidgets>=7.0.0->pydeck>=0.1.dev5->streamlit==0.69.2->-r requirements.txt (line 2)) (0.5.1)*

*Requirement already satisfied, skipping upgrade: pycparser in /usr/local/lib/python3.7/site-packages (from cffi>=1.0.0->argon2-cffi->notebook>=4.4.1->widgetsnbextension~=3.5.0->ipywidgets>=7.0.0->pydeck>=0.1.dev5->streamlit==0.69.2->-r requirements.txt (line 2)) (2.20)*


*  You can now view your Streamlit app in your browser.*


*  Network URL: http://10.12.131.14:8501*

*  External URL: http://34.105.31.194:8501*


*2020-10-30 01:30:24.866 loading projection weights from /home/appuser/gensim-data/word2vec-google-news-300/word2vec-google-news-300.gz*

*Requirement already up-to-date: scikit-learn==0.21.3 in /home/appuser/.local/lib/python3.7/site-packages (from -r requirements.txt (line 1)) (0.21.3)*

*Requirement already up-to-date: streamlit==0.69.2 in /usr/local/lib/python3.7/site-packages (from -r requirements.txt (line 2)) (0.69.2)*

*Requirement already up-to-date: numpy==1.19.2 in /usr/local/lib/python3.7/site-packages (from -r requirements.txt (line 3)) (1.19.2)*

*Requirement already up-to-date: pandas==1.1.3 in /usr/local/lib/python3.7/site-packages (from -r requirements.txt (line 4)) (1.1.3)*

*Requirement already up-to-date: gensim==3.8.3 in /home/appuser/.local/lib/python3.7/site-packages (from -r requirements.txt (line 6)) (3.8.3)*

*Requirement already up-to-date: pickleshare==0.7.5 in /usr/local/lib/python3.7/site-packages (from -r requirements.txt (line 7)) (0.7.5)*

*Requirement already satisfied, skipping upgrade: joblib>=0.11 in /home/appuser/.local/lib/python3.7/site-packages (from scikit-learn==0.21.3->-r requirements.txt (line 1)) (0.17.0)*

*Requirement already satisfied, skipping upgrade: scipy>=0.17.0 in /home/appuser/.local/lib/python3.7/site-packages (from scikit-learn==0.21.3->-r requirements.txt (line 1)) (1.5.3)*

*Requirement already satisfied, skipping upgrade: pydeck>=0.1.dev5 in /usr/local/lib/python3.7/site-packages (from streamlit==0.69.2->-r requirements.txt (line 2)) (0.5.0b1)*

*Requirement already satisfied, skipping upgrade: pillow>=6.2.0 in /usr/local/lib/python3.7/site-packages (from streamlit==0.69.2->-r requirements.txt (line 2)) (8.0.1)*

*Requirement already satisfied, skipping upgrade: cachetools>=4.0 in /usr/local/lib/python3.7/site-packages (from streamlit==0.69.2->-r requirements.txt (line 2)) (4.1.1)*

*Requirement already satisfied, skipping upgrade: base58 in /usr/local/lib/python3.7/site-packages (from streamlit==0.69.2->-r requirements.txt (line 2)) (2.0.1)*

*Requirement already satisfied, skipping upgrade: click>=7.0 in /usr/local/lib/python3.7/site-packages (from streamlit==0.69.2->-r requirements.txt (line 2)) (7.1.2)*

*Requirement already satisfied, skipping upgrade: requests in /usr/local/lib/python3.7/site-packages (from streamlit==0.69.2->-r requirements.txt (line 2)) (2.24.0)*

*Requirement already satisfied, skipping upgrade: botocore>=1.13.44 in /usr/local/lib/python3.7/site-packages (from streamlit==0.69.2->-r requirements.txt (line 2)) (1.19.3)*

*Requirement already satisfied, skipping upgrade: enum-compat in /usr/local/lib/python3.7/site-packages (from streamlit==0.69.2->-r requirements.txt (line 2)) (0.0.3)*

*Requirement already satisfied, skipping upgrade: blinker in /usr/local/lib/python3.7/site-packages (from streamlit==0.69.2->-r requirements.txt (line 2)) (1.4)*

*Requirement already satisfied, skipping upgrade: pyarrow in /usr/local/lib/python3.7/site-packages (from streamlit==0.69.2->-r requirements.txt (line 2)) (2.0.0)*

*Requirement already satisfied, skipping upgrade: altair>=3.2.0 in /usr/local/lib/python3.7/site-packages (from streamlit==0.69.2->-r requirements.txt (line 2)) (4.1.0)*
1 Like

Hey @s0yabean,

First: Welcome to the Streamlit Community! :partying_face: :partying_face: :partying_face: :tada: :tada: :tada:

I sent your question off to our awesome engineering team this morning and we have some answers for you!

Second, we discovered what’s causing the loop: your app is using too much memory (we currently allow 800 MB for each app, so it could be hitting this limit) in spikes, so it gets killed and then restarted. Checkout the graph that @Jonathan_Rhone grabbed on memory usage:

Every time it restarts it reloads your requirements.txt and you get the messages displayed about the requirements. Where there’s a spike it’s your app restarting and running through the setup process! So this answers the what, but not the why! :thinking:

Now, you say it is getting stuck at a pre-trained embedding model? Do you know how big your model is? If indeed, it is too large this could answer the why. Other possibilities might be a memory leak somewhere.

Since Streamlit Sharing is so new we are still looking into the best ways to give community members heads up when their apps are heavy on memory. If you could check out how much memory your app is tying to load, that would be very helpful! :eyes:

Also, as a Streamlit Sharing user, if you have any feedback or ideas on what might be useful for memory nudges, our ears are always open!! :ear: :grin:

Happy Streamlit-ing!
Marisa

HI @Marisa_Smith, this is awesome, thanks so much for the quick turn-around! :smiley:

I will start looking at these aspects and resolve them - I’m pretty pumped to launch this app within next week, and show it to the world :earth_africa:

If I do find any useful code snippets or flows regarding memory issues, I’ll share them here to pass-it-forward!

1 Like