Issue with private organization Github package in dependencies

Hi all,

I am having issues deploying an app hosted in a private organization repo.
The app contains (in the requirements.txt) a dependency from another private repo from the organization.

The requirements.txt in the app contains the reference to the package:
git+https://github.com/{org}/{repo_name}.git#egg={package_name}

However, when I try to publish to Streamlit Cloud I recieve the following error:
fatal: could not read Username for ‘https://github.com’: No such device or address

I think your approach doesn’t work that way because the permissions are resolved at github repo level with ssh keys.

Ahh that would make sense, thanks!
How would you suggest me to resolve the issue using the ssh keys?

I haven’t tried this yet - so no guarantee - but I would try:

  • try a git submodule (but this could also fail for the same reasons) of the external pip repo and install it from there.
  • copy the source code of the external pip repo into the repo itself and install it from there.
  • make the external pip repo public

That’s what comes to my mind.

1 Like

Thanks a lot, I will try it out

Theoretically, you could also copy the deploy ssh key from the project repo into the pip repo. However, as far as I know, you cannot access the deploy key in github. You can only delete the deploy key, but not copy or read it.
Maybe @randyzwitch has another idea.