All pastes #1075351 Raw Edit

Miscellany

public text v1 · immutable
#1075351 ·published 2008-07-18 10:07 UTC
rendered paste body
<type 'exceptions.ValueError'>
Python 2.5.2: /usr/bin/python
Fri Jul 18 12:05:12 2008

A problem occurred in a Python script.  Here is the sequence of
function calls leading up to the error, in the order they occurred.

 /home/michal/soft/elisa/elisa/elisa-plugins/elisa/plugins/pigment/pigment_frontend.py in handle_input(self=<elisa.plugins.pigment.pigment_frontend.PigmentFrontend object at 0xb66e98ec>, input_manager=<InputManager object at 0xb66e4acc (elisa+core+input_manager+InputManager at 0x82cf1d0)>, input_event=<elisa.core.input_event.InputEvent instance at 0xac0f9bcc>)
  434     def handle_input(self, input_manager, input_event):
  435         # forward it to the controller
  436         self.controller.handle_input(input_manager, input_event)
  437 
  438     def _initialize_theme(self):
self = <elisa.plugins.pigment.pigment_frontend.PigmentFrontend object at 0xb66e98ec>
self.controller = <PoblesecController object at 0xb08a7fa4 (GObject at 0x8cc1320)>
self.controller.handle_input = <bound method PoblesecController.handle_input of...ler object at 0xb08a7fa4 (GObject at 0x8cc1320)>>
input_manager = <InputManager object at 0xb66e4acc (elisa+core+input_manager+InputManager at 0x82cf1d0)>
input_event = <elisa.core.input_event.InputEvent instance at 0xac0f9bcc>

 /home/michal/soft/elisa/elisa/elisa-plugins/elisa/plugins/poblesec/main.py in handle_input(self=<PoblesecController object at 0xb08a7fa4 (GObject at 0x8cc1320)>, manager=<InputManager object at 0xb66e4acc (elisa+core+input_manager+InputManager at 0x82cf1d0)>, input_event=<elisa.core.input_event.InputEvent instance at 0xac0f9bcc>)
  268     def handle_input(self, manager, input_event):
  269 
  270         if self.focused_controller.handle_input(manager, input_event):
  271             return True
  272 
self = <PoblesecController object at 0xb08a7fa4 (GObject at 0x8cc1320)>
self.focused_controller = <PoblesecBrowserController object at 0xb08472d4 (GObject at 0x8d1d240)>
self.focused_controller.handle_input = <bound method PoblesecBrowserController.handle_i...ler object at 0xb08472d4 (GObject at 0x8d1d240)>>
manager = <InputManager object at 0xb66e4acc (elisa+core+input_manager+InputManager at 0x82cf1d0)>
input_event = <elisa.core.input_event.InputEvent instance at 0xac0f9bcc>

 /home/michal/soft/elisa/elisa/elisa-plugins/elisa/plugins/poblesec/poblesec_browser_controller.py in handle_input(self=<PoblesecBrowserController object at 0xb08472d4 (GObject at 0x8d1d240)>, manager=<InputManager object at 0xb66e4acc (elisa+core+input_manager+InputManager at 0x82cf1d0)>, input_event=<elisa.core.input_event.InputEvent instance at 0xac0f9bcc>)
  606 
  607         if self.history.current.has_focus() == True and \
  608                 self.history.current.handle_input(manager, input_event) == True:
  609             return True
  610 
self = <PoblesecBrowserController object at 0xb08472d4 (GObject at 0x8d1d240)>
self.history = <History object at 0xb08c307c (elisa+plugins+poblesec+history+History at 0x8d1d390)>
self.history.current = <ListSwitcherVertical object at 0xaf0000a4 (GObject at 0x95ac530)>
self.history.current.handle_input = <bound method ListSwitcherVertical.handle_input ...cal object at 0xaf0000a4 (GObject at 0x95ac530)>>
manager = <InputManager object at 0xb66e4acc (elisa+core+input_manager+InputManager at 0x82cf1d0)>
input_event = <elisa.core.input_event.InputEvent instance at 0xac0f9bcc>
builtinTrue = True

 /home/michal/soft/elisa/elisa/elisa-plugins/elisa/plugins/poblesec/list_switcher.py in handle_input(self=<ListSwitcherVertical object at 0xaf0000a4 (GObject at 0x95ac530)>, manager=<InputManager object at 0xb66e4acc (elisa+core+input_manager+InputManager at 0x82cf1d0)>, input_event=<elisa.core.input_event.InputEvent instance at 0xac0f9bcc>)
   89 
   90     def handle_input(self, manager, input_event):
   91         return self.list_controller.handle_input(manager, input_event)
   92 
   93     def prepare(self):
self = <ListSwitcherVertical object at 0xaf0000a4 (GObject at 0x95ac530)>
self.list_controller = <VerticalWithFastScrollAndPreview object at 0xaf00011c (GObject at 0x9389740)>
self.list_controller.handle_input = <bound method VerticalWithFastScrollAndPreview.h...iew object at 0xaf00011c (GObject at 0x9389740)>>
manager = <InputManager object at 0xb66e4acc (elisa+core+input_manager+InputManager at 0x82cf1d0)>
input_event = <elisa.core.input_event.InputEvent instance at 0xac0f9bcc>

 /home/michal/soft/elisa/elisa/elisa-plugins/elisa/plugins/poblesec/fast_scroll_controller.py in handle_input(self=<VerticalWithFastScrollAndPreview object at 0xaf00011c (GObject at 0x9389740)>, manager=<InputManager object at 0xb66e4acc (elisa+core+input_manager+InputManager at 0x82cf1d0)>, input_event=<elisa.core.input_event.InputEvent instance at 0xac0f9bcc>)
  163                     next_index = active_current_index+1
  164                     next_shortcut = active_shorcuts[next_index]
  165                     self._set_current_shortcut(next_shortcut)
  166                 except IndexError:
  167                     # such a shortcut does not exist
self = <VerticalWithFastScrollAndPreview object at 0xaf00011c (GObject at 0x9389740)>
self._set_current_shortcut = <bound method VerticalWithFastScrollAndPreview._...iew object at 0xaf00011c (GObject at 0x9389740)>>
next_shortcut = u'_'

 /home/michal/soft/elisa/elisa/elisa-plugins/elisa/plugins/poblesec/fast_scroll_controller.py in _set_current_shortcut(self=<VerticalWithFastScrollAndPreview object at 0xaf00011c (GObject at 0x9389740)>, shortcut=u'_')
   96 
   97     def _set_current_shortcut(self, shortcut):
   98         self.fast_scroller.selected_item_index = self.shortcuts.index(shortcut)
   99 
  100     def _shortcut_renderer(self, shortcut, widget):
self = <VerticalWithFastScrollAndPreview object at 0xaf00011c (GObject at 0x9389740)>
self.fast_scroller = <ListVertical object at 0xad06ecd4 (elisa+plugins+pigment+widgets+list+List at 0x93c5810)>
self.fast_scroller.selected_item_index = 0
self.shortcuts = ['#', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', ...]
self.shortcuts.index = <built-in method index of list object at 0xaefd41ac>
shortcut = u'_'
<type 'exceptions.ValueError'>: list.index(x): x not in list
    __class__ = <type 'exceptions.ValueError'>
    __delattr__ = <method-wrapper '__delattr__' of exceptions.ValueError object at 0xac0f9f4c>
    __dict__ = {}
    __doc__ = 'Inappropriate argument value (of correct type).'
    __getattribute__ = <method-wrapper '__getattribute__' of exceptions.ValueError object at 0xac0f9f4c>
    __getitem__ = <method-wrapper '__getitem__' of exceptions.ValueError object at 0xac0f9f4c>
    __getslice__ = <method-wrapper '__getslice__' of exceptions.ValueError object at 0xac0f9f4c>
    __hash__ = <method-wrapper '__hash__' of exceptions.ValueError object at 0xac0f9f4c>
    __init__ = <method-wrapper '__init__' of exceptions.ValueError object at 0xac0f9f4c>
    __new__ = <built-in method __new__ of type object at 0xb7f7fb00>
    __reduce__ = <built-in method __reduce__ of exceptions.ValueError object at 0xac0f9f4c>
    __reduce_ex__ = <built-in method __reduce_ex__ of exceptions.ValueError object at 0xac0f9f4c>
    __repr__ = <method-wrapper '__repr__' of exceptions.ValueError object at 0xac0f9f4c>
    __setattr__ = <method-wrapper '__setattr__' of exceptions.ValueError object at 0xac0f9f4c>
    __setstate__ = <built-in method __setstate__ of exceptions.ValueError object at 0xac0f9f4c>
    __str__ = <method-wrapper '__str__' of exceptions.ValueError object at 0xac0f9f4c>
    args = ('list.index(x): x not in list',)
    message = 'list.index(x): x not in list'

The above is a description of an error in a Python program.  Here is
the original traceback:

Traceback (most recent call last):
  File "/home/michal/soft/elisa/elisa/elisa-plugins/elisa/plugins/pigment/pigment_frontend.py", line 436, in handle_input
    self.controller.handle_input(input_manager, input_event)
  File "/home/michal/soft/elisa/elisa/elisa-plugins/elisa/plugins/poblesec/main.py", line 270, in handle_input
    if self.focused_controller.handle_input(manager, input_event):
  File "/home/michal/soft/elisa/elisa/elisa-plugins/elisa/plugins/poblesec/poblesec_browser_controller.py", line 608, in handle_input
    self.history.current.handle_input(manager, input_event) == True:
  File "/home/michal/soft/elisa/elisa/elisa-plugins/elisa/plugins/poblesec/list_switcher.py", line 91, in handle_input
    return self.list_controller.handle_input(manager, input_event)
  File "/home/michal/soft/elisa/elisa/elisa-plugins/elisa/plugins/poblesec/fast_scroll_controller.py", line 165, in handle_input
    self._set_current_shortcut(next_shortcut)
  File "/home/michal/soft/elisa/elisa/elisa-plugins/elisa/plugins/poblesec/fast_scroll_controller.py", line 98, in _set_current_shortcut
    self.fast_scroller.selected_item_index = self.shortcuts.index(shortcut)
ValueError: list.index(x): x not in list