Unable to install private github repo on streamlit cloud [Errno-13]

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.*

2 Likes

Yeah, now the environment is set up by another user, and the app user has read-only access to it.

Maybe you can download the other package and install it in developer mode?

@sTomerG Did you have much luck with this?