Python pip安装grpcio无法生成,但已在2周前工作
我必须更新部分代码并启动CI/CD管道。它在两周前工作,但现在停止了,并显示以下错误消息Python pip安装grpcio无法生成,但已在2周前工作,python,docker,pip,grpc,Python,Docker,Pip,Grpc,我必须更新部分代码并启动CI/CD管道。它在两周前工作,但现在停止了,并显示以下错误消息 Running setup.py install for grpcio: started Running setup.py install for grpcio: still running... Running setup.py install for grpcio: still running... Running setup.py install for grpcio: still running..
Running setup.py install for grpcio: started
Running setup.py install for grpcio: still running...
Running setup.py install for grpcio: still running...
Running setup.py install for grpcio: still running...
Running setup.py install for grpcio: finished with status 'error'
ERROR: Command errored out with exit status 1: command: /usr/bin/python3.6 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-c8t74nfl/grpcio/setup.py'"'"'; __file__='"'"'/tmp/pip-install-c8t74nfl/grpcio/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-og68hhuf/install-record.txt --single-version-externally-managed --compile --install-headers /usr/include/python3.6m/grpcio
cwd: /tmp/pip-install-c8t74nfl/grpcio/
ERROR: Command errored out with exit status 1: /usr/bin/python3.6 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-c8t74nfl/grpcio/setup.py'"'"'; __file__='"'"'/tmp/pip-install-c8t74nfl/grpcio/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-og68hhuf/install-record.txt --single-version-externally-managed --compile --install-headers /usr/include/python3.6m/grpcio Check the logs for full command output.
以下是docker文件的内容:
FROM harrisbaird/scrapyd:py3
# configure python app
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
COPY requirements.txt /usr/src/app/
COPY user_agents.txt /usr/src/app/
RUN apk --update add --no-cache \
lapack-dev \
gcc \
freetype-dev \
bash \
curl \
openssl
RUN apk --update add python3 python3-dev
# Install dependencies
RUN apk add --no-cache --virtual .build-deps \
gfortran \
musl-dev \
g++
RUN ln -s /usr/include/locale.h /usr/include/xlocale.h
RUN pip install --upgrade pip setuptools
RUN pip install --upgrade six
RUN pip install --no-cache-dir -r requirements.txt
# removing dependencies
RUN apk del .build-deps
ADD app /usr/src/app
COPY ./scrapyd.conf /etc/scrapyd/
RUN scrapyd & PID=$! && \
echo "Waiting for Scrapyd to start" && \
sleep 2 && \
[ ! -f /usr/src/app/scrapy.cfg ] || scrapyd-deploy && \
kill $PID
RUN ln -s /usr/src/app/crawl /etc/periodic/daily/crawl
ENV WORKDIR=/usr/src/app
ADD docker-entrypoint.sh /docker-entrypoint.sh
CMD ["/docker-entrypoint.sh"]
因为我所有的DevOps家伙都在度假,喝啤酒,开派对,我真的不知道如何让我的应用程序再次运行。请给我一些提示。多谢各位