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

Locale error #994

Open
allenerenee opened this issue Jun 16, 2020 · 4 comments · May be fixed by #1022
Open

Locale error #994

allenerenee opened this issue Jun 16, 2020 · 4 comments · May be fixed by #1022

Comments

@allenerenee
Copy link

I've been running Gourmet on Linux Mint 18.3 for more than a year now. After the update that dropped yesterday, though, I'm suddenly getting the following error when I try to start the program:
(process:9260): Gtk-WARNING **: Locale not supported by C library. Using the fallback 'C' locale. Traceback (most recent call last): File "/usr/bin/gourmet", line 16, in <module> from gourmet import GourmetRecipeManager File "/usr/lib/python2.7/dist-packages/gourmet/__init__.py", line 5, in <module> import gglobals File "/usr/lib/python2.7/dist-packages/gourmet/gglobals.py", line 3, in <module> from gdebug import debug File "/usr/lib/python2.7/dist-packages/gourmet/gdebug.py", line 1, in <module> from OptionParser import args File "/usr/lib/python2.7/dist-packages/gourmet/OptionParser.py", line 2, in <module> import version File "/usr/lib/python2.7/dist-packages/gourmet/version.py", line 7, in <module> elib.intl.install('gourmet', settings.locale_base) File "/usr/lib/python2.7/dist-packages/elib/intl/__init__.py", line 472, in install _install(domain, localedir, True) File "/usr/lib/python2.7/dist-packages/elib/intl/__init__.py", line 416, in _install locale.setlocale(locale.LC_ALL, '') File "/usr/lib/python2.7/locale.py", line 581, in setlocale return _setlocale(category, locale) locale.Error: unsupported locale setting

Running export LC_ALL=C in the terminal first fixes it for that instance, but does not persist after closing the program.

@cydanil
Copy link
Contributor

cydanil commented Jun 19, 2020

I gather that the update you're talking about is regarding Linux mint 20?

@allenerenee
Copy link
Author

allenerenee commented Jun 19, 2020 via email

@cydanil
Copy link
Contributor

cydanil commented Jun 24, 2020

Thanks, I cannot tell what's happening at the level of Linux Mint and your environment (ie. which locale is set), and I could not reproduce it out of the box.
However, with the error message that you provided, we'll be able to handle the error smoothly in the next version of Gourmet.

For the time being, I can only suggest that you set a locale prior launching the application, as you've been doing so far.

Thanks!

@cydanil
Copy link
Contributor

cydanil commented Oct 28, 2020

This issue is now resolved since we've updated internationalization handling in #1013

@cydanil cydanil linked a pull request Jul 1, 2021 that will close this issue
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

Successfully merging a pull request may close this issue.

2 participants