You are not logged in.

#1 2009-01-07 14:17:30

tinhtruong
Member
From: Australia
Registered: 2008-12-18
Posts: 117

Deluge 1.0.7 fail to start [SOLVED]

Hello everyone,
I just installed Deluge, but I have problem to start it, here is the error message in the console:

[INFO    ] 21:15:02 main:85 Deluge ui 1.0.7
[DEBUG   ] 21:15:02 main:86 options: {'config': None, 'logfile': None, 'ui': None}
[DEBUG   ] 21:15:02 main:87 args: []
[DEBUG   ] 21:15:02 configmanager:36 ConfigManager started..
[INFO    ] 21:15:02 main:90 Starting ui..
[DEBUG   ] 21:15:02 ui:36 UI init..
[DEBUG   ] 21:15:02 configmanager:80 Getting config 'ui.conf'
[DEBUG   ] 21:15:02 config:39 Config created with filename: ui.conf
[DEBUG   ] 21:15:02 config:40 Config defaults: {'default_ui': 'gtk'}
[INFO    ] 21:15:02 ui:52 Starting GtkUI..

(process:3382): Gtk-WARNING **: Locale not supported by C library.
    Using the fallback 'C' locale.
[DEBUG   ] 21:15:03 client:46 CoreProxy init..
[DEBUG   ] 21:15:03 configmanager:61 get_config_dir: /home/tinh/.config/deluge
Traceback (most recent call last):
  File "/usr/bin/deluge", line 8, in <module>
    load_entry_point('deluge==1.0.7', 'console_scripts', 'deluge')()
  File "/usr/lib/python2.6/site-packages/deluge/main.py", line 91, in start_ui
    UI(options, args)
  File "/usr/lib/python2.6/site-packages/deluge/ui/ui.py", line 54, in __init__
    ui = GtkUI(args)
  File "/usr/lib/python2.6/site-packages/deluge/ui/gtkui/gtkui.py", line 105, in __init__
    locale.setlocale(locale.LC_ALL, '')
  File "/usr/lib/python2.6/locale.py", line 494, in setlocale
    return _setlocale(category, locale)
locale.Error: unsupported locale setting

Any helps are appreciated.

Last edited by tinhtruong (2009-01-08 13:50:04)

Offline

#2 2009-01-07 15:06:03

arch_nemesis
Member
Registered: 2008-12-19
Posts: 115

Re: Deluge 1.0.7 fail to start [SOLVED]

I think this error can cause lots of problems:

(process:3382): Gtk-WARNING **: Locale not supported by C library.
    Using the fallback 'C' locale.

Some info on it here:

http://wiki.archlinux.org/index.php/Beg … locale.gen

But since you are supposed to do it at install time, it assumes the installer will complete the locale setting for you.

So, you may want to supplement that info with this:

http://wiki.archlinux.org/index.php/Loc … ry_locales

Last edited by arch_nemesis (2009-01-07 15:06:41)

Offline

#3 2009-01-07 15:18:45

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,092

Re: Deluge 1.0.7 fail to start [SOLVED]

"As of glibc 2.3.6, glibc does not provide all locales. You must edit /etc/locale.gen and uncomment the locales you want built, then run locale-gen as root."  -- phrik

Edit: Also note that you have to set the locale in rc.conf _exactly_ as `locale -a` shows it. en_GB.utf8 is valid, but en_GB.UTF-8 is not.

Last edited by Mr.Elendig (2009-01-07 15:20:24)


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#4 2009-01-08 13:49:34

tinhtruong
Member
From: Australia
Registered: 2008-12-18
Posts: 117

Re: Deluge 1.0.7 fail to start [SOLVED]

arch_nemesis wrote:

I think this error can cause lots of problems:

(process:3382): Gtk-WARNING **: Locale not supported by C library.
    Using the fallback 'C' locale.

Some info on it here:

http://wiki.archlinux.org/index.php/Beg … locale.gen

But since you are supposed to do it at install time, it assumes the installer will complete the locale setting for you.

So, you may want to supplement that info with this:

http://wiki.archlinux.org/index.php/Loc … ry_locales

After edit file /etc/locale.gen to enable the en_US.UTF-8 UTF-8 and run the locale-gen as root, deluge now can start properly.
Many thanks!

Offline

Board footer

Powered by FluxBB