You are not logged in.

#1 2007-03-13 21:44:15

alphahsk
Member
From: Norway
Registered: 2007-01-22
Posts: 40

Problem with Listen - Arch Newbie

I installed Listen with pacman, but when I try to run it nothing happens.
Trying to start Listen from the terminal gives:

[hsk@hsk ~]$ listen
(listen.py:6365): Gtk-WARNING **: Locale not supported by C library.
        Using the fallback 'C' locale.
Traceback (most recent call last):
  File "/opt/gnome/lib/listen/listen.py", line 66, in ?
    import utils, const, stock, config
  File "/opt/gnome/lib/listen/utils.py", line 573, in ?
    fscoding = locale.getpreferredencoding()
  File "/usr/lib/python2.4/locale.py", line 417, in getpreferredencoding
    setlocale(LC_CTYPE, "")
  File "/usr/lib/python2.4/locale.py", line 381, in setlocale
    return _setlocale(category, locale)
locale.Error: unsupported locale setting

I also get the Gtk-WARNING when starting GVIM.

Anyone with the same problem??

Offline

#2 2007-03-13 21:50:16

tom5760
Member
From: Philadelphia, PA, USA
Registered: 2006-02-05
Posts: 283
Website

Re: Problem with Listen - Arch Newbie

Do you have any locales selected in /etc/locale.gen?   You should have something such as this:

en_US.UTF-8 UTF-8

Also, regenerate your locales with:

(as root)
locale-gen

Offline

#3 2007-03-13 21:52:19

junglepeanut
Member
From: California
Registered: 2007-01-24
Posts: 145
Website

Re: Problem with Listen - Arch Newbie

Try setting the locale then try again and see if it fixes the issue.
http://wiki.archlinux.org/index.php/Locale

(sorry I was late same as above)

Last edited by junglepeanut (2007-03-13 21:52:51)

Offline

#4 2007-03-16 17:26:50

alphahsk
Member
From: Norway
Registered: 2007-01-22
Posts: 40

Re: Problem with Listen - Arch Newbie

tom5760 wrote:

Do you have any locales selected in /etc/locale.gen?   You should have something such as this:

en_US.UTF-8 UTF-8

Also, regenerate your locales with:

(as root)
locale-gen

I uncommented the lines in /etc/locale.gen that I think I need, then ran

locale-gen

in a terminal and now it works! smile
However, when starting Listen from the terminal I still get this message:

[hsk@hsk ~]$ listen
No dbus support
No Hal support
/opt/gnome/lib/listen/player.py:33: DeprecationWarning: Non-ASCII character '\xc2' in file /opt/gnome/lib/listen/song.py on line 716, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details

The line in question from song.py is this:
#| tunepimp.tpThreadLookupPUID | tunepimp.tpThreadLookupFile )
It's commented out, so I guess thats why Listen works anyway. My version of Python is 2.4.4

The python.org link didn't make much sense to me. Would be nice to start Listen without the DeprecationWarning. Anyone else got the same problem??

Offline

#5 2007-03-16 18:14:25

stb
Member
Registered: 2007-03-13
Posts: 40

Re: Problem with Listen - Arch Newbie

Well, the link makes sense according to the error message. There's a wrong character for the used encoding in the source code file at line 716. A file encoding means saying "In this file there are only A's" and then there is a nasty "B" in there. The specified encoding seems to be ASCII. Try something like

cat /opt/gnome/lib/listen/song.py | grep -v '^#.*' | head -n 716 | tail -n 1

to wipe out the comments. I don't have that file, so I can't check if the above works correct.

Last edited by stb (2007-03-16 18:17:53)

Offline

Board footer

Powered by FluxBB