Apologies for the delayed response here! That's interesting!!
So to confirm I understand properly:
- You have a Plumber API that is reticulated
- The Plumber API is running as a non-default RunAs user
- You are getting an issue running the python code / activating the python environment?
To answer your question in the previous thread: Yes, Connect will build a python environment for your Plumber API!
However, it is important to be sure that it is done properly. Would it be possible to share (either publicly here or privately in DM) your manifest.json file? Alternatively, you can compare it to the manifest.json in the repo that David linked in the last thread.
Basically the pieces needed to create a "python runtime" and make it available to the Plumber API:
- requirements.txt
- manifest.json with the appropriate "python bits" (python version, etc.)
If those are present, you should see deployment logs that show a "python environment restore" happening. If that is not happening, it would be best to make sure that the rsconnect package is updated to the latest version, the reticulate package is getting picked up in the manifest.json, etc.
I hope that helps (even if a good bit delayed
)!