You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Deployment worked locally but failed on Google Colab #372
I have a simple app that I can deploy successfully on my local machine using Python 3.9.16, which is the current Python version on Google Colab. However, the same procedure failed on Colab and the error message didn't give me any information. I also noticed that it will create a separate app (my-app-colab vs my-app-colab1) if I ran the deploy code twice. Any thoughts?
Error message from Colab
[ERROR]: shinyapps.io reported an error (calling /v1/tasks/1282969185?legacy=true): Unhandled Exception: Child Task 1282969186 failed: Error building image: Build exited with non-zero status: 1
It looks like the requirements file sent to the server contained python-apt==2.0.1+ubuntu0.20.4.1 which isn't pip installable. If you create a requirements.txt file in the app directory listing your Python package dependencies, rsconnect-python will use that instead of generating its own with pip freeze.
Activity
mmarchetti commentedon Mar 24, 2023
It looks like the requirements file sent to the server contained
python-apt==2.0.1+ubuntu0.20.4.1which isn't pip installable. If you create arequirements.txtfile in the app directory listing your Python package dependencies, rsconnect-python will use that instead of generating its own withpip freeze.hellozeyu commentedon Mar 24, 2023
Thank you! @mmarchetti It solved the problem. Does rsconnect have any verbose argument that can print out the detailed error message for us to debug?
mmarchetti commentedon Oct 13, 2023
Detailed logging was added in #453.