I’ve been using Streamlit Sharing for one of way to deploy the app.
However, it seems that SS doesn’t support Flask package as it returns error message.
It worked well locally but only had a problem in SS.
The error message just said
" ```
[manager] Python dependencies were installed from /app/webtools-fitbit4food/requirements.txt using pip.
[manager] installer returned a non-zero exit code
[manager] Error during processing dependencies! Please fix the error and push an update, or try restarting the app.
Happy to help When I forked your repo and deployed to sharing, this is the error I saw in the logs:
[manager] Python dependencies were installed from /app/webtools-fitbit4food/requirements.txt using pip.
[manager] Processed dependencies!
2021-07-08 05:05:41.679 An update to the [server] config option section was detected. To have these changes be reflected, please restart streamlit.
Traceback (most recent call last):
File "reinforcement_engine.py", line 3, in <module>
from flask import Flask, request, make_response
ModuleNotFoundError: No module named 'flask'
Another log message indicated that the flask package was successfully installed from the requirements file:
While it initially seems contradictory, there’s a straightforward explanation:
The packages in your requirements file are installed in a virtual environment. The Python binary used in this virtual env is found at /home/appuser/venv/bin/python
In line 584 of your app, you run python reinforcement_engine.py via a subprocess. This Python binary is not the one used in the virtual env where your packages, including flask, are installed.
Hi Snehan, @snehankekre
I have one question.
It’s gives error “connection refuse” from flask request.
What should we need to use instead of “http://127.0.0.1:5000” ?
Hi @snehankekre
Thanks for your response, I’ve tried to do just following your guidance. However, it still has the same issue on my Streamlit sharing.
I think it might be a different reason to cause the issue or
the path above /home/appuser/venv/bin/python would be different to mine.