Poetryに`The _posixsubprocess module is not being used.`などと言われる
1500 ワード
解決したい問題
ubuntu18.04
に poetry
をインストールして 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
あきらかに暫定的な対象方法だと思うので、今後ライブラリで対応されることを待ちたい。
Author And Source
この問題について(Poetryに`The _posixsubprocess module is not being used.`などと言われる), 我々は、より多くの情報をここで見つけました https://qiita.com/sabaku20XX/items/74b45857351bfaf0f227著者帰属:元の著者の情報は、元のURLに含まれています。著作権は原作者に属する。
Content is automatically searched and collected through network algorithms . If there is a violation . Please contact us . We will adjust (correct author information ,or delete content ) as soon as possible .