python-poetry / poetry

Python packaging and dependency management made easy
https://python-poetry.org
MIT License
31.11k stars 2.25k forks source link

Poetry creates multiple environments on the same computer, same path #4650

Closed eblis closed 2 years ago

eblis commented 2 years ago

Poetry env info

poetry env info

Virtualenv
Python:         3.9.6
Implementation: CPython
Path:           C:\Users\f4gwhkr\AppData\Local\pypoetry\Cache\virtualenvs\dtt-xc0anUwY-py3.9
Valid:          True

System
Platform: win32
OS:       nt
Python:   c:\program files\python39

Issue

Poetry re-creates my environment and I'm not sure why it does this. I have 2 separate folders with the "DTT" environment, although the project is on the same folder on the machine. I did change git branches at one point, but that shouldn't create a new environment. image

I'm not sure if it's related, but I need to delete the cache directory "artifacts", i have the bug where the path is wrong and Poetry fails to find any cached library.

finswimmer commented 2 years ago

Hello @eblis,

could it be something like this: https://github.com/python-poetry/poetry/issues/2419 ?

fin swimmer

eblis commented 2 years ago

I think it's similar, but if I understand the other issue correctly you have to change the case of the folder for it to happen, in my case I haven't changed anything

eblis commented 2 years ago

Hmm, could it be generated somehow by the Poetry plugin for PyCharm ?

eblis commented 2 years ago

I think the culprit is Poetry plugin for PyCharm, I have deleted the other folder and it re-appears when the plugin runs its commands in the backround.

github-actions[bot] commented 6 months ago

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.