LoginSignup
0
0

More than 1 year has passed since last update.

pip-compileでAssertionErrorを回避する(2022-01-31時点での一時しのぎ)

Posted at

pip-compileでAssertionErrorを回避する(2022-01-31時点での一時しのぎ)

背景

kedro使っていて、kedro build-reqsでライブラリの依存関係を解決しようとするとエラーが出た。
結構ハマったのでメモ

kedro build-reqsは内部的にpip compile(pip-tools)を使っているらしい。
調べてみると、pipのバグのようだった。

問題

2022-01-31現在、以下のようにpip-compileしようとすると、AssertionErrorが発生する模様。

$ pip-compile src/requirements.in

既知のバグらしく、現在対応中とのこと
https://github.com/jazzband/pip-tools/pull/1559

解決策

pipのバージョンを21系にダウングレードすれば大丈夫

$ pip install pip==21.3.1
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