oj login https://codeforces.comでエラーを吐いてしまう
yosupo06 opened this issue · 6 comments
yosupo06 commented
beet-aizu commented
せめてversionの情報くらいないとなにもわからなさそう
kmyk commented
#755 あたりの問題に巻き込まれている可能性があって、以下を試してみてもらってほしいです
$ pip3 install --force-reinstall --upgrade online-judge-tools
$ pip3 install --force-reinstall --upgrade online-judge-api-client
beet-aizu commented
issue番号が未来を指していそうです
maroon66 commented
kmyk commented
最新の online-judge-tools と online-judge-api-client と古い online-judge-tools の 3 つが同時にインストールされていてこれらが干渉し、古い online-judge-tools と online-judge-api-client のキメラが動いているように見えます。
以下を実行するとインストールされている oj
を全部消去できると思うので、これをやってからもう一度インストールしてみてほしいです。
$ pip3 uninstall online-judge-tools online-judge-api-client
$ pip3 uninstall online-judge-tools online-judge-api-client
$ sudo pip3 uninstall online-judge-tools online-judge-api-client
$ sudo pip3 uninstall online-judge-tools online-judge-api-client
$ rm "$(which oj)"
$ rm "$(which oj)"
$ rm -rf "$(python3 -c 'import pathlib, onlinejudge ; print(pathlib.Path(onlinejudge.__file__).parent)')"
$ rm -rf "$(python3 -c 'import pathlib, onlinejudge ; print(pathlib.Path(onlinejudge.__file__).parent)')"
maroon66 commented
うまく行きました,ありがとうございます