bug#24192: Gajim fails with locale.Error
I'm closing this issue since it is not relevant anymore. Gajim is now version 1.0.3, as opposed to 0.16.5 when this issue was reported. At least as far as I can tell, this locale issue does not seem to exist anymore.
bug#24192: Gajim fails with locale.Error
Leo Famulariskribis: > On Tue, Aug 09, 2016 at 10:56:53AM +0530, Arun Isaac wrote: [...] >> File >> "/gnu/store/6bk1n2g7i34b4yi0rdindk1f49wps5g6-gajim-0.16.5/share/gajim/src/common/i18n.py", >> line 54, in >> locale.setlocale(locale.LC_ALL, '') >> File >> "/gnu/store/vcx1n5nj4gr52xx5m6gvi7zrwngy06s3-python-2.7.11/lib/python2.7/locale.py", >> line 579, in setlocale >> return _setlocale(category, locale) >> locale.Error: unsupported locale setting Daniel Pimentel skribis: > I have a similar problem with locale in Haunt package: > > Backtrace: > In ice-9/boot-9.scm: > 157: 10 [catch #t # ...] > In unknown file: >?: 9 [apply-smob/1 #] > In ice-9/boot-9.scm: > 63: 8 [call-with-prompt prompt0 ...] > In ice-9/eval.scm: > 432: 7 [eval # #] > In ice-9/boot-9.scm: > 2401: 6 [save-module-excursion # ice-9/boot-9.scm:4045:3 ()>] > 4050: 5 [#] > 1724: 4 [%start-stack load-stack ...] > 1729: 3 [#] > In unknown file: >?: 2 [primitive-load > "/gnu/store/v6gq48wbxprf3sbrxdkc9scb80nyypjs-haunt-0.2/bin/.haunt-real"] > In haunt/ui.scm: > 130: 1 [haunt-main > "/gnu/store/v6gq48wbxprf3sbrxdkc9scb80nyypjs-haunt-0.2/bin/.haunt-real" > ...] > In unknown file: >?: 0 [setlocale 6 ""] > > ERROR: In procedure setlocale: > ERROR: In procedure setlocale: Invalid argument Of course there’s a locale setting issue here, as people pointed out, but I also think that Gajim and Haunt shouldn’t fail like this when they fail to install the locale (‘guix’ prints a warning when that happens, other programs silently ignore the problem.) Ludo’.
bug#24192: Gajim fails with locale.Error
On Fri, Aug 12, 2016 at 09:19:23AM +0200, Vincent Legoll wrote: > >>> Isn't there a more automated way to handle these environment variables? > >> > >> I don't think so: if you are not on GuixSD, you have to set these > >> variables yourself. > > > > Actually, I am on GuixSD. Does that mean there is some automated to do > > this? If I have to set them manually, how do I find out what values to > > set? > > I too, am on guixsd, and I think setting some of those variables by myself > solved a problem running things, but I may misremember... > > So is this actually needed on guixsd or not ? Is there a bug somewhere > making it required when it should not ? How can we be sure, how can we > know which variables should be set ? Regarding GUIX_LOCPATH, there is a bug with our current glibc/linux package and how it finds locales, mentioned here: http://lists.gnu.org/archive/html/guix-devel/2016-08/msg00165.html
bug#24192: Gajim fails with locale.Error
> It is better to use "~/.guix-profile/..." links (or whatever profile it > is) instead of the direct file names from the store, as they may be > "gc"-ed one day. Yeah, sure. I'll do that. >> Isn't there a more automated way to handle these environment variables? > > I don't think so: if you are not on GuixSD, you have to set these > variables yourself. Actually, I am on GuixSD. Does that mean there is some automated to do this? If I have to set them manually, how do I find out what values to set?
bug#24192: Gajim fails with locale.Error
Arun Isaac (2016-08-10 12:53 +0300) wrote: > I was using en_IN.UTF-8. > > After switching to en_US.UTF-8 and setting GUIX_LOCPATH and > XDG_DATA_DIRS with > > export > GUIX_LOCPATH="/gnu/store/rvc5iqmqwhhmj2mcip4x1y9g8chrlxs8-profile/lib/locale${GUIX_LOCPATH:+:}$GUIX_LOCPATH" > export > XDG_DATA_DIRS="/gnu/store/rvc5iqmqwhhmj2mcip4x1y9g8chrlxs8-profile/share${XDG_DATA_DIRS:+:}$XDG_DATA_DIRS" It is better to use "~/.guix-profile/..." links (or whatever profile it is) instead of the direct file names from the store, as they may be "gc"-ed one day. > gajim runs successfully. > > Isn't there a more automated way to handle these environment variables? I don't think so: if you are not on GuixSD, you have to set these variables yourself. -- Alex
bug#24192: Gajim fails with locale.Error
Cc-ing David Thompson (the author of haunt). Daniel Pimentel (2016-08-09 20:28 +0300) wrote: > I have a similar problem with locale in Haunt package: > > Backtrace: > In ice-9/boot-9.scm: > 157: 10 [catch #t # ...] > In unknown file: >?: 9 [apply-smob/1 #] > In ice-9/boot-9.scm: > 63: 8 [call-with-prompt prompt0 ...] > In ice-9/eval.scm: > 432: 7 [eval # #] > In ice-9/boot-9.scm: > 2401: 6 [save-module-excursion # ice-9/boot-9.scm:4045:3 ()>] > 4050: 5 [#] > 1724: 4 [%start-stack load-stack ...] > 1729: 3 [#] > In unknown file: >?: 2 [primitive-load > "/gnu/store/v6gq48wbxprf3sbrxdkc9scb80nyypjs-haunt-0.2/bin/.haunt-real"] > In haunt/ui.scm: > 130: 1 [haunt-main > "/gnu/store/v6gq48wbxprf3sbrxdkc9scb80nyypjs-haunt-0.2/bin/.haunt-real" > ...] > In unknown file: >?: 0 [setlocale 6 ""] > > ERROR: In procedure setlocale: > ERROR: In procedure setlocale: Invalid argument I don't have this problem when GUIX_LOCPATH is set properly (on GuixSD it is "/run/current-system/locale"). Hi David, I think it would be good if haunt just displayed a warning instead of failing like this, so instead of calling 'setlocale' directly in 'haunt-main', you can catch a potential error as it is done in Guix: look at 'install-locale' procedure in (guix ui) module. -- Alex
bug#24192: Gajim fails with locale.Error
Daniel Pimentelwrites: > I have a similar problem with locale in Haunt package: > > Backtrace: > In ice-9/boot-9.scm: > 157: 10 [catch #t # ...] > In unknown file: > ?: 9 [apply-smob/1 #] > In ice-9/boot-9.scm: >63: 8 [call-with-prompt prompt0 ...] > In ice-9/eval.scm: > 432: 7 [eval # #] > In ice-9/boot-9.scm: > 2401: 6 [save-module-excursion # ice-9/boot-9.scm:4045:3 ()>] > 4050: 5 [#] > 1724: 4 [%start-stack load-stack ...] > 1729: 3 [#] > In unknown file: > ?: 2 [primitive-load > "/gnu/store/v6gq48wbxprf3sbrxdkc9scb80nyypjs-haunt-0.2/bin/.haunt-real"] > In haunt/ui.scm: > 130: 1 [haunt-main > "/gnu/store/v6gq48wbxprf3sbrxdkc9scb80nyypjs-haunt-0.2/bin/.haunt-real" > ...] > In unknown file: > ?: 0 [setlocale 6 ""] > > ERROR: In procedure setlocale: > ERROR: In procedure setlocale: Invalid argument > >> I believe it's related to this locale-related issue problem with our >> glibc package: >> >> http://lists.gnu.org/archive/html/guix-devel/2016-08/msg00167.html > > I think or with locale in general. What is your locale? I had the same problem with Gajim on a foreign system on which I had set up “en_GB.utf8”. After switching to “en_US.utf8” I could start Gajim. Another possible fix may have been to install the “glibc-locales” package and set GUIX_LOCPATH as “glibc-utf8-locales” only contains a narrow subset of all possible locales. ~~ Ricardo
bug#24192: Gajim fails with locale.Error
I have a similar problem with locale in Haunt package: Backtrace: In ice-9/boot-9.scm: 157: 10 [catch #t # ...] In unknown file: ?: 9 [apply-smob/1 #] In ice-9/boot-9.scm: 63: 8 [call-with-prompt prompt0 ...] In ice-9/eval.scm: 432: 7 [eval # #] In ice-9/boot-9.scm: 2401: 6 [save-module-excursion #ice-9/boot-9.scm:4045:3 ()>] 4050: 5 [#] 1724: 4 [%start-stack load-stack ...] 1729: 3 [#] In unknown file: ?: 2 [primitive-load "/gnu/store/v6gq48wbxprf3sbrxdkc9scb80nyypjs-haunt-0.2/bin/.haunt-real"] In haunt/ui.scm: 130: 1 [haunt-main "/gnu/store/v6gq48wbxprf3sbrxdkc9scb80nyypjs-haunt-0.2/bin/.haunt-real" ...] In unknown file: ?: 0 [setlocale 6 ""] ERROR: In procedure setlocale: ERROR: In procedure setlocale: Invalid argument I believe it's related to this locale-related issue problem with our glibc package: http://lists.gnu.org/archive/html/guix-devel/2016-08/msg00167.html I think or with locale in general. Thanks, -- Daniel Pimentel (aka d4n1)
bug#24192: Gajim fails with locale.Error
On Tue, Aug 09, 2016 at 10:56:53AM +0530, Arun Isaac wrote: > > I installed gajim with `guix package -i gajim`. When I try to run it, it > fails with the following error message: > > /gnu/store/ykzwykkvr2c80rw4l1qh3mvfdkl7jibi-bash-4.3.42/bin/sh: hg: command > not found > Traceback (most recent call last): > File "gajim.py", line 131, in > logging_helpers.init(sys.stderr.isatty()) > File > "/gnu/store/6bk1n2g7i34b4yi0rdindk1f49wps5g6-gajim-0.16.5/share/gajim/src/common/demandimport.py", > line 86, in __getattribute__ > self._load() > File > "/gnu/store/6bk1n2g7i34b4yi0rdindk1f49wps5g6-gajim-0.16.5/share/gajim/src/common/demandimport.py", > line 58, in _load > mod = _origimport(head, globals, locals) > File > "/gnu/store/6bk1n2g7i34b4yi0rdindk1f49wps5g6-gajim-0.16.5/share/gajim/src/common/logging_helpers.py", > line 22, in > import i18n > File > "/gnu/store/6bk1n2g7i34b4yi0rdindk1f49wps5g6-gajim-0.16.5/share/gajim/src/common/demandimport.py", > line 95, in _demandimport > return _import(name, globals, locals, fromlist, level) > File > "/gnu/store/6bk1n2g7i34b4yi0rdindk1f49wps5g6-gajim-0.16.5/share/gajim/src/common/i18n.py", > line 54, in > locale.setlocale(locale.LC_ALL, '') > File > "/gnu/store/vcx1n5nj4gr52xx5m6gvi7zrwngy06s3-python-2.7.11/lib/python2.7/locale.py", > line 579, in setlocale > return _setlocale(category, locale) > locale.Error: unsupported locale setting > > I have set my locale in my operating system configuration as shown in > the example configuration in the manual. Is there anything else to be > done that I am missing? Could this be a bug in the gajim package? I believe it's related to this locale-related issue problem with our glibc package: http://lists.gnu.org/archive/html/guix-devel/2016-08/msg00167.html signature.asc Description: PGP signature
bug#24192: Gajim fails with locale.Error
> File > "/gnu/store/6bk1n2g7i34b4yi0rdindk1f49wps5g6-gajim-0.16.5/share/gajim/src/common/i18n.py", > line 54, in > locale.setlocale(locale.LC_ALL, '') > File > "/gnu/store/vcx1n5nj4gr52xx5m6gvi7zrwngy06s3-python-2.7.11/lib/python2.7/locale.py", > line 579, in setlocale > return _setlocale(category, locale) > locale.Error: unsupported locale setting > > I have set my locale in my operating system configuration as shown in > the example configuration in the manual. Is there anything else to be > done that I am missing? >Could this be a bug in the gajim package? I don't think so. It's probably glibc configuration. Try $ locale -a to get a list of supported locales. Which locale is it?
bug#24192: Gajim fails with locale.Error
I installed gajim with `guix package -i gajim`. When I try to run it, it fails with the following error message: /gnu/store/ykzwykkvr2c80rw4l1qh3mvfdkl7jibi-bash-4.3.42/bin/sh: hg: command not found Traceback (most recent call last): File "gajim.py", line 131, in logging_helpers.init(sys.stderr.isatty()) File "/gnu/store/6bk1n2g7i34b4yi0rdindk1f49wps5g6-gajim-0.16.5/share/gajim/src/common/demandimport.py", line 86, in __getattribute__ self._load() File "/gnu/store/6bk1n2g7i34b4yi0rdindk1f49wps5g6-gajim-0.16.5/share/gajim/src/common/demandimport.py", line 58, in _load mod = _origimport(head, globals, locals) File "/gnu/store/6bk1n2g7i34b4yi0rdindk1f49wps5g6-gajim-0.16.5/share/gajim/src/common/logging_helpers.py", line 22, in import i18n File "/gnu/store/6bk1n2g7i34b4yi0rdindk1f49wps5g6-gajim-0.16.5/share/gajim/src/common/demandimport.py", line 95, in _demandimport return _import(name, globals, locals, fromlist, level) File "/gnu/store/6bk1n2g7i34b4yi0rdindk1f49wps5g6-gajim-0.16.5/share/gajim/src/common/i18n.py", line 54, in locale.setlocale(locale.LC_ALL, '') File "/gnu/store/vcx1n5nj4gr52xx5m6gvi7zrwngy06s3-python-2.7.11/lib/python2.7/locale.py", line 579, in setlocale return _setlocale(category, locale) locale.Error: unsupported locale setting I have set my locale in my operating system configuration as shown in the example configuration in the manual. Is there anything else to be done that I am missing? Could this be a bug in the gajim package? signature.asc Description: PGP signature