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

git push による自動 verify 時に "Install dependencies" フェーズで失敗する #335

Closed
granddaifuku opened this issue Oct 15, 2020 · 2 comments
Labels
bug Something isn't working priority:high

Comments

@granddaifuku
Copy link
Contributor

Description

  • git push 時の Install dependencies フェーズで
    Error: Process completed with exit code 1.
    が出力され自動での verify が失敗します。

Error log

以下エラー部分のログです。

2020-10-15T11:00:03.7499384Z ##[group]Run pip3 install -U online-judge-verify-helper
2020-10-15T11:00:03.7500253Z �[36;1mpip3 install -U online-judge-verify-helper�[0m
2020-10-15T11:00:03.7546245Z shell: /bin/bash -e {0}
2020-10-15T11:00:03.7546573Z env:
2020-10-15T11:00:03.7547030Z   pythonLocation: /opt/hostedtoolcache/Python/3.9.0/x64
2020-10-15T11:00:03.7547507Z ##[endgroup]
2020-10-15T11:00:07.7720751Z Collecting online-judge-verify-helper
2020-10-15T11:00:07.8432638Z   Downloading online_judge_verify_helper-5.2.1-py3-none-any.whl (51 kB)
2020-10-15T11:00:07.8988774Z Collecting toml
2020-10-15T11:00:07.9126732Z   Downloading toml-0.10.1-py2.py3-none-any.whl (19 kB)
2020-10-15T11:00:07.9211130Z Requirement already satisfied, skipping upgrade: setuptools in /opt/hostedtoolcache/Python/3.9.0/x64/lib/python3.9/site-packages (from online-judge-verify-helper) (49.2.1)
2020-10-15T11:00:07.9949533Z Collecting importlab
2020-10-15T11:00:08.0090347Z   Downloading importlab-0.5.1.tar.gz (19 kB)
2020-10-15T11:00:09.2881071Z Collecting online-judge-tools>=8.0.0
2020-10-15T11:00:09.3026786Z   Downloading online_judge_tools-11.0.0-py3-none-any.whl (42 kB)
2020-10-15T11:00:09.3680005Z Collecting colorlog
2020-10-15T11:00:09.3825552Z   Downloading colorlog-4.4.0-py2.py3-none-any.whl (14 kB)
2020-10-15T11:00:09.4590261Z Collecting pyyaml
2020-10-15T11:00:09.4761966Z   Downloading PyYAML-5.3.1.tar.gz (269 kB)
2020-10-15T11:00:10.5853238Z Collecting networkx
2020-10-15T11:00:10.5856309Z   Downloading networkx-2.5-py3-none-any.whl (1.6 MB)
2020-10-15T11:00:10.5881615Z Collecting six
2020-10-15T11:00:10.5882937Z   Downloading six-1.15.0-py2.py3-none-any.whl (10 kB)
2020-10-15T11:00:10.5883602Z Collecting requests<3,>=2
2020-10-15T11:00:10.5884499Z   Downloading requests-2.24.0-py2.py3-none-any.whl (61 kB)
2020-10-15T11:00:10.5885203Z Collecting colorama<1,>=0.3
2020-10-15T11:00:10.5886079Z   Downloading colorama-0.4.4-py2.py3-none-any.whl (16 kB)
2020-10-15T11:00:10.5886995Z Collecting diff-match-patch>=20181111
2020-10-15T11:00:10.5887919Z   Downloading diff_match_patch-20200713-py3-none-any.whl (61 kB)
2020-10-15T11:00:10.5888924Z Collecting online-judge-api-client<11,>=10.3.0
2020-10-15T11:00:10.5889967Z   Downloading online_judge_api_client-10.5.0-py3-none-any.whl (168 kB)
2020-10-15T11:00:10.5890734Z Collecting decorator>=4.3.0
2020-10-15T11:00:10.5891728Z   Downloading decorator-4.4.2-py2.py3-none-any.whl (9.2 kB)
2020-10-15T11:00:10.5892378Z Collecting certifi>=2017.4.17
2020-10-15T11:00:10.5893177Z   Downloading certifi-2020.6.20-py2.py3-none-any.whl (156 kB)
2020-10-15T11:00:10.5893790Z Collecting idna<3,>=2.5
2020-10-15T11:00:10.5894484Z   Downloading idna-2.10-py2.py3-none-any.whl (58 kB)
2020-10-15T11:00:10.6486932Z Collecting urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1
2020-10-15T11:00:10.6624168Z   Downloading urllib3-1.25.10-py2.py3-none-any.whl (127 kB)
2020-10-15T11:00:10.7001347Z Collecting chardet<4,>=3.0.2
2020-10-15T11:00:10.7141928Z   Downloading chardet-3.0.4-py2.py3-none-any.whl (133 kB)
2020-10-15T11:00:10.7511940Z Collecting jsonschema>=3.2
2020-10-15T11:00:10.7649373Z   Downloading jsonschema-3.2.0-py2.py3-none-any.whl (56 kB)
2020-10-15T11:00:10.8038479Z Collecting appdirs>=1
2020-10-15T11:00:10.8246156Z   Downloading appdirs-1.4.4-py2.py3-none-any.whl (9.6 kB)
2020-10-15T11:00:10.8663163Z Collecting beautifulsoup4>=4
2020-10-15T11:00:10.8832552Z   Downloading beautifulsoup4-4.9.3-py3-none-any.whl (115 kB)
2020-10-15T11:00:11.2103200Z Collecting lxml>=4
2020-10-15T11:00:11.2293442Z   Downloading lxml-4.5.2.tar.gz (4.5 MB)
2020-10-15T11:00:12.1620854Z     ERROR: Command errored out with exit status 1:
2020-10-15T11:00:12.1624022Z      command: /opt/hostedtoolcache/Python/3.9.0/x64/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-rtuc94_o/lxml/setup.py'"'"'; __file__='"'"'/tmp/pip-install-rtuc94_o/lxml/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-fc6imh2g
2020-10-15T11:00:12.1630748Z          cwd: /tmp/pip-install-rtuc94_o/lxml/
2020-10-15T11:00:12.1631987Z     Complete output (3 lines):
2020-10-15T11:00:12.1632719Z     Building lxml version 4.5.2.
2020-10-15T11:00:12.1633448Z     Building without Cython.
2020-10-15T11:00:12.1634239Z     Error: Please make sure the libxml2 and libxslt development packages are installed.
2020-10-15T11:00:12.1635249Z     ----------------------------------------
2020-10-15T11:00:12.1636287Z ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
2020-10-15T11:00:12.3874329Z ##[error]Process completed with exit code 1.

Other notes

また、手元の別 PC にて pip3 install -U online-judge-verify-helper を実行しましたが問題なくインストールされました。

インストールが成功した環境

  • Mac OS Catalina 10.15.6
  • pip version 20.2.3
  • Python 3.8.5
@kmyk kmyk added bug Something isn't working priority:high labels Oct 15, 2020
@kmyk
Copy link
Member

kmyk commented Oct 15, 2020

lxml のバグ (https://bugs.launchpad.net/lxml/+bug/1899830) が原因のようです。
このバグは 16 時間前に報告されたもののようであり、おそらくすぐ直ると思うので、しばらく様子見したい。
いますぐ修正したい場合は .github/workflows/verify.yml の中の https://github.com/actions/setup-python で Python 3.8 を使うよう明示的に指定してください。


実行結果 (https://github.com/granddaifuku/library/runs/1258632370) を見る限り以下のように Python 3.9.0 が使われています。

Run actions/setup-python@v1
with:
python-version: 3.x
architecture: x64
Successfully setup CPython (3.9.0)

GitHub Actions の気分によっては Python 3.8.6 が使われる場合もある (なぜ?) ようで、その場合は成功します (https://github.com/kmyk/competitive-programming-library/runs/1258799588)

@kmyk
Copy link
Member

kmyk commented Oct 23, 2020

lxml の bug は Fix Released らしいのでおそらくもう解決されてる

@kmyk kmyk closed this as completed Oct 23, 2020
@kmyk kmyk unpinned this issue Nov 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working priority:high
Projects
None yet
Development

No branches or pull requests

2 participants