Skip to content
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

Getting locale error in Alpine docker container #53

Closed
ncoder-1 opened this issue Dec 27, 2017 · 4 comments
Closed

Getting locale error in Alpine docker container #53

ncoder-1 opened this issue Dec 27, 2017 · 4 comments

Comments

@ncoder-1
Copy link

Hi,

I am getting the following error running cryptop from within an alpine docker container (frolvlad/alpine-python3):

ValueError: Currency formatting is not possible using the 'C' locale.

I've tried to override the environment variables with en_US.UTF-8 but no luck.

@ghost
Copy link

ghost commented Dec 29, 2017

How does your .cryptop/config.ini look like?

Does it contain something like:

[locale]
monetary=de_CH.UTF-8

Also, double check what does locale command in your shell say:

 ~ locale
LANG=
LC_COLLATE="C"
LC_CTYPE="UTF-8"
LC_MESSAGES="C"
LC_MONETARY="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_ALL=

With these settings and version v0.2.0, cryptop works for me in bash.

If it still doesn't work, it must be something to do with Alpine's Almquist shell (also called ash).

@ncoder-1
Copy link
Author

locale doesn't exist in the alpine docker I have.

I've added my locale in monetary inside config.ini and no luck. Must be the lack of locale in Alpine.

@ghost
Copy link

ghost commented Dec 29, 2017

Perhaps this will help

@ncoder-1
Copy link
Author

It does, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant