rsconnect-python icon indicating copy to clipboard operation
rsconnect-python copied to clipboard

Unable to Deploy Shiny for Python app to Shiny Apps IO

Open erikhall6373 opened this issue 2 years ago • 1 comments

Using various combinations of versions for rsconnect and Python, I consistently get the following errors when trying to deploy to Shiny Apps IO:

image

My app works locally. Also have had no luck when trying to deploy through ShinyLive, even with using specific packages laid out here: https://shiny.posit.co/py/docs/shinylive.html

I'm not incredibly technical, so I'm pretty stuck currently on how to proceed.

erikhall6373 avatar Jul 25 '23 23:07 erikhall6373

Thanks for your report. Could you try installing the latest rsconnect-python from github via pip install git+https://github.com/rstudio/rsconnect-python.git@master? There's a change (#453) that hasn't been released yet that should at least tell us why shinyapps.io is failing.

Is your app code public, or available to share here? That would be useful to help us debug.

One shot in the dark: do you have a requirements.txt file for your app? Without one, I've personally had an app deployment fail at this stage because if there is no requirements.txt, it will do pip freeze and then shinyapps.io will try to install everything that's in your local (virtual)env. But if you have a requirements.txt, it will only install what you specify there.

nealrichardson avatar Jul 26 '23 12:07 nealrichardson