Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Python-poetry error: Setting settings.virtualenvs.in-project does not exist

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.5

like image 632
mascai Avatar asked May 26 '20 18:05

mascai


Video Answer


1 Answers

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.

like image 153
finswimmer Avatar answered Sep 19 '22 23:09

finswimmer