Error when trying to install package from github repo with submodule
See original GitHub issueEnvironment
- pip version: 19.1.1
- Python version: 3.7
- OS: Windows 10 x64
Description
Pip is unable to install the package at https://github.com/pyminimp3/pyminimp3
.
There’s a permission error while cloning its submodule. Judging by Host key verification failed
, it looks like git tries to use SSH to clone it when the initial command is requesting https.
Expected behavior Package is cloned and installed.
How to Reproduce
Run the command pip install git+https://github.com/pyminimp3/pyminimp3
Output
C:\Users\admin>pip install git+https://github.com/pyminimp3/pyminimp3
Collecting git+https://github.com/pyminimp3/pyminimp3
Cloning https://github.com/pyminimp3/pyminimp3 to c:\users\admin\appdata\local\temp\pip-req-build-dw1g94wp
Running command git clone -q https://github.com/pyminimp3/pyminimp3 'C:\Users\admin\AppData\Local\Temp\pip-req-build-dw1g94wp'
Running command git submodule update --init --recursive -q
Host key verification failed.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
fatal: clone of 'git@github.com:lieff/minimp3.git' into submodule path 'C:/Users/admin/AppData/Local/Temp/pip-req-build-dw1g94wp/minimp3' failed
Failed to clone 'minimp3'. Retry scheduled
Host key verification failed.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
fatal: clone of 'git@github.com:lieff/minimp3.git' into submodule path 'C:/Users/admin/AppData/Local/Temp/pip-req-build-dw1g94wp/minimp3' failed
Failed to clone 'minimp3' a second time, aborting
ERROR: Command "git submodule update --init --recursive -q" failed with error code 1 in C:\Users\admin\AppData\Local\Temp\pip-req-build-dw1g94wp
Issue Analytics
- State:
- Created 4 years ago
- Comments:12 (10 by maintainers)
Top Results From Across the Web
Error while trying to install an npm module from git
But I get the following error: npm ERR! Command failed: git submodule update -q --init --recursive npm ERR! fatal: O:/Programs/Git/mingw64/ ...
Read more >Repository permissions and linking | Netlify Docs
Learn how to give our platform permission to access repository code, how to link a site to a repository, and how to access...
Read more >Git submodule - Atlassian
A git submodule is a record within a host git repository that points to a specific commit in another external repository. Learn more...
Read more >How To Pull The Latest Git Submodule | phoenixNAP KB
Initialize a Submodule in Your Repository · Pull the Latest Submodule with git fetch and git merge · Pull the Latest Submodule with...
Read more >How to install a pip Package from a git Repository (https and ...
I recently came across a very helpful Python package on Github, that I wanted to use for the project I'm currently working on....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’m going to go ahead and close this issue due to a lack of activity/interest.
Trying to pass-through settings to git for all variations of submodules (https with auth, https without auth, https with custom certificate, ssh) would be a lot of work. I’m inclined to say that if someone actually wants this implemented they can open a feature request for it.
For the simple case here - if a user doesn’t want submodules requested with ssh, it is possible to use URL rewriting to force one way or another for all requests:
git config --global url.https://github.com/.insteadOf git@github.com: