Opened 17 years ago

Closed 17 years ago

#143 closed bug (Fixed)

web ui in latest nightly crashes

Reported by: deluge-trac@rolf.leggewie.biz Owned by: mvoncken
Priority: major Milestone:
Component: Web UI Version: 0.6.0svn
Keywords: Cc:

Description

The web ui in the latest nightly (svn3082) crashes right after startup

$ deluge -u web
[INFO    ] main:64 Deluge ui 0.6.0.0r3082
[DEBUG   ] main:65 options: {'config': None, 'ui': 'web'}
[DEBUG   ] main:66 args: []
[DEBUG   ] configmanager:44 ConfigManager started..
[INFO    ] main:69 Starting ui..
[DEBUG   ] ui:44 UI init..
[DEBUG   ] configmanager:88 Getting config 'ui.conf'
[DEBUG   ] config:47 Config created with filename: ui.conf
[DEBUG   ] config:48 Config defaults: {'selected_ui': 'gtk'}
[DEBUG   ] config:117 Setting 'selected_ui' to web of <type 'str'>
[INFO    ] ui:63 Starting WebUI..
[DEBUG   ] client:54 CoreProxy init..
[DEBUG   ] component:102 Registered WebPluginManager with ComponentRegistry..
[DEBUG   ] configmanager:88 Getting config 'webui.conf'
[DEBUG   ] config:47 Config created with filename: webui.conf
[DEBUG   ] config:48 Config defaults: None
[DEBUG   ] pluginmanagerbase:48 Plugin manager init..
[DEBUG   ] configmanager:88 Getting config 'webui.conf'
Traceback (most recent call last):
  File "/usr/bin/deluge", line 8, in <module>
    load_entry_point('deluge==0.6.0.0', 'console_scripts', 'deluge')()
  File "/var/lib/python-support/python2.5/deluge/main.py", line 70, in start_ui
    UI(options, args)
  File "/var/lib/python-support/python2.5/deluge/ui/ui.py", line 65, in __init__
    ui = WebUI(args)
  File "/var/lib/python-support/python2.5/deluge/ui/webui/webui.py", line 36, in __init__
    import deluge_webserver
  File "/var/lib/python-support/python2.5/deluge/ui/webui/deluge_webserver.py", line 54, in <module>
    components.register() #after gettext!!
  File "/var/lib/python-support/python2.5/deluge/ui/webui/components.py", line 169, in register
    __plugin_manager = PluginManager()
  File "/var/lib/python-support/python2.5/deluge/ui/webui/components.py", line 133, in __init__
    self, "webui.conf", "deluge.plugin.webui")
  File "/var/lib/python-support/python2.5/deluge/pluginmanagerbase.py", line 59, in __init__
    self.scan_for_plugins()
  File "/var/lib/python-support/python2.5/deluge/pluginmanagerbase.py", line 85, in scan_for_plugins
    user_plugin_dir = os.path.join(self.config["config_location"], "plugins")
  File "/var/lib/python-support/python2.5/deluge/config.py", line 172, in __getitem__
    return self.config[key]
KeyError: 'config_location'

Change History (2)

comment:1 by andar, 17 years ago

This is due to my changes in regards to setting a config directory on start. The webui will need to keep a 'config_location' key or use some other method to determine where the config folder is.

comment:2 by andar, 17 years ago

Resolution: fixed
Status: newclosed

Actually, I have fixed this in pluginamangerbase and it should work now with webui.

Note: See TracTickets for help on using tickets.