-
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
Cannot run under POSIX locale #1849
Comments
The source of the problem: poetry attempts to display the following:
However, clikit (cleo?) prints the character
...is this a bug in the clikit/cleo stuff? Additionally I found this character in |
Having a similar issue with UnicodeEncodeError. My issue: #1887 |
There have been a number of bugs logged related to this, e.g. #1427, #1887 and this one. So it seems it's not entirely uncommon for people to hit this issue. @abn closed #1427 explaining that this wasn't a Poetry issue but was a user issue, i.e. the user should understand what's gone wrong and know that they need to update their OK, fair enough the change needs to be made outside Poetry, but I think it wouldn't be unreasonable for Poetry to actively check for this issue and fail in a rather less obscure way. It's a little disconcerting as a first time user if the very first thing you try with Poetry fails like this:
I suggest at the very least that something like the following is added to the
Ideally, one would add more details about setting Or one could do what many packages do and actively fix the problem, e.g. with something like this (see
Note: in Python 3.7 they introduced |
I see various open issues related to poetry not properly parsing non-ascii names. I am not sure which one to report my error to... On my ubuntu 20.10, even with every locale set as UTF-8, I get issues with my name not being parsed properly. The value comes from
Oddly, typing it again on the terminal, poetry accepts it.
...later on I have other issues with virtualenvs, but that's a different topic, will report separately. |
seems to work fine today:
I guess this can be closed |
Indeed, the immediate reproduction no longer works and I think we should close this issue. I am aware of some more latent issues with locales under the surface, but we likely should track/fix those separately. |
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.
OS version and name: Ubuntu 18.04
Poetry version: 1.0.0
Issue
Running
poetry
under a POSIX locale will raise this error:locales:
Workaround: Set the locale to something else... Specifically for this image, the C.UTF-8 locale is available:
Only then, will poetry correctly display its menu.
The text was updated successfully, but these errors were encountered: