-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
poetry env info has wrong virtualenv info #6893
Comments
Same, this happens when .venv is removed from my project, resulting in NA in virtualenv info and poetry install will fail with Python not found. (Ubuntu) I believe this problem is caused by the option |
I just want to add to this issue that suddenly poetry has found the right virtualenv but it has decided that all my poetry environments now direct to this sample environment 😂 I have no idea how but this is the output of Virtualenv
Python: 3.10.3
Implementation: CPython
Path: /Users/adammarples/Library/Caches/pypoetry/virtualenvs/sample-vPyTu8GS-py3.10
Executable: /Users/adammarples/Library/Caches/pypoetry/virtualenvs/sample-vPyTu8GS-py3.10/bin/python
Valid: True
System
Platform: darwin
OS: posix
Python: 3.10.3
Path: /Users/adammarples/.asdf/installs/python/3.10.3
Executable: /Users/adammarples/.asdf/installs/python/3.10.3/bin/python3.10 I'm assuming that this is the result of |
I have the same issue (see discussion #6978). I've found it works provided the currently active python matches the python used to install poetry. |
Thank you @finswimmer ! |
I just encountered this with a new project and after a bit of investigation, it turned out that vscode automatically activated a venv from another project and didn't provide any indication in the console. So when I ran poetry it was running in the wrong context. By deactivating the env that vscode activated poetry worked fine again. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
-vvv
option) and have included the output below.Issue
Creating a fresh poetry environment, the info returned by
poetry env info
does not match the virtualenv created2.5 make sure prefer-active-python is set to true
The text was updated successfully, but these errors were encountered: