Closed mdemri closed 3 years ago
Also seeing this same issue today
I´m facing the same issue here.
building 'Cython.Plex.Scanners' extension
creating build/temp.linux-x86_64-2.7
creating build/temp.linux-x86_64-2.7/tmp
creating build/temp.linux-x86_64-2.7/tmp/pip-install-yLt36n
creating build/temp.linux-x86_64-2.7/tmp/pip-install-yLt36n/Cython
creating build/temp.linux-x86_64-2.7/tmp/pip-install-yLt36n/Cython/Cython
creating build/temp.linux-x86_64-2.7/tmp/pip-install-yLt36n/Cython/Cython/Plex
gcc -fno-strict-aliasing -Os -fomit-frame-pointer -g -DNDEBUG -Os -fomit-frame-pointer -g -DTHREAD_STACK_SIZE=0x100000 -fPIC -I/usr/include/python2.7 -c /tmp/pip-install-yLt36n/Cython/Cython/Plex/Scanners.c -o build/temp.linux-x86_64-2.7/tmp/pip-install-yLt36n/Cython/Cython/Plex/Scanners.o
unable to execute 'gcc': No such file or directory
error: command 'gcc' failed with exit status 1
----------------------------------------
Command "/usr/bin/python2 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-yLt36n/Cython/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-ui1Oyn/install-record.txt --single-version-externally-managed --prefix /tmp/pip-build-env-JyJ8i9 --compile" failed with error code 1 in /tmp/pip-install-yLt36n/Cython/
----------------------------------------
Command "/usr/bin/python2 -m pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-JyJ8i9 --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools wheel Cython" failed with error code 1 in None The command '/bin/sh -c apk update && apk upgrade && apk add --no-cache --update python py-pip coreutils bash && rm -rf /var/cache/apk/* && pip install awscli && apk --purge -v del py-pip' returned a non-zero code: 1
Error: Docker build failed with exit code 1
What I see here that the base image doesn´t have gcc compiler installed and the script need it.. so crashed.
I saw in code that the base image is https://hub.docker.com/_/docker?tab=tags&page=1&ordering=last_updated&name=19.03.4
Step 1/5 : FROM docker:19.03.4
and have more than one year this image so probably some step after before enable the right execution and not because some modification in the base image.
Possibly related?: https://github.blog/changelog/2020-02-27-github-actions-breaking-change-python-2-being-removed-from-all-virtual-environments/ gh actions removing support for python2.7
the latest version of the aws-cli
introduced some new dependencies (like gcc) that this Dockerfile doesn't install.
we got around this by pinning the aws-cli
install to the last working version -- pip install awscli==1.18.95
awscli==1.18.95
I tried do build image locally with the change in Dockerfile from pip install awscli to pip install awscli==1.18.95 and it worked fine.
Now is only missing the repository owner fix it :)
Same here
+1
Will this revision have a new release version?
Updating to kciter/aws-ecr-action@master
resolved the problem for me. If possible to trigger a new version that would be much appreciated :)
Update Dockerfile 7ea3f73
Thank you @kciter
@kciter As the awscli brings in more functionality and security updates from version to version, I think it's wise to pin to a specific pyyaml version rather than awscli's. I've sent a PR about this too in case you agree with me https://github.com/kciter/aws-ecr-action/pull/21.
Here, new release https://github.com/kciter/aws-ecr-action/releases/tag/v3 😄
Command "/usr/bin/python2 -m pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-dgWVRE --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools wheel Cython" failed with error code 1 in None The command '/bin/sh -c apk update && apk upgrade && apk add --no-cache --update python py-pip coreutils bash && rm -rf /var/cache/apk/* && pip install awscli && apk --purge -v del py-pip' returned a non-zero code: 1