Cannot install specific git branch on github using pip - Permission denied (publickey)

I am trying to install forked repo ( https://github.com/theatlantic/django-ckeditor/ ) on Github using pip, but to no avail.

When i use

pip install -e git+git://github.com/theatlantic/django-ckeditor.git#egg=django-ckeditor 

It installs the contents of the repo, but the older version, without the new changes that interest me. So I tried to get pip to get the most recent branch, which is apparently atl / 4.3.x, but I will get this strange error, for example, if the branch name is incorrect or something like this:

 $ pip install -e git+git://github.com/theatlantic/ django-ckeditor.git@ "atl/4.3.x"#egg=django-ckeditor Obtaining django-ckeditor from git+git://github.com/theatlantic/ django-ckeditor.git@atl /4.3.x#egg=django-ckeditor Updating /home/mathx/.virtualenvs/goblets/src/django-ckeditor clone (to atl/4.3.x) Permission denied (publickey). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. Clone of ' git@github.com :theatlantic/ckeditor-dev.git' into submodule path 'ckeditor/static/ckeditor/ckeditor-dev' failed 

Am I mistaken?

Thanks.

+6
source share
2 answers

An IRC user came up with a question about this similar situation, and I think that the answer we found here also applies. (A user associated with this question, saying β€œthe same thing happens”, that I came across it.)

Consider the exit from OP:

Getting django-ckeditor from git + git: //github.com/theatlantic/ django-ckeditor.git@atl /4.3.x#egg=django-ckeditor

The OP tried to install django-ckeditor via anonymous git (a git:// URL).

Error:

Clone "git @ github.com: theatlantic / ckeditor-dev.git" in the path of the submodule "ckeditor / static / ckeditor / ckeditor-dev" failed

If you look at https://github.com/theatlantic/django-ckeditor/blob/atl/4.3.x/.gitmodules , django-ckeditor pulls out ckeditor-dev and does it with an SSH URL.

GitHub does not allow anonymous clones via SSH. Any use of git through SSH must use a registered SSH key. The user will need to register on GitHub, register his public key and configure the private key that will be used during this installation.

The owner of the repository ( theatlantic ) must change the URL of the submodule to the URL https:// or the anonymous git:// .

+2
source

The error message you sent:

 Permission denied (publickey). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. 

... indicates that you do not have access to the repo.

You may be able to use the GitHub HTTP address:

 pip install -e git+http://github.com/theatlantic/django-ckeditor.git#egg=django-ckeditor 
+2
source

All Articles