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

Module build failed #20

Closed
mdemri opened this issue Apr 14, 2021 · 13 comments
Closed

Module build failed #20

mdemri opened this issue Apr 14, 2021 · 13 comments

Comments

@mdemri
Copy link

mdemri commented Apr 14, 2021

     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-jjBTYm
    creating build/temp.linux-x86_64-2.7/tmp/pip-install-jjBTYm/Cython
    creating build/temp.linux-x86_64-2.7/tmp/pip-install-jjBTYm/Cython/Cython
    creating build/temp.linux-x86_64-2.7/tmp/pip-install-jjBTYm/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-jjBTYm/Cython/Cython/Plex/Scanners.c -o build/temp.linux-x86_64-2.7/tmp/pip-install-jjBTYm/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-jjBTYm/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-E4EaLW/install-record.txt --single-version-externally-managed --prefix /tmp/pip-build-env-dgWVRE --compile" failed with error code 1 in /tmp/pip-install-jjBTYm/Cython/

----------------------------------------

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

@geoffsoftledger
Copy link

Also seeing this same issue today

@trombini77
Copy link

trombini77 commented Apr 14, 2021

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.

@geoffsoftledger
Copy link

@shuynh
Copy link

shuynh commented Apr 14, 2021

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

@trombini77
Copy link

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

@alarinel
Copy link

Same here

@rryke
Copy link

rryke commented Apr 14, 2021

+1

@kciter
Copy link
Owner

kciter commented Apr 14, 2021

Update Dockerfile 7ea3f73

@trombini77
Copy link

Will this revision have a new release version?

@CWSites
Copy link

CWSites commented Apr 14, 2021

Updating to kciter/aws-ecr-action@master resolved the problem for me. If possible to trigger a new version that would be much appreciated :)

@jairoFernandez
Copy link

jairoFernandez commented Apr 14, 2021

Update Dockerfile 7ea3f73

Thank you @kciter

@koslib
Copy link
Contributor

koslib commented Apr 14, 2021

@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 #21.

@kciter
Copy link
Owner

kciter commented Apr 21, 2021

Here, new release https://github.com/kciter/aws-ecr-action/releases/tag/v3 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants