-
Notifications
You must be signed in to change notification settings - Fork 1
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 shell unexpected behavior - spawning the "wrong" shell #12
Comments
This would happen to me too when using pyenv on windows. I think it is due to pyenv creating shims using .bat files which results with shell detection returning A quick way to test this would be to use shellingham to detect the shell using both |
Thanks @bmarroquin for the hints. It seems like this is the right direction. Although I'm not yet sure... Here's what I did: firstly, I added So, I guess you're pointing at the right direction. Unfortunately, I don't know how to proceed. How can I create an environment without |
Poetry will default to the system python (first one in path) when creating environments. If you want to pick a specific python version, you can use |
pip
and that could be the reason of my issue. However, due to certificates issue and Co, I was not able to installpoetry
using(Invoke-WebRequest -Uri https://install.python-poetry.org -UseBasicParsing).Content | python -
.-vvv
option) and have included the output below.Issue
When trying to activate the created environment using
poetry -vvv shell
I get:The problem is that I get a new type of shell which is not working as I expect. Consider the following screen shot:
As you can see, the new prompt is different than the one where I execute
poetry shell
. In turn, the new shell doesn't have many configurations that I'd have in the original shell (e.g. the nice-looking prompt).However, if I try to start the environment "directly":
I get the expected behavior as can be seen in the following image:
Why is this happening? What have I configured wrongly with Poetry?
The text was updated successfully, but these errors were encountered: