tuna / opentuna

TUNA on AWS
https://opentuna.cn
Apache License 2.0
143 stars 6 forks source link

fail on installing pypi sync tool bandersnatch #124

Closed zxkane closed 3 years ago

zxkane commented 3 years ago

as title

Reproduction Steps

  1. deploy stack with latest amz linux2

Error Log

    building 'multidict._multidict' extension
    creating build/temp.linux-x86_64-3.7
    creating build/temp.linux-x86_64-3.7/multidict
    gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/usr/include/python3.7m -c multidict/_multidict.c -o build/temp.linux-x86_64-3.7/multidict/_multidict.o -O2 -std=c99 -Wall -Wsign-compare -Wconversion -fno-strict-aliasing -pedantic
    unable to execute 'gcc': No such file or directory
    error: command 'gcc' failed with exit status 1

    ----------------------------------------
Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-6pow3cpx/multidict/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-zmha9ian-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-6pow3cpx/multidict/
WARNING: Running pip install with root privileges is generally not a good idea. Try `pip3 install --user` instead.

Environment

Other


This is :bug: Bug Report

zxkane commented 3 years ago

Let’s fix with below considerations,

  1. resolving the broken install
  2. make the user data script failure when the installation fails, which will trigger the existing CloudWatch alarm