Shiny Interface not loading properly on Posit Connect when importing from GitHub

I've created a shiny for python app that runs fine locally; however, when I upload it along with the manifest.json and requirements.txt to GitHub then try to import it to Posit Connect the interface only shows the raw HTML rather than the shiny interface. Interesting enough, the same code when uploaded to Posit Connect from my local machine using rsconnect works fine. Also, no externall CSS is used, just pure shiny ui.

Thanks for posting, Thomas. Could you please share a link to the repo or the url to the published output?

Alex

Certainly:

Thanks. We forked your repo and noticed a few things.

  1. You had a both a manifest.json file and a requirements.txt file. The system currently sees the manifest.json file and assumes it is dealing with an R project or an R project with Python code, not a pure Python project. So I removed this from my fork. Connect self-managed supports Python deployment from manifest.json, but we don't yet.

  2. Then I tried to redeploy and came across a few dependency issues. Most notably:

 Error resolving dependencies: Because only the following versions of numpy{python_version >= '3.10'} are available:
....
And because spac==0.6.4 depends on pandas==1.4.3 and numpy==1.19.5, we can conclude that spac==0.6.4 cannot be used.

I also tried taking away the specific versions for pandas and numpy so that it could attempt to resolve itself, but it failed b/c of that spac conflct - at least with Python 3.11 and 3.10. What version did you select?

I'm curious now if you tried and failed to upload to https://connect.posit.cloud/ or your self-managed Posit Connect instance? Perhaps we are crossing platforms here.

Thanks!