Can't open RedNoteBook/Local settings issue

Asked by oto karnetchek

Hi,
I installed RNB on opensuse but can't get it starting. It's apparently due to local settings on opensuse tumbleweed. Never had this problem before.
Help would be very appreciated !
Thanks.

Here the output:

$ flatpak run app.rednotebook.RedNotebook
Adding /app/lib/python3.9/site-packages to sys.path
Traceback (most recent call last):
  File "/app/bin/rednotebook", line 6, in <module>
    import journal
ModuleNotFoundError: No module named 'journal'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/app/bin/rednotebook", line 12, in <module>
    import rednotebook.journal
  File "/app/lib/python3.9/site-packages/rednotebook/journal.py", line 100, in <module>
    elibintl.install(GETTEXT_DOMAIN, LOCALE_PATH, libintl=None)
  File "/app/lib/python3.9/site-packages/rednotebook/external/elibintl.py", line 472, in install
    _install(domain, localedir, True, libintl=libintl)
  File "/app/lib/python3.9/site-packages/rednotebook/external/elibintl.py", line 416, in _install
    locale.setlocale(locale.LC_ALL, '')
  File "/usr/lib/python3.9/locale.py", line 610, in setlocale
    return _setlocale(category, locale)
locale.Error: unsupported locale setting

Question information

Language:
English Edit question
Status:
Solved
For:
RedNotebook Edit question
Assignee:
No assignee Edit question
Solved by:
Jendrik Seipp
Solved:
Last query:
Last reply:
Revision history for this message
Jendrik Seipp (jendrikseipp) said :
#1

I recommend searching the internet for "fix locale settings opensuse tumbleweed".

Revision history for this message
oto karnetchek (ggge) said :
#2

Well, that doesn't really help...
What could be the "unsupported locale setting" in "locale.Error: unsupported locale setting" ?
Thank you.

Revision history for this message
Best Jendrik Seipp (jendrikseipp) said :
#3

It probably means that your system is set to a locale that it doesn't actually have. I think this question was asked earlier, but I can't find it now. I think there the solution was to change the locale.

Revision history for this message
oto karnetchek (ggge) said :
#4

Thank you Jendrik.
Yes the question was asked, but solutions obscure.
Don't know why changing locale didn't work for me (opensuse tumbleweed) and that's right that system and user languages were set differently (intentionally) but correcting that didn't work.
Had to reinstall everything. That show you how RDB is important to me :-) Thanks again for your work.
Install with Flatpak works great (important not to install as root!) and no more problem on opensuse TW when languages are set homogeneously.