-
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
zsh: poetry shell
doesn't work if space character in .venv path
#7244
Comments
fix zsh: poetry shell doesn't work if space character in .venv path python-poetry#7244
i have the same problem.. |
Bumping as I have the same issue, I was able to manually resolve by passing the same argument as the expected outcome to get the shell to activate in my project. |
Running into the same issue. Manually resolving by escaping the spaces doesn't work for me either. What does work is simply activating the venv like you normally would with:
I installed Poetry with pipx and am using Oh My Zsh. Have carefully followed the instructions, including executing the following in terminal:
And adding the poetry plugin to the |
It appears like there is a pull request to fix this from a year ago but it hasn't been accepted (looks like there was a timeout on a test). In the meantime I just added:
to my .zshrc and use that instead of |
Thanks for the hint. The PR looks good to me. |
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
If there is a space in the path to the virtual environment (e.g. when using
virtualenvs.in-project=true
) thepoetry shell
command is not executed as expected, because theshlex.quote
function wraps that path in single quotes, and when running inzsh
, that wrapped path is wrapped in quotes again.executed:
expected:
The text was updated successfully, but these errors were encountered: