Note that there are some explanatory texts on larger screens.

plurals
  1. POTrouble installing private github repository using pip
    primarykey
    data
    text
    <p>To preface, I have already seen this question <a href="https://stackoverflow.com/questions/4830856/is-it-possible-to-use-pip-to-install-a-package-from-a-private-github-repository">Is it possible to use pip to install a package from a private github repository?</a></p> <p>I am trying to install a package from a private repository that I have access to using pip.</p> <p>I am able to directly clone it like so:</p> <pre><code>(myenv)robbie@ubuntu:~/git$ git clone git@github.com:matherbk/django-messages.git Cloning into 'django-messages'... remote: Counting objects: 913, done. remote: Compressing objects: 100% (345/345), done. remote: Total 913 (delta 504), reused 913 (delta 504) Receiving objects: 100% (913/913), 165.73 KiB, done. Resolving deltas: 100% (504/504), done. </code></pre> <p>But when I try to install it via pip (my virtualenv is activated):</p> <pre><code>(myenv)robbie@ubuntu:~/git$ pip install git+https://git@github.com/matherbk/django-messages.gitDownloading/unpacking git+https://git@github.com/matherbk/django-messages.git Cloning https://git@github.com/matherbk/django-messages.git to /tmp/pip-13ushS-build Password for 'https://git@github.com': fatal: Authentication failed Complete output from command /usr/bin/git clone -q https://git@github.com/matherbk/django-messages.git /tmp/pip-13ushS-build: ---------------------------------------- Command /usr/bin/git clone -q https://git@github.com/matherbk/django-messages.git /tmp/pip-13ushS-build failed with error code 128 in None Storing complete log in /home/robbie/.pip/pip.log </code></pre> <p>I tried typing in my password but it failed. However I am ssh authenticated for git@github.com:</p> <pre><code>(myenv)robbie@ubuntu:~/git$ ssh -T git@github.com Hi robpodosek! You've successfully authenticated, but GitHub does not provide shell access. </code></pre> <p>I can switch <code>git@github.com</code> to <code>robpodosek@github.com</code> and it lets me install via pip just fine:</p> <pre><code>(myenv)robbie@ubuntu:~/git$ pip install git+https://robpodosek@github.com/matherbk/django-messages.git Downloading/unpacking git+https://robpodosek@github.com/matherbk/django-messages.git Cloning https://robpodosek@github.com/matherbk/django-messages.git to /tmp/pip-SqEan9-build Password for 'https://robpodosek@github.com': Running setup.py egg_info for package from git+https://robpodosek@github.com/matherbk/django-messages.git warning: no files found matching 'README' Installing collected packages: django-messages Running setup.py install for django-messages warning: no files found matching 'README' Successfully installed django-messages Cleaning up... </code></pre> <p>However I want to do what the first mentioned article does by using git@github.com so that I don't have to add my username into a requirements.txt file and add that to version control.</p> <p>Any thoughts? I previously had this working but had to boot up a fresh image. Thanks ahead of time.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload