* bug#24192: Gajim fails with locale.Error
@ 2016-08-09 5:26 Arun Isaac
2016-08-09 7:09 ` Danny Milosavljevic
2016-08-09 16:40 ` Leo Famulari
0 siblings, 2 replies; 14+ messages in thread
From: Arun Isaac @ 2016-08-09 5:26 UTC (permalink / raw)
To: 24192
[-- Attachment #1: Type: text/plain, Size: 1543 bytes --]
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 <module>
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 <module>
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 <module>
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?
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 472 bytes --]
^ permalink raw reply [flat|nested] 14+ messages in thread
* bug#24192: Gajim fails with locale.Error
2016-08-09 5:26 bug#24192: Gajim fails with locale.Error Arun Isaac
@ 2016-08-09 7:09 ` Danny Milosavljevic
2016-08-10 9:53 ` Arun Isaac
2016-08-09 16:40 ` Leo Famulari
1 sibling, 1 reply; 14+ messages in thread
From: Danny Milosavljevic @ 2016-08-09 7:09 UTC (permalink / raw)
To: Arun Isaac; +Cc: 24192
> File "/gnu/store/6bk1n2g7i34b4yi0rdindk1f49wps5g6-gajim-0.16.5/share/gajim/src/common/i18n.py", line 54, in <module>
> 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?
^ permalink raw reply [flat|nested] 14+ messages in thread
* bug#24192: Gajim fails with locale.Error
2016-08-09 7:09 ` Danny Milosavljevic
@ 2016-08-10 9:53 ` Arun Isaac
2016-08-11 14:05 ` Alex Kost
0 siblings, 1 reply; 14+ messages in thread
From: Arun Isaac @ 2016-08-10 9:53 UTC (permalink / raw)
To: Danny Milosavljevic; +Cc: 24192
[-- Attachment #1: Type: text/plain, Size: 445 bytes --]
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"
gajim runs successfully.
Isn't there a more automated way to handle these environment variables?
Thanks.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 472 bytes --]
^ permalink raw reply [flat|nested] 14+ messages in thread
* bug#24192: Gajim fails with locale.Error
2016-08-10 9:53 ` Arun Isaac
@ 2016-08-11 14:05 ` Alex Kost
2016-08-12 6:04 ` Arun Isaac
0 siblings, 1 reply; 14+ messages in thread
From: Alex Kost @ 2016-08-11 14:05 UTC (permalink / raw)
To: Arun Isaac; +Cc: 24192
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
^ permalink raw reply [flat|nested] 14+ messages in thread
* bug#24192: Gajim fails with locale.Error
2016-08-11 14:05 ` Alex Kost
@ 2016-08-12 6:04 ` Arun Isaac
2016-08-12 7:19 ` Vincent Legoll
2016-08-12 8:42 ` Alex Kost
0 siblings, 2 replies; 14+ messages in thread
From: Arun Isaac @ 2016-08-12 6:04 UTC (permalink / raw)
To: Alex Kost; +Cc: 24192
> 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?
^ permalink raw reply [flat|nested] 14+ messages in thread
* bug#24192: Gajim fails with locale.Error
2016-08-12 6:04 ` Arun Isaac
@ 2016-08-12 7:19 ` Vincent Legoll
2016-08-12 17:33 ` Leo Famulari
2016-08-12 8:42 ` Alex Kost
1 sibling, 1 reply; 14+ messages in thread
From: Vincent Legoll @ 2016-08-12 7:19 UTC (permalink / raw)
To: Arun Isaac; +Cc: 24192, Alex Kost
>>> 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 ?
--
Vincent Legoll
^ permalink raw reply [flat|nested] 14+ messages in thread
* bug#24192: Gajim fails with locale.Error
2016-08-12 7:19 ` Vincent Legoll
@ 2016-08-12 17:33 ` Leo Famulari
0 siblings, 0 replies; 14+ messages in thread
From: Leo Famulari @ 2016-08-12 17:33 UTC (permalink / raw)
To: Vincent Legoll; +Cc: 24192, Alex Kost
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
^ permalink raw reply [flat|nested] 14+ messages in thread
* bug#24192: Gajim fails with locale.Error
2016-08-12 6:04 ` Arun Isaac
2016-08-12 7:19 ` Vincent Legoll
@ 2016-08-12 8:42 ` Alex Kost
1 sibling, 0 replies; 14+ messages in thread
From: Alex Kost @ 2016-08-12 8:42 UTC (permalink / raw)
To: Arun Isaac; +Cc: 24192
Arun Isaac (2016-08-12 09:04 +0300) 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?
On GuixSD these variables are set by /etc/profile and /etc/environment,
so you don't have to set them manually.
--
Alex
^ permalink raw reply [flat|nested] 14+ messages in thread
* bug#24192: Gajim fails with locale.Error
2016-08-09 5:26 bug#24192: Gajim fails with locale.Error Arun Isaac
2016-08-09 7:09 ` Danny Milosavljevic
@ 2016-08-09 16:40 ` Leo Famulari
2016-08-09 17:28 ` Daniel Pimentel
2016-08-29 8:52 ` Ludovic Courtès
1 sibling, 2 replies; 14+ messages in thread
From: Leo Famulari @ 2016-08-09 16:40 UTC (permalink / raw)
To: Arun Isaac; +Cc: 24192
[-- Attachment #1: Type: text/plain, Size: 1837 bytes --]
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 <module>
> 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 <module>
> 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 <module>
> 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
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
^ permalink raw reply [flat|nested] 14+ messages in thread
* bug#24192: Gajim fails with locale.Error
2016-08-09 16:40 ` Leo Famulari
@ 2016-08-09 17:28 ` Daniel Pimentel
2016-08-09 18:58 ` Ricardo Wurmus
2016-08-09 20:53 ` Alex Kost
2016-08-29 8:52 ` Ludovic Courtès
1 sibling, 2 replies; 14+ messages in thread
From: Daniel Pimentel @ 2016-08-09 17:28 UTC (permalink / raw)
To: Leo Famulari; +Cc: bug-Guix, 24192
I have a similar problem with locale in Haunt package:
Backtrace:
In ice-9/boot-9.scm:
157: 10 [catch #t #<catch-closure 11f0b40> ...]
In unknown file:
?: 9 [apply-smob/1 #<catch-closure 11f0b40>]
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 #<procedure 120e940 at
ice-9/boot-9.scm:4045:3 ()>]
4050: 5 [#<procedure 120e940 at ice-9/boot-9.scm:4045:3 ()>]
1724: 4 [%start-stack load-stack ...]
1729: 3 [#<procedure 1224ea0 ()>]
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)
^ permalink raw reply [flat|nested] 14+ messages in thread
* bug#24192: Gajim fails with locale.Error
2016-08-09 17:28 ` Daniel Pimentel
@ 2016-08-09 18:58 ` Ricardo Wurmus
2016-08-09 20:53 ` Alex Kost
1 sibling, 0 replies; 14+ messages in thread
From: Ricardo Wurmus @ 2016-08-09 18:58 UTC (permalink / raw)
To: Daniel Pimentel; +Cc: bug-Guix, 24192
Daniel Pimentel <d4n1@d4n1.org> writes:
> I have a similar problem with locale in Haunt package:
>
> Backtrace:
> In ice-9/boot-9.scm:
> 157: 10 [catch #t #<catch-closure 11f0b40> ...]
> In unknown file:
> ?: 9 [apply-smob/1 #<catch-closure 11f0b40>]
> 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 #<procedure 120e940 at
> ice-9/boot-9.scm:4045:3 ()>]
> 4050: 5 [#<procedure 120e940 at ice-9/boot-9.scm:4045:3 ()>]
> 1724: 4 [%start-stack load-stack ...]
> 1729: 3 [#<procedure 1224ea0 ()>]
> 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
^ permalink raw reply [flat|nested] 14+ messages in thread
* bug#24192: Gajim fails with locale.Error
2016-08-09 17:28 ` Daniel Pimentel
2016-08-09 18:58 ` Ricardo Wurmus
@ 2016-08-09 20:53 ` Alex Kost
1 sibling, 0 replies; 14+ messages in thread
From: Alex Kost @ 2016-08-09 20:53 UTC (permalink / raw)
To: 24192; +Cc: David Thompson
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 #<catch-closure 11f0b40> ...]
> In unknown file:
> ?: 9 [apply-smob/1 #<catch-closure 11f0b40>]
> 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 #<procedure 120e940 at
> ice-9/boot-9.scm:4045:3 ()>]
> 4050: 5 [#<procedure 120e940 at ice-9/boot-9.scm:4045:3 ()>]
> 1724: 4 [%start-stack load-stack ...]
> 1729: 3 [#<procedure 1224ea0 ()>]
> 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
^ permalink raw reply [flat|nested] 14+ messages in thread
* bug#24192: Gajim fails with locale.Error
2016-08-09 16:40 ` Leo Famulari
2016-08-09 17:28 ` Daniel Pimentel
@ 2016-08-29 8:52 ` Ludovic Courtès
2018-09-05 7:08 ` Arun Isaac
1 sibling, 1 reply; 14+ messages in thread
From: Ludovic Courtès @ 2016-08-29 8:52 UTC (permalink / raw)
To: Leo Famulari; +Cc: 24192
Leo Famulari <leo@famulari.name> skribis:
> 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 <module>
>> 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 <d4n1@d4n1.org> skribis:
> I have a similar problem with locale in Haunt package:
>
> Backtrace:
> In ice-9/boot-9.scm:
> 157: 10 [catch #t #<catch-closure 11f0b40> ...]
> In unknown file:
> ?: 9 [apply-smob/1 #<catch-closure 11f0b40>]
> 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 #<procedure 120e940 at
> ice-9/boot-9.scm:4045:3 ()>]
> 4050: 5 [#<procedure 120e940 at ice-9/boot-9.scm:4045:3 ()>]
> 1724: 4 [%start-stack load-stack ...]
> 1729: 3 [#<procedure 1224ea0 ()>]
> 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’.
^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~2018-09-05 7:10 UTC | newest]
Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-08-09 5:26 bug#24192: Gajim fails with locale.Error Arun Isaac
2016-08-09 7:09 ` Danny Milosavljevic
2016-08-10 9:53 ` Arun Isaac
2016-08-11 14:05 ` Alex Kost
2016-08-12 6:04 ` Arun Isaac
2016-08-12 7:19 ` Vincent Legoll
2016-08-12 17:33 ` Leo Famulari
2016-08-12 8:42 ` Alex Kost
2016-08-09 16:40 ` Leo Famulari
2016-08-09 17:28 ` Daniel Pimentel
2016-08-09 18:58 ` Ricardo Wurmus
2016-08-09 20:53 ` Alex Kost
2016-08-29 8:52 ` Ludovic Courtès
2018-09-05 7:08 ` Arun Isaac
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.