LoginSignup
0
0

atcoder-cli で提出時に Matched languages were not narrowed down to one. が起きた際の暫定対応

Posted at

環境

Mac, zsh, atcoder-cli インストール済み。

> acc config

oj-path: /usr/local/bin/oj
default-contest-dirname-format: {ContestID}
default-task-dirname-format: {tasklabel}
default-test-dirname-format: test
default-task-choice: all
default-template: py

エラー

atcoder-cli でacc sを行いPythonのプログラムを提出しようとした際に以下のエラーが発生。

...

[INFO] PyPy is available for Python interpreter
[ERROR] Matched languages were not narrowed down to one.
[INFO] You have to choose:
5055 (Python (CPython 3.11.4))
5063 (Python (Mambaforge / CPython 3.10.10))
5082 (Python (Cython 0.29.34))
[INFO] save cookie to: /Users/***/Library/Application Support/online-judge-tools/cookie.jar

暫定対応

PyPyの番号が5078なので~/.zshrcに以下のエイリアスを追加。

alias accs='acc s -- main.py --language 5078'

accsで提出できるようになった。

参考

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0