Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

problems with deploying a py-shiny app to shinyapps.io #1758

Open
cainesap opened this issue Nov 4, 2024 · 1 comment
Open

problems with deploying a py-shiny app to shinyapps.io #1758

cainesap opened this issue Nov 4, 2024 · 1 comment

Comments

@cainesap
Copy link

cainesap commented Nov 4, 2024

Hello,
I'm having some issues in deploying a Shiny for Python app (which works ok locally) to shinyapps.io, which I'll list here:

  • I think it may relate to installation of dependencies. I hadn't created a requirements.txt file, as this wasn't specified in the documentation (request 1 is to improve the documentation for deployment to shinyapps.io for py-shiny apps)
  • Even though deployemment failed, I think that it created an application in my account, because when I tried to deploy the app again the new error was that I had hit my limit of apps for my account (this new app did not show in the shinyapps.io applications list, but I could terminate it with rsconnect::terminateApp() in R).
  • I did manage to deploy an app after fixing the above, but then the app failed because I had a "pip install" command in my app, and this command was not permitted
  • I have a git clone then a pip install command in my app, because I'm installing from a repository (not a package available in pypi)
  • So I wonder how to do this: shall I have virtualenv in requirements.txt, then activate it from the app, and run the git clone, pip install commands
  • However, I can't test the question above because I'm currently getting a deployment error as follows:
Deploying bundle ... 	[ERROR]: shinyapps.io reported an error (calling /v1/applications/13222535): Not Found
Error: shinyapps.io reported an error (calling /v1/applications/13222535): Not Found

Please could someone help? I can't see any running/sleeping apps on shinyapps.io which I can terminate.
thanks in advance!

@cainesap
Copy link
Author

cainesap commented Nov 4, 2024

Update: can ignore most of the above as i've found workarounds / solutions.
Except for the request for improved documentation please @ https://docs.posit.co/shinyapps.io/guide/getting_started/#working-with-shiny-for-python to include instructions on requirements.txt (starting with the fact that such a file is recommended)
Thanks for the great resource!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant