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` command exits immediately on Cygwin #1448

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

Comments

Projects
None yet
@evan
Copy link

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.

Copy link

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.

Copy link
Contributor

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.

Copy link

commented 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.

@ksze

This comment has been minimized.

Copy link

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.

Copy link

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.

Copy link

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.

Copy link

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.

Copy link

commented Feb 20, 2014

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

@meeotch

This comment has been minimized.

Copy link

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.

Copy link

commented Feb 26, 2014

Same problem here

cygwin 1.7.28-2
python 2.7.5-3

@Hammerstad

This comment has been minimized.

Copy link

commented 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.

@pisacane

This comment has been minimized.

Copy link

commented Mar 7, 2014

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

@Irfy

This comment has been minimized.

Copy link

commented Mar 10, 2014

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

@hartmut27

This comment has been minimized.

Copy link

commented 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")

@hellerbarde

This comment has been minimized.

Copy link

commented 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.

@Benoit-DunandLaisin

This comment has been minimized.

Copy link

commented May 6, 2014

I confirm @hellerbarde's tips

@hartmut27

This comment has been minimized.

Copy link

commented May 6, 2014

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

@indiv0

This comment has been minimized.

Copy link

commented May 9, 2014

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

@RockHong

This comment has been minimized.

Copy link

commented May 29, 2014

@indiv0 Confirm it one more :-)

@Ivoz

This comment has been minimized.

Copy link
Member

commented May 29, 2014

Has someone reported these dependencies to cygwin python maintainer?

@akaak

This comment has been minimized.

Copy link

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.

Copy link

commented Jul 13, 2014

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

@procesd

This comment has been minimized.

Copy link

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.

Copy link

commented 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)

@Ivoz

This comment has been minimized.

Copy link
Member

commented Aug 8, 2014

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

@hellerbarde

This comment has been minimized.

Copy link

commented 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

This comment has been minimized.

Copy link
Member

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.

Copy link
Member

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
You can’t perform that action at this time.