Some months ago I used the following code in my Python program to install a private repo package:
subprocess.Popen(
[
f"{sys.executable} -m pip install "
f"git+https://${{github_token}}@github.com/<username>/<repo>.git"
],
shell=True,
)
However, now I’m getting a Errno-13 error:
ERROR: Could not install packages due to an OSError: [Errno 13] Permission denied: '/home/adminuser/venv/lib/python3.10/site-packages/visfin'
Check the permissions.
Has something changed? And how can I fix it?
For more information on how this used to work see this article: How to Install Your Own Private GitHub Package on StreamlitCloud | by Tomer Gabay | Python in Plain English (I am the writer of this article. If I know how it works now I can update the article :))
I’m using Python3.10 and Streamlit 1.28.*