You are not logged in.

#1 2008-07-18 08:39:05

Barrucadu
Member
From: York, England
Registered: 2008-03-30
Posts: 1,158
Website

Problem with Elisa, python errors.

I've installed Elisa (on Arch x86_64) and all is working fine, except one thing. When I press enter when the cog icon is active, or click it, instead of opening the next screen as it does with all the other icons, nothing happens and an error message gets printed to stdout.

Elisa output (start to bug):

archangel $ elisa
WARN  MainThread      plugin_registry             Jul 18 09:32:40  plugin conflict elisa-plugin-coherence 0.1 (elisa/core/plugin_registry.py:220)
WARN  MainThread      plugin_registry             Jul 18 09:32:40  plugin conflict elisa-plugin-weather 0.1 (elisa/core/plugin_registry.py:220)
WARN  MainThread      application                 Jul 18 09:32:40  Retrieving default media directories failed. Error logged at /tmp/elisa_B1xjCD.txt (elisa/core/media_directory_helper.py:38)
WARN  MainThread      application                 Jul 18 09:32:40  Could not import storm. Database disabled (elisa/core/application.py:411)
WARN  MainThread      resource_manager            Jul 18 09:32:40  Creating weather.report_provider:WeatherReportProvider failed. A full traceback can be found at /tmp/elisa_bWD9ni.txt (elisa/core/manager.py:83)
WARN  MainThread      resource_manager            Jul 18 09:32:40  Creating youtube.resource_provider:YoutubeResourceProvider failed. A full traceback can be found at /tmp/elisa_bCwYSh.txt (elisa/core/manager.py:83)
WARN  MainThread      resource_manager            Jul 18 09:32:40  Creating shoutcast.shoutcast_resource:ShoutcastResource failed. A full traceback can be found at /tmp/elisa_UayltY.txt (elisa/core/manager.py:83)
WARN  MainThread      resource_manager            Jul 18 09:32:40  Creating flickr.resource_provider:FlickrResourceProvider failed. A full traceback can be found at /tmp/elisa_83e-YY.txt (elisa/core/manager.py:83)
WARN  MainThread      resource_manager            Jul 18 09:32:40  Creating wmd.wmd_resource:WMDResource failed. A full traceback can be found at /tmp/elisa_Hh7m0_.txt (elisa/core/manager.py:83)
WARN  MainThread      resource_manager            Jul 18 09:32:40  Creating coherence.coherence_resource:CoherenceResource failed. A full traceback can be found at /tmp/elisa_Est8i5.txt (elisa/core/manager.py:83)
WARN  MainThread      resource_manager            Jul 18 09:32:40  Creating coherence.upnp_resource:UpnpResource failed. A full traceback can be found at /tmp/elisa_8yMniH.txt (elisa/core/manager.py:83)
WARN  MainThread      resource_manager            Jul 18 09:32:40  Creating smbwin32.smbwin32_resource:SmbWin32Resource failed. A full traceback can be found at /tmp/elisa_JdzkLb.txt (elisa/core/manager.py:83)
WARN  MainThread      resource_manager            Jul 18 09:32:40  Creating elisa_updater.resource_provider:UpdaterResourceProvider failed. A full traceback can be found at /tmp/elisa_M89uwB.txt (elisa/core/manager.py:83)
WARN  MainThread      resource_manager            Jul 18 09:32:40  Creating ipod.ipod_resource:IpodResource failed. A full traceback can be found at /tmp/elisa_ooUuXS.txt (elisa/core/manager.py:83)
WARN  MainThread      service_manager             Jul 18 09:32:40  Creating coherence.coherence_service:CoherenceService failed. A full traceback can be found at /tmp/elisa_wqNRw5.txt (elisa/core/manager.py:83)
WARN  MainThread      service_manager             Jul 18 09:32:41  Creating osso.osso_service:OssoService failed. A full traceback can be found at /tmp/elisa_3t-Z4-.txt (elisa/core/manager.py:83)
WARN  MainThread      input_manager               Jul 18 09:32:41  Creating winremote.streamzap_input:StreamzapInput failed. A full traceback can be found at /tmp/elisa_l0MfYu.txt (elisa/core/manager.py:83)
WARN  MainThread      application                 Jul 18 09:32:45  An Traceback occurred and got saved to /tmp/elisa_BrTivc.txt (elisa/core/application.py:305)

As you can see, that's quite a lot of warnings and tracebacks. This is the traceback for when I press enter on the cog icon:

<type 'exceptions.TypeError'>
Python 2.5.2: /usr/bin/python
Fri Jul 18 09:32:45 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.

 /usr/lib/python2.5/site-packages/elisa/plugins/pigment/pigment_frontend.py in handle_input(self=<elisa.plugins.pigment.pigment_frontend.PigmentFrontend object at 0x3501c10>, input_manager=<InputManager object at 0x335b960 (elisa+core+input_manager+InputManager at 0x304e840)>, input_event=<elisa.core.input_event.InputEvent instance at 0x350d7a0>)
  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 0x3501c10>
self.controller = <PoblesecController object at 0x5d17b40 (GObject at 0x5d33a20)>
self.controller.handle_input = <bound method PoblesecController.handle_input of...ller object at 0x5d17b40 (GObject at 0x5d33a20)>>
input_manager = <InputManager object at 0x335b960 (elisa+core+input_manager+InputManager at 0x304e840)>
input_event = <elisa.core.input_event.InputEvent instance at 0x350d7a0>

 /usr/lib/python2.5/site-packages/elisa/plugins/poblesec/main.py in handle_input(self=<PoblesecController object at 0x5d17b40 (GObject at 0x5d33a20)>, manager=<InputManager object at 0x335b960 (elisa+core+input_manager+InputManager at 0x304e840)>, input_event=<elisa.core.input_event.InputEvent instance at 0x350d7a0>)
  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 0x5d17b40 (GObject at 0x5d33a20)>
self.focused_controller = <PoblesecBrowserController object at 0x5d17eb0 (GObject at 0x5dbac80)>
self.focused_controller.handle_input = <bound method PoblesecBrowserController.handle_i...ller object at 0x5d17eb0 (GObject at 0x5dbac80)>>
manager = <InputManager object at 0x335b960 (elisa+core+input_manager+InputManager at 0x304e840)>
input_event = <elisa.core.input_event.InputEvent instance at 0x350d7a0>

 /usr/lib/python2.5/site-packages/elisa/plugins/poblesec/poblesec_browser_controller.py in handle_input(self=<PoblesecBrowserController object at 0x5d17eb0 (GObject at 0x5dbac80)>, manager=<InputManager object at 0x335b960 (elisa+core+input_manager+InputManager at 0x304e840)>, input_event=<elisa.core.input_event.InputEvent instance at 0x350d7a0>)
  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 0x5d17eb0 (GObject at 0x5dbac80)>
self.history = <History object at 0x5c08780 (elisa+plugins+poblesec+history+History at 0x5dbaf20)>
self.history.current = <SectionsMenuController object at 0x5c08a50 (GObject at 0x5dbb040)>
self.history.current.handle_input = <bound method SectionsMenuController.handle_inpu...ller object at 0x5c08a50 (GObject at 0x5dbb040)>>
manager = <InputManager object at 0x335b960 (elisa+core+input_manager+InputManager at 0x304e840)>
input_event = <elisa.core.input_event.InputEvent instance at 0x350d7a0>
builtinTrue = True

 /usr/lib/python2.5/site-packages/elisa/plugins/poblesec/sections_menu.py in handle_input(self=<SectionsMenuController object at 0x5c08a50 (GObject at 0x5dbb040)>, manager=<InputManager object at 0x335b960 (elisa+core+input_manager+InputManager at 0x304e840)>, input_event=<elisa.core.input_event.InputEvent instance at 0x350d7a0>)
  100                 try:
  101                     item = self.menu.model[self.menu.selected_item_index]
  102                     self._section_clicked(self.menu, item)
  103                 except IndexError:
  104                     self.debug("selected-item-index out of range: %s" % self.menu.selected_item_index)
self = <SectionsMenuController object at 0x5c08a50 (GObject at 0x5dbb040)>
self._section_clicked = <bound method SectionsMenuController._section_cl...ller object at 0x5c08a50 (GObject at 0x5dbb040)>>
self.menu = <SectionsMenuWidget object at 0x5c08820 (elisa+plugins+pigment+widgets+list+List at 0x5dbb120)>
item = <elisa.plugins.poblesec.link.Link object at 0x5e7dcd0>

 /usr/lib/python2.5/site-packages/elisa/plugins/poblesec/sections_menu.py in _section_clicked(self=<SectionsMenuController object at 0x5c08a50 (GObject at 0x5dbb040)>, menu=<SectionsMenuWidget object at 0x5c08820 (elisa+plugins+pigment+widgets+list+List at 0x5dbb120)>, section=<elisa.plugins.poblesec.link.Link object at 0x5e7dcd0>)
   87             path = section.controller_path
   88             label = section.label
   89             dfr = browser.history.append_controller(path, label)
   90 
   91     def handle_input(self, manager, input_event):
dfr undefined
browser = <PoblesecBrowserController object at 0x5d17eb0 (GObject at 0x5dbac80)>
browser.history = <History object at 0x5c08780 (elisa+plugins+poblesec+history+History at 0x5dbaf20)>
browser.history.append_controller = <bound method History.append_controller of <Hist...+plugins+poblesec+history+History at 0x5dbaf20)>>
path = None
label = 'Services'

 /usr/lib/python2.5/site-packages/elisa/plugins/poblesec/history.py in append_controller(self=<History object at 0x5c08780 (elisa+plugins+poblesec+history+History at 0x5dbaf20)>, path=None, display_name='Services', **kwargs={})
   70         self._creation_dfr.addCallback(_emit_push_controller)
   71 
   72         dfr = self.frontend.create_controller(path, **kwargs)
   73         dfr.chainDeferred(self._creation_dfr)
   74 
dfr undefined
self = <History object at 0x5c08780 (elisa+plugins+poblesec+history+History at 0x5dbaf20)>
self.frontend = <elisa.plugins.pigment.pigment_frontend.PigmentFrontend object at 0x3501c10>
self.frontend.create_controller = <bound method PigmentFrontend.create_controller ...nt_frontend.PigmentFrontend object at 0x3501c10>>
path = None
kwargs = {}

 /usr/lib/python2.5/site-packages/elisa/plugins/pigment/pigment_frontend.py in create_controller(self=<elisa.plugins.pigment.pigment_frontend.PigmentFrontend object at 0x3501c10>, path=None, config=None, **kwargs={})
   98         """
   99         try:
  100             controller = self.controller_matcher.match(path)
  101         except MatchNotFound:
  102             raise ControllerNotFound(path)
global controller = <module 'pgm.timing.controller' from '/usr/lib/python2.5/site-packages/pgm/timing/controller.pyc'>
self = <elisa.plugins.pigment.pigment_frontend.PigmentFrontend object at 0x3501c10>
self.controller_matcher = <elisa.core.pattern_matcher.UriPatternMatcher object at 0x3501bd0>
self.controller_matcher.match = <bound method UriPatternMatcher.match of <elisa....n_matcher.UriPatternMatcher object at 0x3501bd0>>
path = None

 /usr/lib/python2.5/site-packages/elisa/core/pattern_matcher.py in match(self=<elisa.core.pattern_matcher.UriPatternMatcher object at 0x3501bd0>, string=None, all=False)
  127         for pattern in reversed(self.patterns):
  128             compiled_pattern = pattern.pattern
  129             match = compiled_pattern.match(string)
  130             if match is None:
  131                 continue
match undefined
compiled_pattern = <_sre.SRE_Pattern object at 0x38c1e60>
compiled_pattern.match = <built-in method match of _sre.SRE_Pattern object at 0x38c1e60>
string = None
<type 'exceptions.TypeError'>: expected string or buffer
    __class__ = <type 'exceptions.TypeError'>
    __delattr__ = <method-wrapper '__delattr__' of exceptions.TypeError object at 0x5c63830>
    __dict__ = {}
    __doc__ = 'Inappropriate argument type.'
    __getattribute__ = <method-wrapper '__getattribute__' of exceptions.TypeError object at 0x5c63830>
    __getitem__ = <method-wrapper '__getitem__' of exceptions.TypeError object at 0x5c63830>
    __getslice__ = <method-wrapper '__getslice__' of exceptions.TypeError object at 0x5c63830>
    __hash__ = <method-wrapper '__hash__' of exceptions.TypeError object at 0x5c63830>
    __init__ = <method-wrapper '__init__' of exceptions.TypeError object at 0x5c63830>
    __new__ = <built-in method __new__ of type object at 0x7fe02b983f60>
    __reduce__ = <built-in method __reduce__ of exceptions.TypeError object at 0x5c63830>
    __reduce_ex__ = <built-in method __reduce_ex__ of exceptions.TypeError object at 0x5c63830>
    __repr__ = <method-wrapper '__repr__' of exceptions.TypeError object at 0x5c63830>
    __setattr__ = <method-wrapper '__setattr__' of exceptions.TypeError object at 0x5c63830>
    __setstate__ = <built-in method __setstate__ of exceptions.TypeError object at 0x5c63830>
    __str__ = <method-wrapper '__str__' of exceptions.TypeError object at 0x5c63830>
    args = ('expected string or buffer',)
    message = 'expected string or buffer'

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

Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/elisa/plugins/pigment/pigment_frontend.py", line 436, in handle_input
    self.controller.handle_input(input_manager, input_event)
  File "/usr/lib/python2.5/site-packages/elisa/plugins/poblesec/main.py", line 270, in handle_input
    if self.focused_controller.handle_input(manager, input_event):
  File "/usr/lib/python2.5/site-packages/elisa/plugins/poblesec/poblesec_browser_controller.py", line 608, in handle_input
    self.history.current.handle_input(manager, input_event) == True:
  File "/usr/lib/python2.5/site-packages/elisa/plugins/poblesec/sections_menu.py", line 102, in handle_input
    self._section_clicked(self.menu, item)
  File "/usr/lib/python2.5/site-packages/elisa/plugins/poblesec/sections_menu.py", line 89, in _section_clicked
    dfr = browser.history.append_controller(path, label)
  File "/usr/lib/python2.5/site-packages/elisa/plugins/poblesec/history.py", line 72, in append_controller
    dfr = self.frontend.create_controller(path, **kwargs)
  File "/usr/lib/python2.5/site-packages/elisa/plugins/pigment/pigment_frontend.py", line 100, in create_controller
    controller = self.controller_matcher.match(path)
  File "/usr/lib/python2.5/site-packages/elisa/core/pattern_matcher.py", line 129, in match
    match = compiled_pattern.match(string)
TypeError: expected string or buffer

Is there a simple solution to this?

Last edited by Barrucadu (2008-07-18 08:39:37)

Offline

#2 2008-07-21 08:36:35

ryosaeba83
Package Maintainer (PM)
From: Como (Italy)
Registered: 2008-07-21
Posts: 34
Website

Re: Problem with Elisa, python errors.

I'm having the same problem.


TU id: mtorromeo
My packages: Community, AUR

Offline

#3 2008-07-22 14:33:59

jonkristian
Member
From: Norway
Registered: 2007-03-09
Posts: 101
Website

Re: Problem with Elisa, python errors.

I have some elisa packages available in aur, they work alot better than the ones in extra, http://aur.archlinux.org/packages.php?ID=18520


PROCRASTINATION
is like masturbation...it's good in the beginning, but in the end, you realize
you've just fkd yourself

Offline

#4 2008-07-22 14:58:37

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: Problem with Elisa, python errors.

corection elisa isn't in extra. is in community big_smile


Give what you have. To someone, it may be better than you dare to think.

Offline

Board footer

Powered by FluxBB