{"thread":{"id":"45851","subject":"CYGWIN git cannot install python packages with pip","startedAt":"2017-05-02T18:08:53Z","lastAt":"2017-05-16T13:15:39Z","messageCount":10,"participants":["ankostis","Johannes Schindelin","Adam Dinwoodie"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"318550","messageId":"CA+dhYEX+GgEHnVBnLQqnNW99xpf9kWcataTTt3Ya6ivGFgscMw@mail.gmail.com","threadId":"45851","inReplyTo":null,"subject":"CYGWIN git cannot install python packages with pip","fromName":"ankostis","fromEmail":"ankostis@gmail.com","sentAt":"2017-05-02T18:08:17Z","receivedAt":"2017-05-02T18:08:53Z","isPatch":false,"sender":{"key":"ankostis@gmail.com","avatar":"https://gravatar.com/avatar/1f3597ab8ad44cbb0fd782a2773e3aba94a52c03f9f6bbe5ccb7f1fe2581b12b?d=mp&s=160"},"body":"On Windows, with Cygwin-git 02.12.2-1 the python command:\n\n    pip install git+https://github.com/...`\n\nfails to work with the following error:\n\n    $ pip install git+https://github.com/ipython/traitlets/\n    Collecting git+https://github.com/ipython/traitlets/\n    Cloning https://github.com/ipython/traitlets/ to c:\\users\\username\\appdata\n\\local\\temp\\pip-kjwxq_oy-build\n    fatal: Invalid path '/cygdrive/d/Work/ALLINONES2/co2mpas_AIO-v1.6.0/CO2MPA\nS/C:\\Users\\username\\AppData\\Local\\Temp\\pip-kjwxq_oy-build': No such file or di\nrectory\n    git clone -q https://github.com/ipython/traitlets/ C:\\Users\\user\\AppData\\L\nocal\\Temp\\pip-kjwxq_oy-build\" failed with error code 128 in None\n\n\n\nGit-2.8.3 had no such problem.\n\nAny ideas?\n"},{"id":"318554","messageId":"CA+dhYEUYRc1PDio_JO=OPxwB+POTd2fOooTx1nKJFkUGqYK_Kg@mail.gmail.com","threadId":"45851","inReplyTo":"CA+dhYEX+GgEHnVBnLQqnNW99xpf9kWcataTTt3Ya6ivGFgscMw@mail.gmail.com","subject":"Re: CYGWIN git cannot install python packages with pip","fromName":"ankostis","fromEmail":"ankostis@gmail.com","sentAt":"2017-05-02T18:40:36Z","receivedAt":"2017-05-02T18:41:12Z","isPatch":false,"sender":{"key":"ankostis@gmail.com","avatar":"https://gravatar.com/avatar/1f3597ab8ad44cbb0fd782a2773e3aba94a52c03f9f6bbe5ccb7f1fe2581b12b?d=mp&s=160"},"body":"Note that MSYS2 Git-12.2.1 also has no such problem.\n\nOn 2 May 2017 at 20:08, ankostis <ankostis@gmail.com> wrote:\n> On Windows, with Cygwin-git 02.12.2-1 the python command:\n>\n>     pip install git+https://github.com/...`\n>\n> fails to work with the following error:\n>\n> ...\n>\n> Git-2.8.3 had no such problem.\n>\n> Any ideas?\n"},{"id":"318616","messageId":"alpine.DEB.2.20.1705031147040.3480@virtualbox","threadId":"45851","inReplyTo":"CA+dhYEX+GgEHnVBnLQqnNW99xpf9kWcataTTt3Ya6ivGFgscMw@mail.gmail.com","subject":"Re: CYGWIN git cannot install python packages with pip","fromName":"Johannes Schindelin","fromEmail":"johannes.schindelin@gmx.de","sentAt":"2017-05-03T09:47:47Z","receivedAt":"2017-05-03T09:47:54Z","isPatch":false,"sender":{"key":"johannes.schindelin@gmx.de","avatar":"https://avatars.githubusercontent.com/u/127790?v=4"},"body":"Hi,\n\n\nOn Tue, 2 May 2017, ankostis wrote:\n\n> On Windows, with Cygwin-git 02.12.2-1 the python command:\n>\n> [...]\n\nYou forgot to mention what python/pip you use (is it the Cygwin one, or a\nstandalone one?). Intentional?\n\nCiao,\nJohannes\n"},{"id":"318639","messageId":"CA+dhYEUCJghqDQyBrL71Q=JKokcH-nhQ9WZzBb19-gonxi7o=Q@mail.gmail.com","threadId":"45851","inReplyTo":"alpine.DEB.2.20.1705031147040.3480@virtualbox","subject":"Re: CYGWIN git cannot install python packages with pip","fromName":"ankostis","fromEmail":"ankostis@gmail.com","sentAt":"2017-05-03T10:21:27Z","receivedAt":"2017-05-03T10:22:03Z","isPatch":false,"sender":{"key":"ankostis@gmail.com","avatar":"https://gravatar.com/avatar/1f3597ab8ad44cbb0fd782a2773e3aba94a52c03f9f6bbe5ccb7f1fe2581b12b?d=mp&s=160"},"body":"On 3 May 2017 11:47, Johannes Schindelin <Johannes.Schindelin@gmx.de> wrote:\n> On Tue, 2 May 2017, ankostis wrote:\n>\n>> On Windows, with Cygwin-git 02.12.2-1 the python command:\n>> [...]\n>\n> You forgot to mention what python/pip you use (is it the Cygwin one, or a\n> standalone one?). Intentional?\n\nI have tested it on using WinPython[1] 3.6.1 & 3.5.3.\nWinPython is built out of the \"standard\" python on Windows.\n\nJudging by the error, the problem is on the temporary folder\nused as target.  For some reason, Git uses $HOME\nas a prefix to the temporary folder selected by `pip`.\n\nMy home in the above case above is this:\n/cygdrive/d/Work/ALLINONES2/co2mpas_AIO-v1.6.0/CO2MPAS\n\n\nThanks,\n  Kostis\n\n[1] http://winpython.github.io/\n"},{"id":"318651","messageId":"alpine.DEB.2.20.1705031630540.3480@virtualbox","threadId":"45851","inReplyTo":"CA+dhYEUCJghqDQyBrL71Q=JKokcH-nhQ9WZzBb19-gonxi7o=Q@mail.gmail.com","subject":"Re: CYGWIN git cannot install python packages with pip","fromName":"Johannes Schindelin","fromEmail":"johannes.schindelin@gmx.de","sentAt":"2017-05-03T14:32:15Z","receivedAt":"2017-05-03T14:32:28Z","isPatch":false,"sender":{"key":"johannes.schindelin@gmx.de","avatar":"https://avatars.githubusercontent.com/u/127790?v=4"},"body":"Hi,\n\nOn Wed, 3 May 2017, ankostis wrote:\n\n> On 3 May 2017 11:47, Johannes Schindelin <Johannes.Schindelin@gmx.de> wrote:\n> > On Tue, 2 May 2017, ankostis wrote:\n> >\n> >> On Windows, with Cygwin-git 02.12.2-1 the python command:\n> >> [...]\n> >\n> > You forgot to mention what python/pip you use (is it the Cygwin one,\n> > or a standalone one?). Intentional?\n> \n> I have tested it on using WinPython[1] 3.6.1 & 3.5.3.\n> WinPython is built out of the \"standard\" python on Windows.\n\nI am afraid that you run into path conversion problems here. /cygdrive/d/\nis something Cygwin understands, but not WinPython nor Git for Windows.\n\nIt appears to be difficult to impossible to mix Cygwin with non-Cygwin\nexecutables...\n\nCiao,\nJohannes\n"},{"id":"318740","messageId":"20170504094719.GA3238@dinwoodie.org","threadId":"45851","inReplyTo":"alpine.DEB.2.20.1705031630540.3480@virtualbox","subject":"Re: CYGWIN git cannot install python packages with pip","fromName":"Adam Dinwoodie","fromEmail":"adam@dinwoodie.org","sentAt":"2017-05-04T09:47:19Z","receivedAt":"2017-05-04T09:47:32Z","isPatch":false,"sender":{"key":"adam@dinwoodie.org","avatar":"https://avatars.githubusercontent.com/u/1397507?v=4"},"body":"On Wed, May 03, 2017 at 04:32:15PM +0200, Johannes Schindelin wrote:\n> On Wed, 3 May 2017, ankostis wrote:\n> \n> > On 3 May 2017 11:47, Johannes Schindelin wrote:\n> > > On Tue, 2 May 2017, ankostis wrote:\n> > >\n> > >> On Windows, with Cygwin-git 02.12.2-1 the python command:\n> > >> [...]\n> > >\n> > > You forgot to mention what python/pip you use (is it the Cygwin one,\n> > > or a standalone one?). Intentional?\n> > \n> > I have tested it on using WinPython[1] 3.6.1 & 3.5.3.\n> > WinPython is built out of the \"standard\" python on Windows.\n> \n> I am afraid that you run into path conversion problems here. /cygdrive/d/\n> is something Cygwin understands, but not WinPython nor Git for Windows.\n> \n> It appears to be difficult to impossible to mix Cygwin with non-Cygwin\n> executables...\n\nConfirmed: the Cygwin project as a general rule doesn't support this\nsort of mixing of Windows and Cygwin tools.  Either use Python and Git\npackages both provided by Cygwin, or both provided by Windows.\n\nMixing and matching does work sometimes -- as was apparently the case\nwith Cygwin Git v2.8.3-1 -- but it requires care and you're generally on\nyour own with it.\n\nAdam\n"},{"id":"318751","messageId":"CA+dhYEX0f206pZ+7seOce7McnfZ9ZfXLvSn7YH3Ykgqk+gA8gg@mail.gmail.com","threadId":"45851","inReplyTo":"20170504094719.GA3238@dinwoodie.org","subject":"Re: CYGWIN git cannot install python packages with pip","fromName":"ankostis","fromEmail":"ankostis@gmail.com","sentAt":"2017-05-04T10:18:09Z","receivedAt":"2017-05-04T10:18:45Z","isPatch":false,"sender":{"key":"ankostis@gmail.com","avatar":"https://gravatar.com/avatar/1f3597ab8ad44cbb0fd782a2773e3aba94a52c03f9f6bbe5ccb7f1fe2581b12b?d=mp&s=160"},"body":"On 4 May 2017 at 11:47, Adam Dinwoodie <adam@dinwoodie.org> wrote:\n> Confirmed: the Cygwin project as a general rule doesn't support this\n> sort of mixing of Windows and Cygwin tools.  Either use Python and Git\n> packages both provided by Cygwin, or both provided by Windows.\n>\n> Mixing and matching does work sometimes -- as was apparently the case\n> with Cygwin Git v2.8.3-1 -- but it requires care and you're generally on\n> your own with it.\n\nMSYS2's git-2.12.1 also works fine, so there must be something\ndifferent in this build of git that breaks this long-standing capability.\n\nJudging from the error-message, it somehow concatenates input & output\npaths.\nIsn't this something to research about?\n\nRegards, for your continuous effort,\n  Kostis\n"},{"id":"318756","messageId":"alpine.DEB.2.21.1.1705041324030.4905@virtualbox","threadId":"45851","inReplyTo":"CA+dhYEX0f206pZ+7seOce7McnfZ9ZfXLvSn7YH3Ykgqk+gA8gg@mail.gmail.com","subject":"Re: CYGWIN git cannot install python packages with pip","fromName":"Johannes Schindelin","fromEmail":"johannes.schindelin@gmx.de","sentAt":"2017-05-04T11:26:25Z","receivedAt":"2017-05-04T11:26:39Z","isPatch":false,"sender":{"key":"johannes.schindelin@gmx.de","avatar":"https://avatars.githubusercontent.com/u/127790?v=4"},"body":"Hi,\n\nOn Thu, 4 May 2017, ankostis wrote:\n\n> On 4 May 2017 at 11:47, Adam Dinwoodie <adam@dinwoodie.org> wrote:\n> > Confirmed: the Cygwin project as a general rule doesn't support this\n> > sort of mixing of Windows and Cygwin tools.  Either use Python and Git\n> > packages both provided by Cygwin, or both provided by Windows.\n> >\n> > Mixing and matching does work sometimes -- as was apparently the case\n> > with Cygwin Git v2.8.3-1 -- but it requires care and you're generally on\n> > your own with it.\n> \n> MSYS2's git-2.12.1 also works fine, so there must be something\n> different in this build of git that breaks this long-standing capability.\n\nMSYS2's runtime has auto-conversion functionality, trying to guess what\narguments passed to a non-MSYS2 program may be Unix paths, converting them\nto Windows ones.\n\nSo what you may see here has nothing to do with MSYS2's Git *not* having\nthe change that breaks Cygwin Git for you, but MSYS2's runtime saving you\nfrom trouble.\n\n> Judging from the error-message, it somehow concatenates input & output\n> paths.\n> Isn't this something to research about?\n\nIt is something to research about. But by you, not by me. I need to focus\non bigger-impact issues, because I do not scale, and Git for Windows'\nusers generally do not experience the problem you described.\n\nCiao,\nJohannes\n"},{"id":"319918","messageId":"CA+dhYEVW1ozj17DT0Asz4iuLXQpCpEckOOqVBe2baLhmzmEopA@mail.gmail.com","threadId":"45851","inReplyTo":"alpine.DEB.2.21.1.1705041324030.4905@virtualbox","subject":"Re: CYGWIN git cannot install python packages with pip","fromName":"ankostis","fromEmail":"ankostis@gmail.com","sentAt":"2017-05-16T13:09:36Z","receivedAt":"2017-05-16T13:10:13Z","isPatch":false,"sender":{"key":"ankostis@gmail.com","avatar":"https://gravatar.com/avatar/1f3597ab8ad44cbb0fd782a2773e3aba94a52c03f9f6bbe5ccb7f1fe2581b12b?d=mp&s=160"},"body":"On 4 May 2017 at 13:26, Johannes Schindelin <Johannes.Schindelin@gmx.de> wrote:\n> Hi,\n>\n> On Thu, 4 May 2017, ankostis wrote:\n>\n>> On 4 May 2017 at 11:47, Adam Dinwoodie <adam@dinwoodie.org> wrote:\n>> Judging from the error-message, it somehow concatenates input & output\n>> paths.\n>> Isn't this something to research about?\n>\n> It is something to research about. But by you, not by me.\n\nYou got a point there.\n\n> I need to focus\n> on bigger-impact issues, because I do not scale, and Git for Windows'\n> users generally do not experience the problem you described.\n\nGit for Windows uses MINGW indeed.\nBut there are still CYGWIN users out in the wild\nrunning the vanilla Windows python installation.\n\nActually this issue has a big impact on those of us because\nrecent `setuptools` tools allow for packages to specify project dependencies\nusing the `git+https://...` url-scheme.\nSo the problem may appear to unaware users just trying to install\na packages the regular way, with `pip install foo.package`\n\nGreat thanks,\n  Kostis\n\nFYI, cross-posting also to CYGWIN list.\n"},{"id":"319919","messageId":"CA+dhYEWyyK=L7mHuYhyEc78FDs4fksMBwgY6mAErfGRL3mzu-A@mail.gmail.com","threadId":"45851","inReplyTo":"CA+dhYEX+GgEHnVBnLQqnNW99xpf9kWcataTTt3Ya6ivGFgscMw@mail.gmail.com","subject":"Re: CYGWIN git cannot install python packages with pip","fromName":"ankostis","fromEmail":"ankostis@gmail.com","sentAt":"2017-05-16T13:15:03Z","receivedAt":"2017-05-16T13:15:39Z","isPatch":false,"sender":{"key":"ankostis@gmail.com","avatar":"https://gravatar.com/avatar/1f3597ab8ad44cbb0fd782a2773e3aba94a52c03f9f6bbe5ccb7f1fe2581b12b?d=mp&s=160"},"body":"On 2 May 2017 at 20:08, ankostis <ankostis@gmail.com> wrote:\n> On Windows, with Cygwin-git 02.12.2-1 the python command:\n>\n>     pip install git+https://github.com/...`\n>\n> fails to work with the following error:\n>\n>     $ pip install git+https://github.com/ipython/traitlets/\n>     Collecting git+https://github.com/ipython/traitlets/\n>     Cloning https://github.com/ipython/traitlets/ to c:\\users\\username\\appdata\n> \\local\\temp\\pip-kjwxq_oy-build\n>     fatal: Invalid path '/cygdrive/d/Work/ALLINONES2/co2mpas_AIO-v1.6.0/CO2MPA\n> S/C:\\Users\\username\\AppData\\Local\\Temp\\pip-kjwxq_oy-build': No such file or di\n> rectory\n>     git clone -q https://github.com/ipython/traitlets/ C:\\Users\\user\\AppData\\L\n> ocal\\Temp\\pip-kjwxq_oy-build\" failed with error code 128 in None\n>\n>\n>\n> Git-2.8.3 had no such problem.\n>\n> Any ideas?\n\nReporting for those bitten by this, latest working CYGWIN timemachine\nrelease is on 16 March 2017:\n  http://ctm.crouchingtigerhiddenfruitbat.org/pub/cygwin/circa/2017/04/16/142104/index.html\n"}]}