-
-
Notifications
You must be signed in to change notification settings - Fork 14
Unable to create venv via plugin. #155
Comments
@sapiosexual Would you please try installing poetry with pipx? https://python-poetry.org/docs/#installing-with-pipx If some users are confused by this behavior of poetry with pyhton2.7, then I implement fallback action on the plugin to execute python3.x. |
@koxudaxi |
It's great.
The poetry script is specified the python path in the first line. |
The |
@abn This plugin calls poetry from a new process. $ head -n 1 `which poetry`
#!/usr/bin/env python A lot of systems will get python2.7 from this shebang. I found a workaround that we use pipx to install poetry. But, I think a lot of users don't choose this way.
PRO: PRO: CON: How do you think about this problem? |
@koxudaxi but as far as I understand pycharm plugin offers to select base interpreter. Moreover, I think plugin should detect poetry version and show a warning in case user picks python base interpreter that is incompatible with poetry version. |
@sapiosexual
In some cases, the plugin has already detected the base interpreter.
I think this problem is on the poetry side. |
Describe the bug
I am trying to create new venv via poetry and getting this error
I am perfectly sure I have installed poetry for python3. I am using Python3.8 as base interpreter. I am able to create new venv using terminal.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Brand new venv with installed dependencies.
Environments (please complete the following information):
Build #PY-203.5981.165, built on December 18, 2020
Runtime version: 11.0.9+11-b1145.21 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Linux 5.4.0-58-generic
The text was updated successfully, but these errors were encountered: