-
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 remove with virtualenvs.in-project = true #2124
Comments
Found the same bug on macos:
|
Same issue with a more relative command $ poetry env remove .venv/bin/python The current hotfix is to just remove In addition, requesting more simple relative remove command $ poetry env remove . |
Also encountered the same bug on macOS 11:
|
Is this issue is still active? I found the same problem on macOS 11.6 Big Sur with Python 3.9 and poetry version 1.1.12: $ poetry env remove .venv
/bin/sh: .venv: command not found
EnvCommandError
Command .venv -c "import sys; print('.'.join([str(s) for s in sys.version_info[:3]]))" errored with the following return code 127, and output:
at ~/Library/Application Support/pypoetry/venv/lib/python3.9/site-packages/poetry/utils/env.py:625 in remove
621│ shell=True,
622│ )
623│ )
624│ except CalledProcessError as e:
→ 625│ raise EnvCommandError(e)
626│
627│ python_version = Version.parse(python_version.strip())
628│ minor = "{}.{}".format(python_version.major, python_version.minor)
629│
|
Have the exact same problem on Ubuntu with two env with similar python version but different locations. Just removed |
Same issue - can't find a way to use Getting errors like:
|
Same issue (Ubuntu 22.04). Interestingly, if the only virtual environment you have is a local poetry env remove --all |
Same behavior also on Windows 10 (not mentioned by anyone before). I confirm that the workaround proposed by @geozeke works fine. |
I just came across the same problem. Using Poetry (version 1.2.2) |
Latest version is 1.3.2. Did you try with that one ? |
Yes. The error I got:
|
This issue still persists in |
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. |
I am on the latest Poetry version.
I have searched the issues of this repo and believe that this is not a duplicate.
If an exception occurs when executing a command, I executed it again in debug mode (
-vvv
option).OS version and name: 18.04.3 LTS (Bionic Beaver)
Poetry version: Poetry version 1.0.5
Link of a Gist with the contents of your pyproject.toml file: https://gist.github.com/fgervais/5a33d9df4cca064f02ce7fa6136c7e5e
Issue
I think
poetry env remove
fails whenvirtualenvs.in-project = true
The text was updated successfully, but these errors were encountered: