3
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

poetry lock, poetry install, poetry update が全然終わらなくなった

Posted at

結論

pyproject.tomlurllib3 = "<2" を追加することで解決した。

  [tool.poetry.dependencies]
  ...
+ urllib3 = "<2"  # 追加

解決するまでの道のり

  • つい最近 poetry lock をやると、 Resolving Dependencies... の状態が数十分経っても全然終わらなかった
    • poetry installpoetry update も同様の状況
  • poetry lock -vv で詳細なログを出力すると、以下のようなログが繰り返し出ていた
    • どうやら botocore に関連する依存関係の解決がうまくいっていない様子
   2: conflict: no versions of botocore match >1.29.135,<1.29.136
   2: ! botocore (>1.29.135,<1.29.136) is partially satisfied by not botocore (==1.29.135)
   2: ! which is caused by "botocore (1.29.135) depends on urllib3 (>=1.25.4,<1.27)"
   2: ! thus: botocore (>=1.29.135,<1.29.136) requires urllib3 (>=1.25.4,<1.27)

反省

  • 最初は -vv オプションに気づかず、ひたすらネットワークの不調を疑っていて時間が溶けてしまった
  • ログを見ることは大事
3
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
3
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?