Python-poetry error: Setting settings.virtualenvs.in-project does not exist
Full error message
I am setting poetry to create virtual environments in the project directory.
I entered:
poetry config settings.virtualenvs.in-project true
and received error
[ValueError]
Setting settings.virtualenvs.in-project does not exist
Also there is the text
home/alex/.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)
How can I solve the error?
It seems that error deals with version of the python.
I am using Ubuntu 16.04 version
Poetry version 1.0.5Solutionsource: stackoverflow \u2197
The config has changed with the release of poetry 1.0. The prefix settings is no longer needed. So just type poetry config virtualenvs.in-project true. Concerning the subprocess warning: This seems to be just a warning and has no influence on the correct working of poetry. Also have a look at my comment in poetry's issue tracker. @ptd: poetry can work with python2 and python3.
API access
Get this solution programmatically \u2014 free, no authentication.
curl https://depscope.dev/api/error/f8c978497e93b561d1ed310e8dee489717fba79e6c75da463ae8aa5b002777c6hash \u00b7 f8c978497e93b561d1ed310e8dee489717fba79e6c75da463ae8aa5b002777c6