-
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
utils.env._full_python_path output encoding on Windows #7313
Comments
Path encoding is also a problem for
If I patch
|
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
I want to use poetry along with pyenv-win.
When I set
prefer-active-python = true
and callpoetry install
I get "Command cannot be found" error:Username in the output has broken encoding (Àíäðåé instead of Андрей). I've found out that poetry tries to get current interpreter using
utils.env._full_python_path
function which returns broken path in my case.I've found two possible solutions:
universal_newlines=True
/text=True
tosubprocess.check_output
call. That fixes only paths which can be encoded with local encoding - cp1251.The text was updated successfully, but these errors were encountered: