Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pip install scheme git+http fails on Cygwin due to invalid clone destination-path #4895

Closed
ankostis opened this issue Nov 29, 2017 · 6 comments
Labels
auto-locked Outdated issues that have been locked by automation

Comments

@ankostis
Copy link

Description:

pip install git+http shceme has stopped working after Cygwin64 upgraded git to 2.8.3+ with invalid path.
See also discussion in Git mailing-list: http://lists-archives.com/git/894111-cygwin-git-cannot-install-python-packages-with-pip.html

What I've run:

With cygdrive installed in D:\cygwin64\, i get the following error:

@host(cygwin):~$export GIT_TRACE=2
@host(cygwin):~$pip install git+https://github.com/redacted/XKCD-password-generator
Collecting git+https://github.com/redacted/XKCD-password-generator
  Cloning https://github.com/redacted/XKCD-password-generator to d:\apps\cygwin64\tmp\pip-8yv12z7t-build
00:03:26.171602 git.c:340               trace: built-in: git 'clone' '-q' 'https://github.com/redacted/XKCD-password-generator' 'D:\cygwin64\tmp\pip-8yv12z7t-build'
fatal: Invalid path '/cygdrive/d/cygwin64/home/user/D:\cygwin64\tmp\pip-8yv12z7t-build': No such file or directory
Command "git clone -q https://github.com/redacted/XKCD-password-generator D:\cygwin64\tmp\pip-8yv12z7t-build" failed with error code 128 in None
@ocervell
Copy link

ocervell commented Jan 10, 2018

Running into the same issue while trying to install from github repo: pip install git+https://github.com/mher/flower.git#egg=flower.

@ankostis
Copy link
Author

ankostis commented Feb 6, 2018

This is a real blocker.
Would you, @maintainers, accept a Cygwin-detection PR?

@pfmoore
Copy link
Member

pfmoore commented Feb 6, 2018

I'm inclined to agree with the cygwin maintainers' view here - we don't support mixing of cygwin and non-cygwin executables in this way. You should either use a cygwin-built pip or a native git, and not mix the two.

@ankostis
Copy link
Author

ankostis commented Feb 6, 2018

But in Windows the situation is always a bit chimerean :-)

You see, building numpy in MSYS's python-3 is not for the faint-hearted.
In Cygwin probably there are even more hurdles to have a functioning PyData python-3 environment.

In practice, everybody uses, either Conda, or the official pyton-for-windows (aka Gohlke's binaries or WinPython distribution), but certainly not the MSYS-python included with git.

@pradyunsg
Copy link
Member

Closing due to a lack of activity.

@lock
Copy link

lock bot commented Jun 2, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot added the auto-locked Outdated issues that have been locked by automation label Jun 2, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Jun 2, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
auto-locked Outdated issues that have been locked by automation
Projects
None yet
Development

No branches or pull requests

4 participants