All pastes #928387 Raw Edit

Miscellany

public text v1 · immutable
·published 2008-03-05 00:30 UTC
rendered paste body
<class 'dbus.exceptions.DBusException'>
Python 2.5.2: /usr/bin/python
Wed Mar  5 00:27:46 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/core/interface_controller.py in initialize(self=<elisa.core.interface_controller.InterfaceController object at 0x86594ec>)
  141         for frontend_path in frontend_paths:
  142             try:
  143                 self._create_frontend(frontend_path)
  144             except Exception, exc:
  145                 path = application.log_traceback()
self = <elisa.core.interface_controller.InterfaceController object at 0x86594ec>
self._create_frontend = <bound method InterfaceController._create_fronte...troller.InterfaceController object at 0x86594ec>>
frontend_path = 'frontend1'

 /usr/lib/python2.5/site-packages/elisa/core/interface_controller.py in _create_frontend(self=<elisa.core.interface_controller.InterfaceController object at 0x86594ec>, frontend_name='frontend1')
  303         # connect the root controller to the root view
  304         root_view.frontend = frontend
  305         root_view.controller = root_controller
  306 
  307         return True
root_view = <raval_frontend.elisa_view.ElisaView object at 0x90e676c>
root_view.controller = <raval_frontend.elisa_controller.ElisaController object at 0x8ef7cec>
root_controller = <raval_frontend.elisa_controller.ElisaController object at 0x8ef7cec>

 /usr/lib/python2.5/site-packages/elisa/plugins/raval_frontend/elisa_view.py in controller__set(self=<raval_frontend.elisa_view.ElisaView object at 0x90e676c>, controller=<raval_frontend.elisa_controller.ElisaController object at 0x8ef7cec>)
   66             self._create_child_view("popup", "raval:popup_view")
   67             self.popup.controller = controller.popup
   68         super(ElisaView, self).controller__set(controller)
   69 
   70     def controller_changed(self, old_controller, new_controller):
builtinsuper = <type 'super'>
global ElisaView = <class 'raval_frontend.elisa_view.ElisaView'>
self = <raval_frontend.elisa_view.ElisaView object at 0x90e676c>
).controller__set = <bound method ElisaView.controller__set of <rava...ontend.elisa_view.ElisaView object at 0x90e676c>>
controller = <raval_frontend.elisa_controller.ElisaController object at 0x8ef7cec>

 /usr/lib/python2.5/site-packages/elisa/base_components/view.py in controller__set(self=<raval_frontend.elisa_view.ElisaView object at 0x90e676c>, controller=<raval_frontend.elisa_controller.ElisaController object at 0x8ef7cec>)
  137         for controller_attribute, view_attributes in self.bindings:
  138             self._update_bound_attributes(controller_attribute,
  139                                           view_attributes)
  140 
  141         # stop observing the old model and start observing the new one
view_attributes = 'manager'

 /usr/lib/python2.5/site-packages/elisa/base_components/view.py in _update_bound_attributes(self=<raval_frontend.elisa_view.ElisaView object at 0x90e676c>, controller_attribute='manager', child_attributes=['manager'])
  227         if isinstance(controller_child_value, Controller):
  228             for attribute in child_attributes:
  229                 self._update_bound_view(attribute, controller_child_value)
  230         else:
  231             for child_attribute in child_attributes:
self = <raval_frontend.elisa_view.ElisaView object at 0x90e676c>
self._update_bound_view = <bound method ElisaView._update_bound_view of <r...ontend.elisa_view.ElisaView object at 0x90e676c>>
attribute = 'manager'
controller_child_value = <raval_frontend.manager_controller.ManagerController object at 0x90dc2cc>

 /usr/lib/python2.5/site-packages/elisa/base_components/view.py in _update_bound_view(self=<raval_frontend.elisa_view.ElisaView object at 0x90e676c>, attribute='manager', controller=<raval_frontend.manager_controller.ManagerController object at 0x90dc2cc>)
  249 
  250                 # connect the corresponding view
  251                 child_view.controller = controller
  252             except UndefinedMVCAssociation, e:
  253                 self.warning(e)
child_view = <raval_frontend.manager_view.ManagerView object at 0x959678c>
child_view.controller = <raval_frontend.manager_controller.ManagerController object at 0x90dc2cc>
controller = <raval_frontend.manager_controller.ManagerController object at 0x90dc2cc>

 /usr/lib/python2.5/site-packages/elisa/base_components/view.py in controller__set(self=<raval_frontend.manager_view.ManagerView object at 0x959678c>, controller=<raval_frontend.manager_controller.ManagerController object at 0x90dc2cc>)
  137         for controller_attribute, view_attributes in self.bindings:
  138             self._update_bound_attributes(controller_attribute,
  139                                           view_attributes)
  140 
  141         # stop observing the old model and start observing the new one
view_attributes = 'location'

 /usr/lib/python2.5/site-packages/elisa/base_components/view.py in _update_bound_attributes(self=<raval_frontend.manager_view.ManagerView object at 0x959678c>, controller_attribute='location', child_attributes=['location'])
  227         if isinstance(controller_child_value, Controller):
  228             for attribute in child_attributes:
  229                 self._update_bound_view(attribute, controller_child_value)
  230         else:
  231             for child_attribute in child_attributes:
self = <raval_frontend.manager_view.ManagerView object at 0x959678c>
self._update_bound_view = <bound method ManagerView._update_bound_view of ...nd.manager_view.ManagerView object at 0x959678c>>
attribute = 'location'
controller_child_value = <LocationController current_index=0 0 items>

 /usr/lib/python2.5/site-packages/elisa/base_components/view.py in _update_bound_view(self=<raval_frontend.manager_view.ManagerView object at 0x959678c>, attribute='location', controller=<LocationController current_index=0 0 items>)
  246                 # create the corresponding view
  247                 path = self.frontend.get_view_path(controller.model.path)
  248                 child_view = self._create_child_view(attribute, path)
  249 
  250                 # connect the corresponding view
child_view undefined
self = <raval_frontend.manager_view.ManagerView object at 0x959678c>
self._create_child_view = <bound method ManagerView._create_child_view of ...nd.manager_view.ManagerView object at 0x959678c>>
attribute = 'location'
path = 'raval:location_view'

 /usr/lib/python2.5/site-packages/elisa/base_components/view.py in _create_child_view(self=<raval_frontend.manager_view.ManagerView object at 0x959678c>, attribute='location', path='raval:location_view')
  268         # create the new child view
  269         registry = common.application.plugin_registry
  270         new_view = registry.create_component(path)
  271 
  272         # associate the new child view
new_view undefined
registry = <elisa.core.plugin_registry.PluginRegistry object at 0xb64f042c>
registry.create_component = <bound method PluginRegistry.create_component of...in_registry.PluginRegistry object at 0xb64f042c>>
path = 'raval:location_view'

 /usr/lib/python2.5/site-packages/elisa/core/plugin_registry.py in create_component(self=<elisa.core.plugin_registry.PluginRegistry object at 0xb64f042c>, component_path='raval:location_view')
  488         self.debug("Trying to create %r component" % component_path)
  489 
  490         infos = self._get_component_infos(component_path)
  491 
  492         ComponentClass, plugin, component_path_tuple = infos
infos undefined
self = <elisa.core.plugin_registry.PluginRegistry object at 0xb64f042c>
self._get_component_infos = <bound method PluginRegistry._get_component_info...in_registry.PluginRegistry object at 0xb64f042c>>
component_path = 'raval:location_view'

 /usr/lib/python2.5/site-packages/elisa/core/plugin_registry.py in _get_component_infos(self=<elisa.core.plugin_registry.PluginRegistry object at 0xb64f042c>, component_path='raval:location_view')
  557             plugin.check_dependencies()
  558 
  559             ComponentClass = self._import_component(plugin, component_name)
  560 
  561         return (ComponentClass, plugin, component_path_tuple)
ComponentClass = None
self = <elisa.core.plugin_registry.PluginRegistry object at 0xb64f042c>
self._import_component = <bound method PluginRegistry._import_component o...in_registry.PluginRegistry object at 0xb64f042c>>
plugin = <elisa.plugins.raval_frontend.Raval_Frontend object at 0x8df69ac>
component_name = 'location_view'

 /usr/lib/python2.5/site-packages/elisa/core/plugin_registry.py in _import_component(self=<elisa.core.plugin_registry.PluginRegistry object at 0xb64f042c>, plugin=<elisa.plugins.raval_frontend.Raval_Frontend object at 0x8df69ac>, component_name='location_view')
  587                 try:
  588                     module = __import__(full_path,
  589                                         {}, {}, [mod_class[1]])
  590                     Class = getattr(module, mod_class[1])
  591                 except (ImportError, AttributeError), error:
mod_class = ['location_view', 'LocationView']

 /usr/lib/python2.5/site-packages/elisa/plugins/raval_frontend/location_view.py in <module>()
   22 from elisa.core import common
   23 from elisa.extern.translation import Translatable
   24 import constants
   25 
   26 import pgm
constants undefined

 /usr/lib/python2.5/site-packages/elisa/plugins/raval_frontend/constants.py in <module>()
   19 status_bar_height = None
   20 context_bar_height = None
   21 if is_hildon_desktop_running():
   22     status_bar_height = 7.0
   23     context_bar_height = 11.0
is_hildon_desktop_running = None

 /usr/lib/python2.5/site-packages/elisa/core/utils/misc.py in is_hildon_desktop_running()
  177             dbus.BUS_DAEMON_PATH, dbus.BUS_DAEMON_IFACE)
  178     _hildon_desktop_running = \
  179             bool(driver.NameHasOwner('com.nokia.hildon-desktop'))
  180 
  181     return _hildon_desktop_running
builtinbool = <type 'bool'>
driver = <ProxyObject wrapping <dbus._dbus.SystemBus (sys...edesktop.DBus /org/freedesktop/DBus at 0x9596b8c>
driver.NameHasOwner = <dbus.proxies._ProxyMethod instance at 0x96472ec>

 /var/lib/python-support/python2.5/dbus/proxies.py in __call__(self=<dbus.proxies._DeferredMethod instance at 0x9596bcc>, *args=('com.nokia.hildon-desktop',), **keywords={})
   66             # we're being synchronous, so block
   67             self._block()
   68             return self._proxy_method(*args, **keywords)
   69 
   70     def call_async(self, *args, **keywords):
self = <dbus.proxies._DeferredMethod instance at 0x9596bcc>
self._proxy_method = <dbus.proxies._ProxyMethod instance at 0x9596bac>
args = ('com.nokia.hildon-desktop',)
keywords = {}

 /var/lib/python-support/python2.5/dbus/proxies.py in __call__(self=<dbus.proxies._ProxyMethod instance at 0x9596bac>, *args=('com.nokia.hildon-desktop',), **keywords={})
  138                                                   introspect_sig,
  139                                                   args,
  140                                                   **keywords)
  141 
  142     def call_async(self, *args, **keywords):
keywords = {}

 /var/lib/python-support/python2.5/dbus/connection.py in call_blocking(self=<dbus._dbus.SystemBus (system) at 0x8691b9c>, bus_name='org.freedesktop.DBus', object_path='/org/freedesktop/DBus', dbus_interface=None, method='NameHasOwner', signature=None, args=('com.nokia.hildon-desktop',), timeout=-1.0, utf8_strings=False, byte_arrays=False)
  605         # make a blocking call
  606         reply_message = self.send_message_with_reply_and_block(
  607             message, timeout)
  608         args_list = reply_message.get_args_list(**get_args_opts)
  609         if len(args_list) == 0:
message = <dbus.lowlevel.MethodCallMessage object at 0x8b71510>
timeout = -1.0
<class 'dbus.exceptions.DBusException'>: org.freedesktop.DBus.Error.AccessDenied: A security policy in place prevents this sender from sending this message to this recipient, see message bus configuration file (rejected message had interface "(unset)" member "NameHasOwner" error name "(unset)" destination "org.freedesktop.DBus")
    __class__ = <class 'dbus.exceptions.DBusException'>
    __delattr__ = <method-wrapper '__delattr__' of DBusException object at 0x95995a4>
    __dict__ = {'_dbus_error_name': 'org.freedesktop.DBus.Error.AccessDenied'}
    __doc__ = None
    __getattribute__ = <method-wrapper '__getattribute__' of DBusException object at 0x95995a4>
    __getitem__ = <method-wrapper '__getitem__' of DBusException object at 0x95995a4>
    __getslice__ = <method-wrapper '__getslice__' of DBusException object at 0x95995a4>
    __hash__ = <method-wrapper '__hash__' of DBusException object at 0x95995a4>
    __init__ = <bound method DBusException.__init__ of DBusExce..."(unset)" destination "org.freedesktop.DBus")',)>
    __module__ = 'dbus.exceptions'
    __new__ = <built-in method __new__ of type object at 0x8141440>
    __reduce__ = <built-in method __reduce__ of DBusException object at 0x95995a4>
    __reduce_ex__ = <built-in method __reduce_ex__ of DBusException object at 0x95995a4>
    __repr__ = <method-wrapper '__repr__' of DBusException object at 0x95995a4>
    __setattr__ = <method-wrapper '__setattr__' of DBusException object at 0x95995a4>
    __setstate__ = <built-in method __setstate__ of DBusException object at 0x95995a4>
    __str__ = <bound method DBusException.__str__ of DBusExcep..."(unset)" destination "org.freedesktop.DBus")',)>
    __weakref__ = None
    _dbus_error_name = 'org.freedesktop.DBus.Error.AccessDenied'
    args = ('A security policy in place prevents this sender ...ame "(unset)" destination "org.freedesktop.DBus")',)
    get_dbus_name = <bound method DBusException.get_dbus_name of DBu..."(unset)" destination "org.freedesktop.DBus")',)>
    message = 'A security policy in place prevents this sender ...ame "(unset)" destination "org.freedesktop.DBus")'

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/core/interface_controller.py", line 143, in initialize
    self._create_frontend(frontend_path)
  File "/usr/lib/python2.5/site-packages/elisa/core/interface_controller.py", line 305, in _create_frontend
    root_view.controller = root_controller
  File "/usr/lib/python2.5/site-packages/elisa/plugins/raval_frontend/elisa_view.py", line 68, in controller__set
    super(ElisaView, self).controller__set(controller)
  File "/usr/lib/python2.5/site-packages/elisa/base_components/view.py", line 139, in controller__set
    view_attributes)
  File "/usr/lib/python2.5/site-packages/elisa/base_components/view.py", line 229, in _update_bound_attributes
    self._update_bound_view(attribute, controller_child_value)
  File "/usr/lib/python2.5/site-packages/elisa/base_components/view.py", line 251, in _update_bound_view
    child_view.controller = controller
  File "/usr/lib/python2.5/site-packages/elisa/base_components/view.py", line 139, in controller__set
    view_attributes)
  File "/usr/lib/python2.5/site-packages/elisa/base_components/view.py", line 229, in _update_bound_attributes
    self._update_bound_view(attribute, controller_child_value)
  File "/usr/lib/python2.5/site-packages/elisa/base_components/view.py", line 248, in _update_bound_view
    child_view = self._create_child_view(attribute, path)
  File "/usr/lib/python2.5/site-packages/elisa/base_components/view.py", line 270, in _create_child_view
    new_view = registry.create_component(path)
  File "/usr/lib/python2.5/site-packages/elisa/core/plugin_registry.py", line 490, in create_component
    infos = self._get_component_infos(component_path)
  File "/usr/lib/python2.5/site-packages/elisa/core/plugin_registry.py", line 559, in _get_component_infos
    ComponentClass = self._import_component(plugin, component_name)
  File "/usr/lib/python2.5/site-packages/elisa/core/plugin_registry.py", line 589, in _import_component
    {}, {}, [mod_class[1]])
  File "/usr/lib/python2.5/site-packages/elisa/plugins/raval_frontend/location_view.py", line 24, in <module>
    import constants
  File "/usr/lib/python2.5/site-packages/elisa/plugins/raval_frontend/constants.py", line 21, in <module>
    if is_hildon_desktop_running():
  File "/usr/lib/python2.5/site-packages/elisa/core/utils/misc.py", line 179, in is_hildon_desktop_running
    bool(driver.NameHasOwner('com.nokia.hildon-desktop'))
  File "/var/lib/python-support/python2.5/dbus/proxies.py", line 68, in __call__
    return self._proxy_method(*args, **keywords)
  File "/var/lib/python-support/python2.5/dbus/proxies.py", line 140, in __call__
    **keywords)
  File "/var/lib/python-support/python2.5/dbus/connection.py", line 607, in call_blocking
    message, timeout)
DBusException: org.freedesktop.DBus.Error.AccessDenied: A security policy in place prevents this sender from sending this message to this recipient, see message bus configuration file (rejected message had interface "(unset)" member "NameHasOwner" error name "(unset)" destination "org.freedesktop.DBus")