Error during processing dependency: Personal Access Token for GitHub not recognised

Hi, I’m running into an error when deploying my Streamlit App. Locally, it’s working perfectly.
In the requirements.txt file, I have included a link to a different GitHub repository (outside of the app repository). It follows this format: git+https://${ACCESS_TOKEN}@github.com/<organisation>/<repository>.git

I have saved the ACCESS_TOKEN as a secret in the app settings. The value is the Personal Access Token that I have generated in my GitHub account.

When trying to run the app, the following error appears (replaced the actual organisation and repository names with <>):

  Cloning https://****@github.com/<organisation>/<repository>.git to /tmp/pip-req-build-3fcfu1t5

  Running command git clone -q 'https://****@github.com/<organisation>/<repository>.git' /tmp/pip-req-build-3fcfu1t5

  fatal: could not read Password for 'https://${ACCESS_TOKEN}@github.com': No such device or address

WARNING: Discarding git+https://****@github.com/<organisation>/<repository>.git. Command errored out with exit status 128: git clone -q 'https://****@github.com/<organisation>/<repository>.git' /tmp/pip-req-build-3fcfu1t5 Check the logs for full command output.

ERROR: Command errored out with exit status 128: git clone -q 'https://****@github.com/<organisation>/<repository>.git' /tmp/pip-req-build-3fcfu1t5 Check the logs for full command output.

Any help is much appreciated!

Best,
Davita

1 Like

Hi, @DavitaCH were you able to solve this? I am having the same problem. Thanks!

Hi @WR-Long, welcome to the community! :wave: :partying_face:

The only way I was able to pip install a package from a private repo was to do it using a subprocess in the app. My attempts at using requirements.txt for this were unsuccessful. Here’s what worked:

Happy Streamlit-ing! :balloon:
Snehan

hey this isn’t working for me, any additional help?