Python scikitimage请求Travis CI Python 2.7构建失败

2024-06-09 21:54:57 发布

您现在位置:Python中文网/ 问答频道 /正文

我试图提交pull request,但是Travisbuild在python2.7下失败了:

Install optional dependencies +[[ 2.7 != 3.2* ]]
+pip install --retries 3 -q -r ./optional_requirements.txt --no-index -- trusted-host travis-wheels.scikit-image.org --find-links=http://travis-wheels.scikit-image.org/
+[[ 2.7 == 2.7* ]]
+LIBS=(PyQt4 sip.so)
+VAR=($(which -a python$PY))
++which -a python2.7
+GET_PYTHON_LIB_CMD='from distutils.sysconfig import get_python_lib; print (get_python_lib())'
++python -c 'from distutils.sysconfig import get_python_lib; print (get_python_lib())'
+LIB_VIRTUALENV_PATH=/home/travis/venv/lib/python2.7/site-packages
++/usr/bin/python2.7 -c 'from distutils.sysconfig import get_python_lib; print (get_python_lib())'
+LIB_SYSTEM_PATH=/usr/lib/python2.7/dist-packages
+for LIB in '${LIBS[@]}'
+ln -sf /usr/lib/python2.7/dist-packages/PyQt4 /home/travis/venv/lib/python2.7/site-packages/PyQt4
+for LIB in '${LIBS[@]}'
+ln -sf /usr/lib/python2.7/dist-packages/sip.so /home/travis/venv/lib/python2.7/site-packages/sip.so
+[[ 2.7 == 2.* ]]
+pip install --retries 3 -q pyamg
Command "/home/travis/venv/bin/python -c "import setuptools, tokenize;file='/tmp/pip-build-RPE1oa/pyamg/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-VfR9HT-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/travis/venv/include/site/python2.7/pyamg" failed with error code 1 in /tmp/pip-build-RPE1oa/pyamg

我几乎什么都试过了,但还是不能通过考试。在

如果您能帮助我编写代码或理解构建失败的原因,我将不胜感激,因为我不知道为什么会发生这种情况。我甚至试着替换换行符,但没用


Tags: installpipimporttravishomegetvenvlib
1条回答
网友
1楼 · 发布于 2024-06-09 21:54:57

这不是拉请求的问题,而是这个项目和pyamg的一般问题。请看latest builds:它们都因同一问题而失败。在

第一个出现此错误的failing build是19天前。如您所见,install脚本没有指定pyamg的版本:

pip install  retries 3 -q pyamg

以及pyamg包的was bumped版本,26天前从2.2.x到2.3.x14天前从2.x到3.x。在

相关问题 更多 >