Issue with serving a streamlit Heroku app in a browser

I have been able to resolve this error, had to delete the project, and create a new one.

It would be a great help to provide some reference with regard to uploading PDF’s and performing an OCR. I am facing a lot of issues in accomplishing the same

1 Like

Same problem…

I am having the same problem. Referenced all comments above and still no solution.

2021-06-02T06:09:20.643249+00:00 app[api]: Deploy 0cf2a87a by user isaacshareef@gmail.com

2021-06-02T06:09:20.643249+00:00 app[api]: Release v11 created by user isaacshareef@gmail.com

2021-06-02T06:09:21.375730+00:00 heroku[web.1]: State changed from crashed to starting

2021-06-02T06:09:25.783690+00:00 heroku[web.1]: Starting process with command sh setup.sh && streamlit run rtp.py

2021-06-02T06:09:28.001339+00:00 app[web.1]: bash: streamlit: command not found

2021-06-02T06:09:28.056036+00:00 heroku[web.1]: Process exited with status 127

2021-06-02T06:09:28.129087+00:00 heroku[web.1]: State changed from starting to crashed

2021-06-02T06:09:32.000000+00:00 app[api]: Build succeeded

2021-06-02T06:09:36.455731+00:00 heroku[router]: at=error code=H10 desc=“App crashed” method=GET path="/" host=retrain-prediction-app.herokuapp.com request_id=776716bb-6eb5-47b8-8cc6-4728852b4068 fwd=“73.243.252.126” dyno= connect= service= status=503 bytes= protocol=https

2021-06-02T06:09:36.731107+00:00 heroku[router]: at=error code=H10 desc=“App crashed” method=GET path="/favicon.ico" host=retrain-prediction-app.herokuapp.com request_id=9c15ec3f-6b4f-41c5-97b6-892307aea9d7 fwd=“73.243.252.126” dyno= connect= service= status=503 bytes= protocol=https

I’m getting the same error. Streamlit is in my requirements.txt. Added a runtime.txt to specify python version to no avail.

I managed to fix mine. It was due to needing the GDAL package. I had to have it so my requirements.txt only had the minimal packages (not using pip freeze). Then I had to ensure that the buildpacks were in this order:

1. heroku/python
2. https://github.com/heroku/heroku-geo-buildpack.git