• 欢迎访问1024小神,一个只会Python的程序猿不是一个好司机
  • 有什么想对我说的可以在留言板里给我留言哦~
  • 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏1024小神吧

build_runtime出现错误,该怎么解决?

Python Jason 7个月前 (03-04) 216次浏览 3个评论
 Running with gitlab-runner 12.10.0~beta.111.g3954af18 (3954af18)
   on local ywo7TyLe
Preparing the "shell" executor
00:00
 Using Shell executor...
Preparing environment
00:00
 Running on ansible-admin...
Getting source from Git repository
00:00
 Fetching changes...
 Reinitialized existing Git repository in /home/gitlab-runner/builds/ywo7TyLe/0/hex-server/hex-server-api/.git/
 Checking out 6b5bcbfa as v1.1.0-ll...
 Removing Dockerfile
 Skipping Git submodules setup
Restoring cache
00:00
Downloading artifacts
00:00
Running before_script and script
01:00
 $ echo "Build fold : $PWD"
 Build fold : /home/gitlab-runner/builds/ywo7TyLe/0/hex-server/hex-server-api
 $ export GITLAB_GROUP_NAME=`echo $CI_REPOSITORY_URL|awk -F'/' '{print $4}'`
 $ echo "GROUP NAME : $GITLAB_GROUP_NAME"
 GROUP NAME : hex-server
 $ echo "PROJECT NAME : $CI_PROJECT_NAME"
 PROJECT NAME : hex-server-api
 $ echo "PROJECT ID : $CI_PROJECT_ID"
 PROJECT ID : 430
 $ echo "PROJECT URL : $CI_PROJECT_URL"
 PROJECT URL : https://gitlab.hexcloud.cn/hex-server/hex-server-api
 $ echo "ENVIRONMENT URL : $CI_ENVIRONMENT_URL"
 ENVIRONMENT URL : 
 $ echo "DOCKER REGISTRY URL : $DOCKER_REGISTRY_URL"
 DOCKER REGISTRY URL : registry.hexcloud.cn
 $ export PATH=$PATH:/usr/bin
 $ DEPLOYMENT_CONTAINER="$DOCKER_REGISTRY_URL/$GITLAB_GROUP_NAME/$CI_PROJECT_NAME/$CI_COMMIT_REF_NAME"
 $ DEPLOYMENT_CONTAINER=$(echo $DEPLOYMENT_CONTAINER|tr "[:upper:]" "[:lower:]")
 $ echo DEPLOYMENT_CONTAINER: $DEPLOYMENT_CONTAINER
 DEPLOYMENT_CONTAINER: registry.hexcloud.cn/hex-server/hex-server-api/v1.1.0-ll
 $ IMAGE_REPO=$DEPLOYMENT_CONTAINER
 $ export IMAGE_TAG=$IMAGE_REPO:${CI_COMMIT_SHA:0:8}
 $ export IMAGE_TAG_LATEST=$IMAGE_REPO:latest
 $ RUNTIME_REPO=$DEPLOYMENT_CONTAINER"_runtime"
 $ RUNTIME_TAG=$RUNTIME_REPO:${CI_COMMIT_SHA:0:8}
 $ RUNTIME_TAG_LATEST=$RUNTIME_REPO:latest
 $ echo "Job $CI_JOB_NAME triggered by $GITLAB_USER_NAME ($GITLAB_USER_ID)"
 Job build_runtime triggered by jiangjiang.song (164)
 $ echo "Build on $CI_COMMIT_REF_NAME"
 Build on v1.1.0-ll
 $ echo "HEAD commit SHA $CI_COMMIT_SHA"
 HEAD commit SHA 6b5bcbfad00cb2f312c6314f0feca4163aaa9195
 $ docker build -f ./Dockerfile_runtime -t $RUNTIME_TAG -t $RUNTIME_TAG_LATEST .
 Step 1/7 : FROM registry.hexcloud.cn/devops/python:2.7-jessie
  ---> 96f10bf3d8fa
 Step 2/7 : RUN mkdir /app
  ---> Using cache
  ---> 77ecb7e283b4
 Step 3/7 : WORKDIR /app
  ---> Using cache
  ---> 10cd9ee468e6
 Step 4/7 : RUN mkdir logs && chmod -R 777 logs
  ---> Using cache
  ---> 7d1a48acae40
 Step 5/7 : ADD requirements.txt requirements.txt
  ---> Using cache
  ---> d5f9446f3083
 Step 6/7 : RUN cat requirements.txt
  ---> Using cache
  ---> 546bfcab62ab
 Step 7/7 : RUN pip install  -i https://pypi.hexcloud.cn/hex/pypi -r ./requirements.txt
  ---> Running in 618137ba807f
 DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.
 Looking in indexes: https://pypi.hexcloud.cn/hex/pypi
 Collecting alembic==0.9.6 (from -r ./requirements.txt (line 1))
   Downloading https://pypi.hexcloud.cn/root/pypi/%2Bf/042/851ebe9efa07b/alembic-0.9.6.tar.gz (998kB)
 Collecting aniso8601==1.3.0 (from -r ./requirements.txt (line 2))
   Downloading https://pypi.hexcloud.cn/root/pypi/%2Bf/c3b/5246f5601b6ae/aniso8601-1.3.0.tar.gz (57kB)
 Collecting backports-abc==0.5 (from -r ./requirements.txt (line 3))
   Downloading https://pypi.hexcloud.cn/root/pypi/%2Bf/520/89f97fe7a9aa0/backports_abc-0.5-py2.py3-none-any.whl
 Collecting certifi==2017.7.27.1 (from -r ./requirements.txt (line 4))
   Downloading https://pypi.hexcloud.cn/root/pypi/%2Bf/54a/07c09c586b0e4/certifi-2017.7.27.1-py2.py3-none-any.whl (349kB)
 Collecting chardet==3.0.4 (from -r ./requirements.txt (line 5))
   Downloading https://pypi.hexcloud.cn/root/pypi/%2Bf/fc3/23ffcaeaed0e0/chardet-3.0.4-py2.py3-none-any.whl (133kB)
 Collecting decorator==4.0.4 (from -r ./requirements.txt (line 6))
   Downloading https://pypi.hexcloud.cn/root/pypi/%2Bf/01b/7922a5c46e7c2/decorator-4.0.4-py2.py3-none-any.whl
 Collecting demjson==2.2.4 (from -r ./requirements.txt (line 7))
   Downloading https://pypi.hexcloud.cn/root/pypi/%2Bf/31d/e2038a0fdd9c4/demjson-2.2.4.tar.gz (131kB)
 Collecting eleme.openapi.python.sdk==1.5.0 (from -r ./requirements.txt (line 8))
   Downloading https://pypi.hexcloud.cn/root/pypi/%2Bf/44d/0b1f0692d474c/eleme.openapi.python.sdk-1.5.0.tar.gz
 Collecting enum34==1.1.6 (from -r ./requirements.txt (line 9))
   Downloading https://pypi.hexcloud.cn/root/pypi/%2Bf/6bd/0f6ad48ec2aa1/enum34-1.1.6-py2-none-any.whl
 Collecting Flask==0.10.1 (from -r ./requirements.txt (line 10))
   Downloading https://pypi.hexcloud.cn/root/pypi/%2Bf/4c8/3829ff83d408b/Flask-0.10.1.tar.gz (544kB)
 Collecting Flask-Cors==3.0.3 (from -r ./requirements.txt (line 11))
   Downloading https://pypi.hexcloud.cn/root/pypi/%2Bf/ac4/b81b3d90f5f18/Flask_Cors-3.0.3-py2.py3-none-any.whl
 Collecting Flask-Migrate==1.7.0 (from -r ./requirements.txt (line 12))
   Downloading https://pypi.hexcloud.cn/root/pypi/%2Bf/fb7/4af64d861932e/Flask-Migrate-1.7.0.tar.gz
 Collecting Flask-Neo4j==0.5.1 (from -r ./requirements.txt (line 13))
   Downloading https://pypi.hexcloud.cn/root/pypi/%2Bf/b05/fe8e0228a7416/Flask_Neo4j-0.5.1-py2.py3-none-any.whl
 Collecting Flask-OAuthlib==0.9.2 (from -r ./requirements.txt (line 14))
   Downloading https://pypi.hexcloud.cn/root/pypi/%2Bf/e03/40420f47b610f/Flask_OAuthlib-0.9.2-py2-none-any.whl
 Collecting Flask-RESTful==0.3.6 (from -r ./requirements.txt (line 15))
   Downloading https://pypi.hexcloud.cn/root/pypi/%2Bf/e2f/1b8063de3944b/Flask_RESTful-0.3.6-py2.py3-none-any.whl
 Collecting Flask-Restless==0.17.0 (from -r ./requirements.txt (line 16))
   Downloading https://pypi.hexcloud.cn/root/pypi/%2Bf/1de/47fe80abd4723/Flask-Restless-0.17.0.tar.gz (42kB)
 Collecting Flask-Script==2.0.5 (from -r ./requirements.txt (line 17))
   Downloading https://pypi.hexcloud.cn/root/pypi/%2Bf/cef/76eac75139635/Flask-Script-2.0.5.tar.gz (42kB)
 Collecting Flask-Session==0.3.1 (from -r ./requirements.txt (line 18))
   Downloading https://pypi.hexcloud.cn/root/pypi/%2Bf/b9b/32126bfc52c31/Flask_Session-0.3.1-py2.py3-none-any.whl
 Collecting Flask-SQLAlchemy==1.0 (from -r ./requirements.txt (line 19))
   Downloading https://pypi.hexcloud.cn/root/pypi/%2Bf/7f0/e218fa9066b34/Flask-SQLAlchemy-1.0.tar.gz (92kB)
 Collecting functools32==3.2.3.post2 (from -r ./requirements.txt (line 20))
   Downloading https://pypi.hexcloud.cn/root/pypi/%2Bf/89d/824aa6c358c42/functools32-3.2.3-2.zip
 Collecting future==0.16.0 (from -r ./requirements.txt (line 21))
   Downloading https://pypi.hexcloud.cn/root/pypi/%2Bf/e39/ced1ab767b593/future-0.16.0.tar.gz (824kB)
 Collecting futures==3.1.1 (from -r ./requirements.txt (line 22))
   Downloading https://pypi.hexcloud.cn/root/pypi/%2Bf/c48/84a65654a7c45/futures-3.1.1-py2-none-any.whl
 Collecting grpcio==1.18.0 (from -r ./requirements.txt (line 23))
   Downloading https://pypi.hexcloud.cn/root/pypi/%2Bf/614/de7d6672eb023/grpcio-1.18.0-cp27-cp27mu-manylinux1_x86_64.whl (10.4MB)
 Collecting grpcio-tools==1.18.0 (from -r ./requirements.txt (line 24))
   Downloading https://pypi.hexcloud.cn/root/pypi/%2Bf/a90/1ebe622196807/grpcio_tools-1.18.0-cp27-cp27mu-manylinux1_x86_64.whl (22.8MB)
 Collecting gunicorn==19.5.0 (from -r ./requirements.txt (line 25))
   Downloading https://pypi.hexcloud.cn/root/pypi/%2Bf/44c/da41835864674/gunicorn-19.5.0-py2.py3-none-any.whl (113kB)
 Collecting hex-pygelf==0.3.22 (from -r ./requirements.txt (line 26))
   Downloading https://pypi.hexcloud.cn/hex/pypi/%2Bf/4a8/88d7a0b68637d/hex-pygelf-0.3.22.tar.gz
 Collecting httplib2==0.10.3 (from -r ./requirements.txt (line 27))
   Downloading https://pypi.hexcloud.cn/root/pypi/%2Bf/e40/4d3b7bd86c1bc/httplib2-0.10.3.tar.gz (204kB)
 Collecting idna==2.6 (from -r ./requirements.txt (line 28))
   Downloading https://pypi.hexcloud.cn/root/pypi/%2Bf/8c7/309c718f94b3a/idna-2.6-py2.py3-none-any.whl (56kB)
 Collecting itsdangerous==0.24 (from -r ./requirements.txt (line 29))
   Downloading https://pypi.hexcloud.cn/root/pypi/%2Bf/cbb/3fcf8d3e33df8/itsdangerous-0.24.tar.gz (46kB)
 Collecting Jinja2==2.9.6 (from -r ./requirements.txt (line 30))
   Downloading https://pypi.hexcloud.cn/root/pypi/%2Bf/223/1bace0dfd8d2b/Jinja2-2.9.6-py2.py3-none-any.whl (340kB)
 Collecting jsonmerge==1.4.0 (from -r ./requirements.txt (line 31))
   Downloading https://pypi.hexcloud.cn/root/pypi/%2Bf/b45/13d8361496508/jsonmerge-1.4.0.tar.gz
 Collecting jsonschema==2.6.0 (from -r ./requirements.txt (line 32))
   Downloading https://pypi.hexcloud.cn/root/pypi/%2Bf/000/e68abd33c972a/jsonschema-2.6.0-py2.py3-none-any.whl
 Collecting Mako==1.0.7 (from -r ./requirements.txt (line 33))
   Downloading https://pypi.hexcloud.cn/root/pypi/%2Bf/4e0/2fde57bd4abb5/Mako-1.0.7.tar.gz (564kB)
 Collecting MarkupSafe==1.0 (from -r ./requirements.txt (line 34))
   Downloading https://pypi.hexcloud.cn/root/pypi/%2Bf/a6b/e69091dac236e/MarkupSafe-1.0.tar.gz
 Collecting marshmallow==2.14.0 (from -r ./requirements.txt (line 35))
   Downloading https://pypi.hexcloud.cn/root/pypi/%2Bf/3f2/b795b9b0db24f/marshmallow-2.14.0-py2.py3-none-any.whl (45kB)
 Collecting meld3==1.0.2 (from -r ./requirements.txt (line 36))
   Downloading https://pypi.hexcloud.cn/root/pypi/%2Bf/b28/a9bfac342aadb/meld3-1.0.2-py2.py3-none-any.whl
 Collecting mimerender==0.6.0 (from -r ./requirements.txt (line 37))
   Downloading https://pypi.hexcloud.cn/root/pypi/%2Bf/e7f/1377efee18c3f/mimerender-0.6.0.tar.gz
 Collecting neo4j-driver==1.5.0 (from -r ./requirements.txt (line 38))
   Downloading https://pypi.hexcloud.cn/root/pypi/%2Bf/264/95ad58b655b8a/neo4j-driver-1.5.0.tar.gz (173kB)
 Collecting numpy==1.13.3 (from -r ./requirements.txt (line 39))
   Downloading https://pypi.hexcloud.cn/root/pypi/%2Bf/da2/f47e46d7a93b7/numpy-1.13.3-cp27-cp27mu-manylinux1_x86_64.whl (16.6MB)
 Collecting oauthlib==1.1.2 (from -r ./requirements.txt (line 40))
   Downloading https://pypi.hexcloud.cn/root/pypi/%2Bf/0e8/3e91d9e77a396/oauthlib-1.1.2.tar.gz (111kB)
 Collecting pandas==0.20.1 (from -r ./requirements.txt (line 41))
   Downloading https://pypi.hexcloud.cn/root/pypi/%2Bf/1f6/22896c896bf52/pandas-0.20.1-cp27-cp27mu-manylinux1_x86_64.whl (22.3MB)
 Collecting pinyin==0.4.0 (from -r ./requirements.txt (line 42))
   Downloading https://pypi.hexcloud.cn/root/pypi/%2Bf/884/2ae53cb7a81c8/pinyin-0.4.0.tar.gz (3.6MB)
 Collecting ply==3.10 (from -r ./requirements.txt (line 43))
   Downloading https://pypi.hexcloud.cn/root/pypi/%2Bf/96e/94af7dd7031d8/ply-3.10.tar.gz (150kB)
 Collecting portalocker==1.1.0 (from -r ./requirements.txt (line 44))
   Downloading https://pypi.hexcloud.cn/root/pypi/%2Bf/377/3cb40ccb69090/portalocker-1.1.0-py2.py3-none-any.whl
 Collecting protobuf==3.6.1 (from -r ./requirements.txt (line 45))
   Downloading https://pypi.hexcloud.cn/root/pypi/%2Bf/59c/d75ded98094d3/protobuf-3.6.1-cp27-cp27mu-manylinux1_x86_64.whl (1.1MB)
 Collecting psycopg2==2.7.1 (from -r ./requirements.txt (line 46))
   Downloading https://pypi.hexcloud.cn/root/pypi/%2Bf/bf4/8be2d01f6e34e/psycopg2-2.7.1-cp27-cp27mu-manylinux1_x86_64.whl (2.7MB)
 Collecting py2neo==2.0.8 (from -r ./requirements.txt (line 47))
   Downloading https://pypi.hexcloud.cn/root/pypi/%2Bf/061/67f5a91a0d9b9/py2neo-2.0.8.tar.gz (251kB)
 Collecting pyasn1==0.3.7 (from -r ./requirements.txt (line 48))
   Downloading https://pypi.hexcloud.cn/root/pypi/%2Bf/16e/896433f84575f/pyasn1-0.3.7-py2.py3-none-any.whl (63kB)
 Collecting pycrypto==2.6.1 (from -r ./requirements.txt (line 49))
   Downloading https://pypi.hexcloud.cn/root/pypi/%2Bf/f2c/e1e989b272cfc/pycrypto-2.6.1.tar.gz (446kB)
 Collecting pymongo==3.5.1 (from -r ./requirements.txt (line 50))
   Downloading https://pypi.hexcloud.cn/root/pypi/%2Bf/dd6/47f898031efef/pymongo-3.5.1-cp27-cp27mu-manylinux1_x86_64.whl (368kB)
 Collecting pymssql==2.1.3 (from -r ./requirements.txt (line 51))
   Downloading https://pypi.hexcloud.cn/root/pypi/%2Bf/5c9/5871a5206525d/pymssql-2.1.3-cp27-cp27mu-manylinux1_x86_64.whl (1.1MB)
 Collecting PyMySQL==0.9.3 (from -r ./requirements.txt (line 52))
   Downloading https://pypi.hexcloud.cn/root/pypi/%2Bf/394/3fbbbc1e902f4/PyMySQL-0.9.3-py2.py3-none-any.whl (47kB)
 Collecting pynsq==0.8.1 (from -r ./requirements.txt (line 53))
   Downloading https://pypi.hexcloud.cn/root/pypi/%2Bf/d08/3ad82586f4426/pynsq-0.8.1.tar.gz
 Collecting pysnowflake==0.1.3 (from -r ./requirements.txt (line 54))
   Downloading https://pypi.hexcloud.cn/root/pypi/%2Bf/47e/d6b65c2b758d3/pysnowflake-0.1.3.tar.gz
 Collecting python-alipay-sdk==1.2.1 (from -r ./requirements.txt (line 55))
   Downloading https://pypi.hexcloud.cn/root/pypi/%2Bf/6ba/53a4bc5b14fcb/python-alipay-sdk-1.2.1.tar.gz
 Collecting python-dateutil==1.5 (from -r ./requirements.txt (line 56))
   Downloading https://pypi.hexcloud.cn/root/pypi/%2Bf/6f1/97348b46fb8cd/python-dateutil-1.5.tar.gz (233kB)
 Collecting python-editor==1.0.3 (from -r ./requirements.txt (line 57))
   Downloading https://pypi.hexcloud.cn/root/pypi/%2Bf/a3c/066acee22a1c9/python-editor-1.0.3.tar.gz
 Collecting python-mimeparse==1.6.0 (from -r ./requirements.txt (line 58))
   Downloading https://pypi.hexcloud.cn/root/pypi/%2Bf/a29/5f03ff2034149/python_mimeparse-1.6.0-py2.py3-none-any.whl
 Collecting pytz==2017.3 (from -r ./requirements.txt (line 59))
   Downloading https://pypi.hexcloud.cn/root/pypi/%2Bf/c41/c62827ce9cafa/pytz-2017.3-py2.py3-none-any.whl (511kB)
 Collecting PyYAML==3.12 (from -r ./requirements.txt (line 60))
   Downloading https://pypi.hexcloud.cn/root/pypi/%2Bf/5ac/82e411044fb12/PyYAML-3.12.zip (375kB)
 Collecting redis==2.10.6 (from -r ./requirements.txt (line 61))
   Downloading https://pypi.hexcloud.cn/root/pypi/%2Bf/8a1/900a9f2a0a44e/redis-2.10.6-py2.py3-none-any.whl (64kB)
 Collecting requests==2.18.4 (from -r ./requirements.txt (line 62))
   Downloading https://pypi.hexcloud.cn/root/pypi/%2Bf/6a1/b267aa90cac58/requests-2.18.4-py2.py3-none-any.whl (88kB)
 Collecting requests-oauthlib==0.8.0 (from -r ./requirements.txt (line 63))
   Downloading https://pypi.hexcloud.cn/root/pypi/%2Bf/50a/8ae2ce8273e38/requests_oauthlib-0.8.0-py2.py3-none-any.whl
 Collecting rsa==3.4.2 (from -r ./requirements.txt (line 64))
   Downloading https://pypi.hexcloud.cn/root/pypi/%2Bf/43f/682fea81c452c/rsa-3.4.2-py2.py3-none-any.whl (46kB)
 Collecting simplejson==3.11.1 (from -r ./requirements.txt (line 65))
   Downloading https://pypi.hexcloud.cn/root/pypi/%2Bf/01a/22d49ddd9a168/simplejson-3.11.1.tar.gz (78kB)
 Collecting singledispatch==3.4.0.3 (from -r ./requirements.txt (line 66))
   Downloading https://pypi.hexcloud.cn/root/pypi/%2Bf/833/b46966687b3de/singledispatch-3.4.0.3-py2.py3-none-any.whl
 Collecting six==1.11.0 (from -r ./requirements.txt (line 67))
   Downloading https://pypi.hexcloud.cn/root/pypi/%2Bf/832/dc0e10feb1aa2/six-1.11.0-py2.py3-none-any.whl
 Collecting SQLAlchemy==1.3.10 (from -r ./requirements.txt (line 68))
   Downloading https://pypi.hexcloud.cn/root/pypi/%2Bf/0f0/768b5db594517/SQLAlchemy-1.3.10.tar.gz (6.0MB)
 Collecting sqlalchemy-mptt==0.2.2 (from -r ./requirements.txt (line 69))
   Downloading https://pypi.hexcloud.cn/root/pypi/%2Bf/fd0/123d33ecd5f51/sqlalchemy_mptt-0.2.2.tar.gz
 Collecting supervisor==3.3.2 (from -r ./requirements.txt (line 70))
   Downloading https://pypi.hexcloud.cn/root/pypi/%2Bf/bbb/870f5b59c5c4f/supervisor-3.3.2.tar.gz (417kB)
 Collecting thriftpy==0.3.9 (from -r ./requirements.txt (line 71))
   Downloading https://pypi.hexcloud.cn/root/pypi/%2Bf/309/e57d97b5bfa01/thriftpy-0.3.9.tar.gz (208kB)
 Collecting tornado==4.5.2 (from -r ./requirements.txt (line 72))
   Downloading https://pypi.hexcloud.cn/root/pypi/%2Bf/1fb/8e494cd46c674/tornado-4.5.2.tar.gz (483kB)
 Collecting urllib3==1.22 (from -r ./requirements.txt (line 73))
   Downloading https://pypi.hexcloud.cn/root/pypi/%2Bf/063/30f386d6e4b19/urllib3-1.22-py2.py3-none-any.whl (132kB)
 Collecting virtualenv==15.1.0 (from -r ./requirements.txt (line 74))
   Downloading https://pypi.hexcloud.cn/root/pypi/%2Bf/39d/88b533b422825/virtualenv-15.1.0-py2.py3-none-any.whl (1.8MB)
 Collecting Werkzeug==0.11 (from -r ./requirements.txt (line 75))
   Downloading https://pypi.hexcloud.cn/root/pypi/%2Bf/809/bcff67e9968a5/Werkzeug-0.11-py2.py3-none-any.whl (304kB)
 Collecting xlrd==1.1.0 (from -r ./requirements.txt (line 76))
   Downloading https://pypi.hexcloud.cn/root/pypi/%2Bf/83a/1d2f1091078fb/xlrd-1.1.0-py2.py3-none-any.whl (108kB)
 Collecting XlsxWriter==0.9.6 (from -r ./requirements.txt (line 77))
   Downloading https://pypi.hexcloud.cn/root/pypi/%2Bf/fea/a2699e82a0965/XlsxWriter-0.9.6-py2.py3-none-any.whl (137kB)
 Collecting xmltodict==0.11.0 (from -r ./requirements.txt (line 78))
   Downloading https://pypi.hexcloud.cn/root/pypi/%2Bf/add/07d92089ff611/xmltodict-0.11.0-py2.py3-none-any.whl
 Collecting zeep==2.4.0 (from -r ./requirements.txt (line 79))
   Downloading https://pypi.hexcloud.cn/root/pypi/%2Bf/2b8/1499ff7d95332/zeep-2.4.0-py2.py3-none-any.whl (131kB)
 Collecting gevent==1.2.2 (from -r ./requirements.txt (line 80))
   Downloading https://pypi.hexcloud.cn/root/pypi/%2Bf/dea/fd70d04ab6242/gevent-1.2.2-cp27-cp27mu-manylinux1_x86_64.whl (1.6MB)
 Collecting nats-client==0.5.6 (from -r ./requirements.txt (line 81))
   Downloading https://pypi.hexcloud.cn/root/pypi/%2Bf/c10/f75cbac18b90a/nats-client-0.5.6.tar.gz
 Collecting crypto (from -r ./requirements.txt (line 82))
   Downloading https://pypi.hexcloud.cn/root/pypi/%2Bf/985/120aa86f71545/crypto-1.4.1-py2.py3-none-any.whl
 Collecting xlwt==1.3.0 (from -r ./requirements.txt (line 83))
   Downloading https://pypi.hexcloud.cn/root/pypi/%2Bf/a08/2260524678ba4/xlwt-1.3.0-py2.py3-none-any.whl (99kB)
 Collecting pyexcel-io==0.5.10 (from -r ./requirements.txt (line 84))
   Downloading https://pypi.hexcloud.cn/root/pypi/%2Bf/60a/34534b5853a56/pyexcel_io-0.5.10-py2.py3-none-any.whl
 Collecting pyexcel-xls==0.5.8 (from -r ./requirements.txt (line 85))
   Downloading https://pypi.hexcloud.cn/root/pypi/%2Bf/90a/ef211c0628e66/pyexcel_xls-0.5.8-py2.py3-none-any.whl
 Collecting pyexcel==0.5.9.1 (from -r ./requirements.txt (line 86))
   Downloading https://pypi.hexcloud.cn/root/pypi/%2Bf/80e/f92c9d5dd5a2b/pyexcel-0.5.9.1-py2.py3-none-any.whl (90kB)
 Collecting pyexcel-xlsx==0.5.7 (from -r ./requirements.txt (line 87))
   Downloading https://pypi.hexcloud.cn/root/pypi/%2Bf/d60/bf71c770d391c/pyexcel_xlsx-0.5.7-py2.py3-none-any.whl
 Collecting pyopenssl (from -r ./requirements.txt (line 88))
   Downloading https://pypi.hexcloud.cn/root/pypi/%2Bf/818/ae18e06922c06/pyOpenSSL-20.0.1-py2.py3-none-any.whl (54kB)
 Collecting hexoauthclient-canada==0.0.1 (from -r ./requirements.txt (line 89))
   Downloading https://pypi.hexcloud.cn/hex/pypi/%2Bf/e31/a1edadd765c3b/hexoauthclient-canada-0.0.1.tar.gz
 Collecting qrcode==6.1 (from -r ./requirements.txt (line 90))
   Downloading https://pypi.hexcloud.cn/root/pypi/%2Bf/399/6ee560fc39532/qrcode-6.1-py2.py3-none-any.whl
 Requirement already satisfied: setuptools in /usr/local/lib/python2.7/site-packages (from Flask-SQLAlchemy==1.0->-r ./requirements.txt (line 19)) (41.0.1)
 Collecting requests-toolbelt>=0.7.1 (from zeep==2.4.0->-r ./requirements.txt (line 79))
   Downloading https://pypi.hexcloud.cn/root/pypi/%2Bf/380/606e1d10dc85c/requests_toolbelt-0.9.1-py2.py3-none-any.whl (54kB)
 Collecting lxml>=3.0.0 (from zeep==2.4.0->-r ./requirements.txt (line 79))
   Downloading https://pypi.hexcloud.cn/root/pypi/%2Bf/f83/d281bb2a6217c/lxml-4.6.2-cp27-cp27mu-manylinux1_x86_64.whl (5.5MB)
 Collecting appdirs>=1.4.0 (from zeep==2.4.0->-r ./requirements.txt (line 79))
   Downloading https://pypi.hexcloud.cn/root/pypi/%2Bf/a84/1dacd6b99318a/appdirs-1.4.4-py2.py3-none-any.whl
 Collecting defusedxml>=0.4.1 (from zeep==2.4.0->-r ./requirements.txt (line 79))
   Downloading https://pypi.hexcloud.cn/root/pypi/%2Bf/668/7150770438374/defusedxml-0.6.0-py2.py3-none-any.whl
 Collecting cached-property>=1.3.0 (from zeep==2.4.0->-r ./requirements.txt (line 79))
   Downloading https://pypi.hexcloud.cn/root/pypi/%2Bf/df4/f613cf7ad9a58/cached_property-1.5.2-py2.py3-none-any.whl
 Collecting isodate>=0.5.4 (from zeep==2.4.0->-r ./requirements.txt (line 79))
   Downloading https://pypi.hexcloud.cn/root/pypi/%2Bf/aa4/d33c06640f535/isodate-0.6.0-py2.py3-none-any.whl (45kB)
 Collecting greenlet>=0.4.10 (from gevent==1.2.2->-r ./requirements.txt (line 80))
   Downloading https://pypi.hexcloud.cn/root/pypi/%2Bf/875/d4c60a6299f55/greenlet-1.0.0-cp27-cp27mu-manylinux2010_x86_64.whl (148kB)
 Collecting shellescape (from crypto->-r ./requirements.txt (line 82))
   Downloading https://pypi.hexcloud.cn/root/pypi/%2Bf/f17/127e390fa3f9a/shellescape-3.8.1-py2.py3-none-any.whl
 Collecting Naked (from crypto->-r ./requirements.txt (line 82))
   Downloading https://pypi.hexcloud.cn/root/pypi/%2Bf/19d/e9961f4edb29e/Naked-0.1.31-py2.py3-none-any.whl (590kB)
 Collecting lml>=0.0.2 (from pyexcel-io==0.5.10->-r ./requirements.txt (line 84))
   Downloading https://pypi.hexcloud.cn/root/pypi/%2Bf/ec0/6e850019942a4/lml-0.1.0-py2.py3-none-any.whl
 Collecting texttable>=0.8.1 (from pyexcel==0.5.9.1->-r ./requirements.txt (line 86))
   Downloading https://pypi.hexcloud.cn/root/pypi/%2Bf/f80/2f2ef84590587/texttable-1.6.3-py2.py3-none-any.whl
 Collecting openpyxl<2.6.0,>=2.5.0 (from pyexcel-xlsx==0.5.7->-r ./requirements.txt (line 87))
   Downloading https://pypi.hexcloud.cn/root/pypi/%2Bf/a52/85901fff7b99a/openpyxl-2.5.14.tar.gz (173kB)
 Collecting cryptography>=3.2 (from pyopenssl->-r ./requirements.txt (line 88))
   Downloading https://pypi.hexcloud.cn/root/pypi/%2Bf/2d3/2223e5b0ee029/cryptography-3.4.6.tar.gz (546kB)
   Installing build dependencies: started
   Installing build dependencies: finished with status 'error'
   ERROR: Complete output from command /usr/local/bin/python /usr/local/lib/python2.7/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-Bkv9yz/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.hexcloud.cn/hex/pypi -- 'setuptools>=40.6.0' wheel 'cffi>=1.12; platform_python_implementation != '"'"'PyPy'"'"'' 'setuptools-rust>=0.11.4':
   DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.
   Looking in indexes: https://pypi.hexcloud.cn/hex/pypi
   Collecting setuptools>=40.6.0
     Downloading https://pypi.hexcloud.cn/root/pypi/%2Bf/34e/fee89c4c87920/setuptools-54.0.0.tar.gz (2.1MB)
     Installing build dependencies: started
     Installing build dependencies: finished with status 'done'
     Getting requirements to build wheel: started
     Getting requirements to build wheel: finished with status 'done'
   ERROR: Exception:
   Traceback (most recent call last):
     File "/usr/local/lib/python2.7/site-packages/pip/_internal/cli/base_command.py", line 178, in main
       status = self.run(options, args)
     File "/usr/local/lib/python2.7/site-packages/pip/_internal/commands/install.py", line 352, in run
       resolver.resolve(requirement_set)
     File "/usr/local/lib/python2.7/site-packages/pip/_internal/resolve.py", line 131, in resolve
       self._resolve_one(requirement_set, req)
     File "/usr/local/lib/python2.7/site-packages/pip/_internal/resolve.py", line 294, in _resolve_one
       abstract_dist = self._get_abstract_dist_for(req_to_install)
     File "/usr/local/lib/python2.7/site-packages/pip/_internal/resolve.py", line 242, in _get_abstract_dist_for
       self.require_hashes
     File "/usr/local/lib/python2.7/site-packages/pip/_internal/operations/prepare.py", line 362, in prepare_linked_requirement
       abstract_dist.prep_for_dist(finder, self.build_isolation)
     File "/usr/local/lib/python2.7/site-packages/pip/_internal/operations/prepare.py", line 169, in prep_for_dist
       self.install_backend_dependencies(finder=finder)
     File "/usr/local/lib/python2.7/site-packages/pip/_internal/operations/prepare.py", line 123, in install_backend_dependencies
       reqs = req.pep517_backend.get_requires_for_build_wheel()
     File "/usr/local/lib/python2.7/site-packages/pip/_vendor/pep517/wrappers.py", line 71, in get_requires_for_build_wheel
       'config_settings': config_settings
     File "/usr/local/lib/python2.7/site-packages/pip/_vendor/pep517/wrappers.py", line 162, in _call_hook
       raise BackendUnavailable
   BackendUnavailable
   WARNING: You are using pip version 19.1.1, however version 21.0.1 is available.
   You should consider upgrading via the 'pip install --upgrade pip' command.
   ----------------------------------------
 ERROR: Command "/usr/local/bin/python /usr/local/lib/python2.7/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-Bkv9yz/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.hexcloud.cn/hex/pypi -- 'setuptools>=40.6.0' wheel 'cffi>=1.12; platform_python_implementation != '"'"'PyPy'"'"'' 'setuptools-rust>=0.11.4'" failed with error code 2 in None
 WARNING: You are using pip version 19.1.1, however version 21.0.1 is available.
 You should consider upgrading via the 'pip install --upgrade pip' command.
 The command '/bin/sh -c pip install  -i https://pypi.hexcloud.cn/hex/pypi -r ./requirements.txt' returned a non-zero code: 1
Running after_script
00:00
Uploading artifacts for failed job
00:00
 ERROR: Job failed: exit status 1

对照之前正常的打包版本,对比每一个依赖的版本号是否正确,如果不正确,就在requirements文档中指定这个依赖的版本。
比如上面这个错误就是因为python2.7的版本中一个依赖自动升级导致的,问题链接:https://stackoverflow.com/questions/64635913/why-im-getting-this-error-while-building-docker-image

按照之前正常的打包版本中,找到为,所以在依赖中加入一下配置即可

cryptography==3.3.1

如有失效,请留言告知丨转载请注明原文链接:build_runtime出现错误,该怎么解决?
点赞 (0)

您必须 登录 才能发表评论!

(3)个小伙伴在吐槽
  1. qq018
    没办法
    2021-04-19 14:17
  2. huan506
    谢谢分享
    2021-04-04 10:35
  3. tompeng
    谢谢分享
    2021-03-19 14:50