`pip` command exits immediately on Cygwin #1448

Closed
evan opened this Issue Jan 9, 2014 · 28 comments

Comments

Projects
None yet
@evan

evan commented Jan 9, 2014

This used to work for us, but sometime in the last two months fresh installs of pip in cygwin are broken:

eweaver@autumn-windows ~
$ wget https://raw.github.com/pypa/pip/master/contrib/get-pip.py
--2014-01-09 14:43:40--  https://raw.github.com/pypa/pip/master/contrib/get-pip.                 py
Resolving raw.github.com... 199.27.77.133
Connecting to raw.github.com|199.27.77.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 556782 (544K) [text/plain]
Saving to: `get-pip.py'

100%[======================================>] 556,782     1.45M/s   in 0.4s

2014-01-09 14:43:41 (1.45 MB/s) - `get-pip.py' saved [556782/556782]

eweaver@autumn-windows ~
$ python get-pip.py
Downloading/unpacking pip
  Downloading pip-1.5.tar.gz (898kB): 898kB downloaded
  Running setup.py egg_info for package pip

    warning: no files found matching 'pip/cacert.pem'
    warning: no files found matching '*.html' under directory 'docs'
    warning: no previously-included files matching '*.rst' found under directory                  'docs/_build'
    no previously-included directories found matching 'docs/_build/_sources'
Installing collected packages: pip
  Running setup.py install for pip

    warning: no files found matching 'pip/cacert.pem'
    warning: no files found matching '*.html' under directory 'docs'
    warning: no previously-included files matching '*.rst' found under directory                  'docs/_build'
    no previously-included directories found matching 'docs/_build/_sources'
    Installing pip script to /usr/bin
    Installing pip2.7 script to /usr/bin
    Installing pip2 script to /usr/bin
Successfully installed pip
Cleaning up...

eweaver@autumn-windows ~
$ pip

eweaver@autumn-windows ~
$ pip help

eweaver@autumn-windows ~
$ pip list

eweaver@autumn-windows ~
$ python --version
Python 2.7.5
@ksze

This comment has been minimized.

Show comment
Hide comment
@ksze

ksze Jan 24, 2014

First of all, I believe pip 1.4.1 was still working. Unfortunately, it seems impossible to install a specific version of pip using the get-pip.py script; it seems to always install the latest version so I don't have an easy way to revert to 1.4.1 and confirm.

The OP mentions fresh install, but I am getting the same problem upgrading to 1.5.1. For what it's worth, I now have setuptools 2.1 and pip 1.5.1.

Below are the output of a few commands I have tried:

In Bash: https://dpaste.org/KHTB/raw

I expected to see a list of my installed packages, but I didn't see any.

Now, In the interactive interpreter:

$ python
Python 2.7.5 (default, Oct  2 2013, 22:34:09)
[GCC 4.8.1] on cygwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> print sys.executable
/usr/bin/python
>>> print sys.path
['', '/usr/lib/python2.7/site-packages/setuptools-2.1-py2.7.egg', '/usr/lib/python27.zip', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-cygwin', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload', '/usr/lib/python2.7/site-packages']
>>> import pip
# At this point the interpreter quits with an exit code of 0
$

Again, in Bash:

$ python -c "import setuptools; print(setuptools.__file__)"
/usr/lib/python2.7/site-packages/setuptools-2.1-py2.7.egg/setuptools/__init__.pyc
$

ksze commented Jan 24, 2014

First of all, I believe pip 1.4.1 was still working. Unfortunately, it seems impossible to install a specific version of pip using the get-pip.py script; it seems to always install the latest version so I don't have an easy way to revert to 1.4.1 and confirm.

The OP mentions fresh install, but I am getting the same problem upgrading to 1.5.1. For what it's worth, I now have setuptools 2.1 and pip 1.5.1.

Below are the output of a few commands I have tried:

In Bash: https://dpaste.org/KHTB/raw

I expected to see a list of my installed packages, but I didn't see any.

Now, In the interactive interpreter:

$ python
Python 2.7.5 (default, Oct  2 2013, 22:34:09)
[GCC 4.8.1] on cygwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> print sys.executable
/usr/bin/python
>>> print sys.path
['', '/usr/lib/python2.7/site-packages/setuptools-2.1-py2.7.egg', '/usr/lib/python27.zip', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-cygwin', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload', '/usr/lib/python2.7/site-packages']
>>> import pip
# At this point the interpreter quits with an exit code of 0
$

Again, in Bash:

$ python -c "import setuptools; print(setuptools.__file__)"
/usr/lib/python2.7/site-packages/setuptools-2.1-py2.7.egg/setuptools/__init__.pyc
$
@qwcode

This comment has been minimized.

Show comment
Hide comment
@qwcode

qwcode Jan 24, 2014

Contributor

you could try the imports individually in /usr/lib/python2.7/site-packages/pip/__init__.py and see if you can find the culprit.

Contributor

qwcode commented Jan 24, 2014

you could try the imports individually in /usr/lib/python2.7/site-packages/pip/__init__.py and see if you can find the culprit.

@ariloudev

This comment has been minimized.

Show comment
Hide comment
@ariloudev

ariloudev Jan 31, 2014

Same problem: cygwin64, windows 8.1

@qwcode tried:

from pip.exceptions import InstallationError

And the interpreter exits here. Also tried running python -v to see if it chokes on loading some dependency, but can't see any problems there.

I am not a Python developer, so would appreciate any help on how to get this to work.

Same problem: cygwin64, windows 8.1

@qwcode tried:

from pip.exceptions import InstallationError

And the interpreter exits here. Also tried running python -v to see if it chokes on loading some dependency, but can't see any problems there.

I am not a Python developer, so would appreciate any help on how to get this to work.

@ksze

This comment has been minimized.

Show comment
Hide comment
@ksze

ksze Feb 7, 2014

Looks like the issue is gone now, using:

  • Cygwin 64-bit 1.7.28
  • Python 2.7.5
  • setuptools 2.1.2
  • pip 1.5.2

ksze commented Feb 7, 2014

Looks like the issue is gone now, using:

  • Cygwin 64-bit 1.7.28
  • Python 2.7.5
  • setuptools 2.1.2
  • pip 1.5.2
@bituser

This comment has been minimized.

Show comment
Hide comment
@bituser

bituser Feb 14, 2014

I am still experiencing this problem. I am running the latest version of everything.

If you required any further details please ask, but I am running the same versions as ksze listed.

bituser commented Feb 14, 2014

I am still experiencing this problem. I am running the latest version of everything.

If you required any further details please ask, but I am running the same versions as ksze listed.

@tg123

This comment has been minimized.

Show comment
Hide comment
@tg123

tg123 Feb 15, 2014

This may cause by cygwin python2.7.5-3
I used gdb on python and run pip, then I got a segment fault at (? lackof debuginfo)

So, I built python src on 2.7.6 on my machine (windows 8.1 cygwin 2.83 64bit)
everything runs well

tg123 commented Feb 15, 2014

This may cause by cygwin python2.7.5-3
I used gdb on python and run pip, then I got a segment fault at (? lackof debuginfo)

So, I built python src on 2.7.6 on my machine (windows 8.1 cygwin 2.83 64bit)
everything runs well

@bituser

This comment has been minimized.

Show comment
Hide comment
@bituser

bituser Feb 16, 2014

Could I have a little extra detail on how to build python 2.7.6 for cygwin? Did you install a cygwin specific package or just install it as per normal in windows and update Cygwin path?

Thanks.

bituser commented Feb 16, 2014

Could I have a little extra detail on how to build python 2.7.6 for cygwin? Did you install a cygwin specific package or just install it as per normal in windows and update Cygwin path?

Thanks.

@SysGrove

This comment has been minimized.

Show comment
Hide comment
@SysGrove

SysGrove Feb 20, 2014

Save problem with cygwin64 and windows 7 (pip3 is making a core dump), bit cygwin32 bit works fine.

Save problem with cygwin64 and windows 7 (pip3 is making a core dump), bit cygwin32 bit works fine.

@meeotch

This comment has been minimized.

Show comment
Hide comment
@meeotch

meeotch Feb 23, 2014

Same here. pip exits with no output on cygwin64, but works under cygwin32.
cygwin 1.7.28-2
python 2.7.5-3
python-setuptools 0.6.34-1

meeotch commented Feb 23, 2014

Same here. pip exits with no output on cygwin64, but works under cygwin32.
cygwin 1.7.28-2
python 2.7.5-3
python-setuptools 0.6.34-1

@danielrpa

This comment has been minimized.

Show comment
Hide comment
@danielrpa

danielrpa Feb 26, 2014

Same problem here

cygwin 1.7.28-2
python 2.7.5-3

Same problem here

cygwin 1.7.28-2
python 2.7.5-3

@Hammerstad

This comment has been minimized.

Show comment
Hide comment
@Hammerstad

Hammerstad Feb 27, 2014

Same problem with:

cygwin 1.7.28-2
python 2.7.5
python-setuptools 2.2
pip 1.5.4

Had to download a previous version of pip to make it work for now.

Same problem with:

cygwin 1.7.28-2
python 2.7.5
python-setuptools 2.2
pip 1.5.4

Had to download a previous version of pip to make it work for now.

@pisacane

This comment has been minimized.

Show comment
Hide comment
@pisacane

pisacane Mar 7, 2014

now working for me with binutils recommended here: requests/requests#1547

pisacane commented Mar 7, 2014

now working for me with binutils recommended here: requests/requests#1547

@Irfy

This comment has been minimized.

Show comment
Hide comment
@Irfy

Irfy Mar 10, 2014

Install the cygwin package libuuid-devel, that will fix it.

Irfy commented Mar 10, 2014

Install the cygwin package libuuid-devel, that will fix it.

@hartmut27

This comment has been minimized.

Show comment
Hide comment
@hartmut27

hartmut27 Apr 30, 2014

same problem here.
cygwin64 - cygwin1.dll 1.7.29
python 2.7.5-3
windows 7 64 bit
installing libuuid-devel into cygwin did not solve the bug unfortunatelly.

-------> But switching from cygwin-64bit to cygwin-32bit solved it! (but forking problems may occur in cygwin-32bit: "error: cannot fork() : Resource temporarily unavailable")

same problem here.
cygwin64 - cygwin1.dll 1.7.29
python 2.7.5-3
windows 7 64 bit
installing libuuid-devel into cygwin did not solve the bug unfortunatelly.

-------> But switching from cygwin-64bit to cygwin-32bit solved it! (but forking problems may occur in cygwin-32bit: "error: cannot fork() : Resource temporarily unavailable")

@hellerbarde

This comment has been minimized.

Show comment
Hide comment
@hellerbarde

hellerbarde May 6, 2014

For future Unixers in Windows territory:
I'm using cygwin64 on windows 8, 64 bit and I had to install both "binutils" and "libuuid-devel" to make pip work.

For future Unixers in Windows territory:
I'm using cygwin64 on windows 8, 64 bit and I had to install both "binutils" and "libuuid-devel" to make pip work.

@Benoit-DunandLaisin

This comment has been minimized.

Show comment
Hide comment

I confirm @hellerbarde's tips

@hartmut27

This comment has been minimized.

Show comment
Hide comment
@hartmut27

hartmut27 May 6, 2014

yes, when installing anything related to "binutils" and "libuuid-devel" in CygWin 64, it works! Great!

yes, when installing anything related to "binutils" and "libuuid-devel" in CygWin 64, it works! Great!

@indiv0

This comment has been minimized.

Show comment
Hide comment
@indiv0

indiv0 May 9, 2014

Can also confirm that installing binutils and libuuid-devel in Cygwin64 fixed the problem.

indiv0 commented May 9, 2014

Can also confirm that installing binutils and libuuid-devel in Cygwin64 fixed the problem.

@RockHong

This comment has been minimized.

Show comment
Hide comment
@RockHong

RockHong May 29, 2014

@indiv0 Confirm it one more :-)

@indiv0 Confirm it one more :-)

@Ivoz

This comment has been minimized.

Show comment
Hide comment
@Ivoz

Ivoz May 29, 2014

Member

Has someone reported these dependencies to cygwin python maintainer?

Member

Ivoz commented May 29, 2014

Has someone reported these dependencies to cygwin python maintainer?

@akaak

This comment has been minimized.

Show comment
Hide comment
@akaak

akaak Jul 2, 2014

Confirming that installing both binutils and libuuid-devel (as mentioned by @indiv0) worked for me as well. Cygwin64 version 1.7.30.

akaak commented Jul 2, 2014

Confirming that installing both binutils and libuuid-devel (as mentioned by @indiv0) worked for me as well. Cygwin64 version 1.7.30.

@partlyhuman

This comment has been minimized.

Show comment
Hide comment
@partlyhuman

partlyhuman Jul 13, 2014

Additional confirmation that installing libuuid-devel on cygwin64 1.7.30/win8.1 solved this issue for me.

Additional confirmation that installing libuuid-devel on cygwin64 1.7.30/win8.1 solved this issue for me.

@procesd

This comment has been minimized.

Show comment
Hide comment
@procesd

procesd Aug 7, 2014

Still happening in Cygwin64 1.7.31(0.272/5/3), Python 2.7.8, setuptools 5.4.2, pip 1.5.6 and still solved by installing "binutils" and "libuuid-devel"

procesd commented Aug 7, 2014

Still happening in Cygwin64 1.7.31(0.272/5/3), Python 2.7.8, setuptools 5.4.2, pip 1.5.6 and still solved by installing "binutils" and "libuuid-devel"

@hellerbarde

This comment has been minimized.

Show comment
Hide comment
@hellerbarde

hellerbarde Aug 7, 2014

How can I find the package maintainer of the pip package? I seem to be
unable to find that info.

On 07.08.2014 13:02, procesd wrote:

Still happening in Cygwin64 1.7.31(0.272/5/3), Python 2.7.8,
setuptools 5.4.2, pip 1.5.6 and still solved by installing "binutils"
and "libuuid-devel"

Reply to this email directly or view it on GitHub [1].

Links:

[1] #1448 (comment)

How can I find the package maintainer of the pip package? I seem to be
unable to find that info.

On 07.08.2014 13:02, procesd wrote:

Still happening in Cygwin64 1.7.31(0.272/5/3), Python 2.7.8,
setuptools 5.4.2, pip 1.5.6 and still solved by installing "binutils"
and "libuuid-devel"

Reply to this email directly or view it on GitHub [1].

Links:

[1] #1448 (comment)

@Ivoz

This comment has been minimized.

Show comment
Hide comment
@Ivoz

Ivoz Aug 8, 2014

Member

@hellerbarde you can speak to us here just fine :)

Member

Ivoz commented Aug 8, 2014

@hellerbarde you can speak to us here just fine :)

@hellerbarde

This comment has been minimized.

Show comment
Hide comment
@hellerbarde

hellerbarde Aug 18, 2014

@Ivoz , sorry, i somehow didn't realize that package maintainers are around here as well.

Edit: oh, wait. Are you also a Cygwin package maintainer? Because that would be what I was looking for. I totally forgot that this thread is not in the Cygwin project, so I neglected to mention it.

@Ivoz , sorry, i somehow didn't realize that package maintainers are around here as well.

Edit: oh, wait. Are you also a Cygwin package maintainer? Because that would be what I was looking for. I totally forgot that this thread is not in the Cygwin project, so I neglected to mention it.

@Ivoz

This comment has been minimized.

Show comment
Hide comment
@Ivoz

Ivoz Aug 19, 2014

Member

Are you also a Cygwin package maintainer?

Nope, that's why I asked if someone had reported it to them.

Member

Ivoz commented Aug 19, 2014

Are you also a Cygwin package maintainer?

Nope, that's why I asked if someone had reported it to them.

@Ivoz

This comment has been minimized.

Show comment
Hide comment
@Ivoz

Ivoz Oct 7, 2015

Member

Issue seemed to be missing dependencies for python in cygwin. If there's anything else please comment

Member

Ivoz commented Oct 7, 2015

Issue seemed to be missing dependencies for python in cygwin. If there's anything else please comment

@Ivoz Ivoz closed this Oct 7, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment