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.
Thanks for stopping by! We use cookies to help us understand how you interact with our website.
By clicking “Accept all”, you consent to our use of cookies. For more information, please see our privacy policy.
Cookie settings
Strictly necessary cookies
These cookies are necessary for the website to function and cannot be switched off. They are usually only set in response to actions made by you which amount to a request for services, such as setting your privacy preferences, logging in or filling in forms.
Performance cookies
These cookies allow us to count visits and traffic sources so we can measure and improve the performance of our site. They help us understand how visitors move around the site and which pages are most frequently visited.
Functional cookies
These cookies are used to record your choices and settings, maintain your preferences over time and recognize you when you return to our website. These cookies help us to personalize our content for you and remember your preferences.
Targeting cookies
These cookies may be deployed to our site by our advertising partners to build a profile of your interest and provide you with content that is relevant to you, including showing you relevant ads on other websites.