-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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 docker-compose==1.25 fails due to lack of python headers for building subprocess32 #7030
Comments
I face the issue mentionned by @kostrzewa9ld and installed
|
@plemelin Could you please provide more info? That would be great to open another bug report answering the template questions. |
As I was writing how to reproduce the issue to you, it gave me the opportunity to rubber duck... The issue I'm facing (and many people will be facing at this point) is that the default version of pip installed by Here how to reproduce it easily (running this from my arch linux + docker machine):
Now, this lead me here: more-itertools/more-itertools#272
|
@kostrzewa9ld Note that |
@ulyssessouza
What's more it only started to be required for non-alpine distros since 1.25, which is not even mentioned in this document:
|
I guess docker doesn't care because they're dropping python 2 support? Or is Compose going away with Swarm? FWIW pip3 seems to work fine:
|
This command solved the issue for me On this comment below user says more-itertools version >6.0 dropped support to python 2, so that's why need to downgrade to version 5.0.0 |
I was able to resolved the subprocess32 issue after I installed gcc "yum install gcc" in CentOS 7 |
Ran into this as well - this fixed it for me: sudo yum install python-devel |
OK |
ERROR: Command errored out with exit status 1: /usr/bin/python2 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-9mlRrh/subprocess32/setup.py'"'"'; file='"'"'/tmp/pip-install-9mlRrh/subprocess32/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-Z6XT_d/install-record.txt --single-version-externally-managed --compile --install-headers /usr/include/python2.7/subprocess32 Check the logs for full command output. Because not install python-devel |
Running setup.py install for subprocess32 ... error
Command "/usr/bin/python2 -u -c "import setuptools, tokenize;file='/tmp/pip-build-J19N4v/subprocess32/setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record /tmp/pip-mbZyUM-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-J19N4v/subprocess32/ Because not install gcc |
Thanks, it solved my problem |
Description of the issue
When running
pip install docker-compose==1.25
either in virtual env or in centos:7 docker container pip tries to compile subprocess32 and requires python headers.Context information (for bug reports)
Output of
docker-compose version
Output of
docker version
Output of
docker-compose config
(Make sure to add the relevant
-f
and other flags)Steps to reproduce the issue
virtualenv /tmp/foo
source /tmp/foo/bin/activate
pip install docker-compose==1.25
Observed result
Installation fails due to lack of python dev files.
Expected result
Installation succeeds and python dev files are not required.
Stacktrace / full error message
Additional information
OS version / distribution,
docker-compose
install method, etc.CentOS 7 docker, Ubuntu 18.04.3 LTS
The text was updated successfully, but these errors were encountered: