LoginSignup
7
3

More than 3 years have passed since last update.

Poetryに`The _posixsubprocess module is not being used.`などと言われる

Posted at

解決したい問題

ubuntu18.04poetry をインストールして poetry --versionなどとした際に以下の警告が出る。

$ poetry --version
/home/r7/.poetry/lib/poetry/_vendor/py2.7/subprocess32.py:149: RuntimeWarning: The _posixsubprocess module is not being used. Child process reliability may suffer if your program uses threads.
  "program uses threads.", RuntimeWarning)

原因

どうやらpython2系を見に行ってしまっているらしい。
同様の問題が以下のISSUEで議論されていた。

解決策

以下のファイルの行頭にある #!/usr/bin/env python#!/usr/bin/env python3 に書き換えると直るらしい。

~/.poetry/bin/poetry

やってみたところ、直った。

~$ poetry --version
Poetry 0.12.17

あきらかに暫定的な対象方法だと思うので、今後ライブラリで対応されることを待ちたい。

7
3
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
7
3