JonathanWenger/itergp

Permission Denied (publickey)

Closed this issue · 1 comments

When trying to clone probnum within the pip install, I'm running into Permission Denied (publickey)

I just copied the entire command line output here, I hope it's somewhat readable
(Numerics) ➜ Python is the name of the conda env and directory - commands follow after it

(Numerics) ➜  Python pip uninstall probnum
WARNING: Skipping probnum as it is not installed.
(Numerics) ➜  Python git clone https://github.com/JonathanWenger/itergp.git
Cloning into 'itergp'...
remote: Enumerating objects: 158, done.
remote: Counting objects: 100% (17/17), done.
remote: Compressing objects: 100% (11/11), done.
remote: Total 158 (delta 4), reused 10 (delta 4), pack-reused 141
Receiving objects: 100% (158/158), 5.73 MiB | 20.79 MiB/s, done.
Resolving deltas: 100% (20/20), done.
(Numerics) ➜  Python cd itergp 
(Numerics) ➜  itergp git:(main) pip install .
Processing /Users/leander/Documents/Coding/Libraries/Python/itergp
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting probnum@ git+ssh://git@github.com/marvinpfoertner/probnum.git@ad-prototype
  Cloning ssh://****@github.com/marvinpfoertner/probnum.git (to revision ad-prototype) to /private/var/folders/v_/ht9_s7xd68bfqtfbsh60mrd00000gn/T/pip-install-wjxbkv98/probnum_61aaf70cb5ec4e819182d3d817d3cfd1
  Running command git clone --filter=blob:none --quiet 'ssh://****@github.com/marvinpfoertner/probnum.git' /private/var/folders/v_/ht9_s7xd68bfqtfbsh60mrd00000gn/T/pip-install-wjxbkv98/probnum_61aaf70cb5ec4e819182d3d817d3cfd1
  git@github.com: Permission denied (publickey).
  fatal: Could not read from remote repository.

  Please make sure you have the correct access rights
  and the repository exists.
  error: subprocess-exited-with-error
  
  × git clone --filter=blob:none --quiet 'ssh://****@github.com/marvinpfoertner/probnum.git' /private/var/folders/v_/ht9_s7xd68bfqtfbsh60mrd00000gn/T/pip-install-wjxbkv98/probnum_61aaf70cb5ec4e819182d3d817d3cfd1 did not run successfully.
  │ exit code: 128
  ╰─> See above for output.
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× git clone --filter=blob:none --quiet 'ssh://****@github.com/marvinpfoertner/probnum.git' /private/var/folders/v_/ht9_s7xd68bfqtfbsh60mrd00000gn/T/pip-install-wjxbkv98/probnum_61aaf70cb5ec4e819182d3d817d3cfd1 did not run successfully.
│ exit code: 128
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.

Thanks for the detailed bug report!

TL;DR

Try to clone the repository again. The bug hopefully should be fixed now. If not, feel free to reopen.

Detailed Explanation

This happened because itergp depends on a not-yet-released version of probnum that is only available as a GitHub repository. Internally the package tries to do

pip install git+ssh://git@github.com/marvinpfoertner/probnum.git@ad-prototype

So this command above should produce a similar error message. Github doesn't allow installs via pip in this manner without having deposited a public key in your Github profile. I replaced the installation in the dependencies with

pip install git+https://github.com/marvinpfoertner/probnum.git@ad-prototype

which should be possible for anybody.