Deploying streamlit app using poetry is failing

Hello, I have a streamlit app and I am using poetry to manage the virtual environment.

My Procfile looks like

web: streamlit run table_flattener_streamlit.py --server.port 8080

When I try to deploy, I see error

bash: /workspace/.venv/bin/streamlit: /Users/kiran/Documents/repos/docx_to_markdown/.venv/bin/python: bad interpreter: No such file or directory

I am new to Fly, and I couldn’t find any official documentation about Poetry or Streamlit. How do I fix this?

1 Like

I have fixed this problem by adding .venv in .dockerignore. Now I have deployed the streamlit app and I can see the following log

2023-09-02T12:47:26Z app[148ed193b310d8] sin [info]  You can now view your Streamlit app in your browser.

However, I can not access it using the given URL. How do I debug this?

1 Like