jhemono
August 16th, 2007, 05:16 PM
Hello,
I want to do a ruby hack with tracker via DBus. I'm on Gutsy.
When I was on feisty, I used RBus DBus ruby binding to play with DBus and It worked well.
However, on Gutsy, RBus and ruby-dbus, another binding, tell me DBus doesn't respond to the "inspect" messages it sends.
Then I tried a python program that does lots of "inspect" calls, Dbus-inspector (http://www.vitavonni.de/projekte/dbus-inspector.html.en).
I extract-run it and here's what i get :
ERROR:dbus.proxies:Introspect error on :1.19:/: 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 "org.freedesktop.DBus.Introspectable" member "Introspect" error name "(unset)" destination ":1.19")
Introspection failed for com.redhat.NewPrinterNotification (:1.19), /
ERROR:dbus.proxies:Introspect error on :1.8:/: 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 "org.freedesktop.DBus.Introspectable" member "Introspect" error name "(unset)" destination ":1.8")
Introspection failed for com.redhat.dhcp (:1.8 ), /
ERROR:dbus.proxies:Introspect error on :1.6:/org/freedesktop/ConsoleKit/Session1: dbus.exceptions.IntrospectionParserException: Error parsing introspect data: <class 'xml.parsers.expat.ExpatError'>: mismatched tag: line 84, column 6
Traceback (most recent call last):
File "/home/jhemono/dbus-inspector/dbus-inspector", line 108, in refresh
sysresult = dbusinspect.discover(dbus.SystemBus())
File "/home/jhemono/dbus-inspector/dbusinspect.py", line 347, in discover
servicelist.append(service(bus, None, "/", aliases))
File "/home/jhemono/dbus-inspector/dbusinspect.py", line 78, in __init__
self._expand()
File "/home/jhemono/dbus-inspector/dbusinspect.py", line 112, in _expand
self.children.append(service(self, c, cpath, self.aliases))
File "/home/jhemono/dbus-inspector/dbusinspect.py", line 78, in __init__
self._expand()
File "/home/jhemono/dbus-inspector/dbusinspect.py", line 112, in _expand
self.children.append(service(self, c, cpath, self.aliases))
File "/home/jhemono/dbus-inspector/dbusinspect.py", line 78, in __init__
self._expand()
File "/home/jhemono/dbus-inspector/dbusinspect.py", line 112, in _expand
self.children.append(service(self, c, cpath, self.aliases))
File "/home/jhemono/dbus-inspector/dbusinspect.py", line 78, in __init__
self._expand()
File "/home/jhemono/dbus-inspector/dbusinspect.py", line 112, in _expand
self.children.append(service(self, c, cpath, self.aliases))
File "/home/jhemono/dbus-inspector/dbusinspect.py", line 77, in __init__
self._introspect()
File "/home/jhemono/dbus-inspector/dbusinspect.py", line 139, in _introspect
dom = minidom.parseString(ispect)
File "/usr/lib/python2.5/site-packages/_xmlplus/dom/minidom.py", line 1925, in parseString
return expatbuilder.parseString(string)
File "/usr/lib/python2.5/site-packages/_xmlplus/dom/expatbuilder.py", line 942, in parseString
return builder.parseString(string)
File "/usr/lib/python2.5/site-packages/_xmlplus/dom/expatbuilder.py", line 223, in parseString
parser.Parse(string, True)
xml.parsers.expat.ExpatError: mismatched tag: line 84, column 6
I want to do a ruby hack with tracker via DBus. I'm on Gutsy.
When I was on feisty, I used RBus DBus ruby binding to play with DBus and It worked well.
However, on Gutsy, RBus and ruby-dbus, another binding, tell me DBus doesn't respond to the "inspect" messages it sends.
Then I tried a python program that does lots of "inspect" calls, Dbus-inspector (http://www.vitavonni.de/projekte/dbus-inspector.html.en).
I extract-run it and here's what i get :
ERROR:dbus.proxies:Introspect error on :1.19:/: 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 "org.freedesktop.DBus.Introspectable" member "Introspect" error name "(unset)" destination ":1.19")
Introspection failed for com.redhat.NewPrinterNotification (:1.19), /
ERROR:dbus.proxies:Introspect error on :1.8:/: 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 "org.freedesktop.DBus.Introspectable" member "Introspect" error name "(unset)" destination ":1.8")
Introspection failed for com.redhat.dhcp (:1.8 ), /
ERROR:dbus.proxies:Introspect error on :1.6:/org/freedesktop/ConsoleKit/Session1: dbus.exceptions.IntrospectionParserException: Error parsing introspect data: <class 'xml.parsers.expat.ExpatError'>: mismatched tag: line 84, column 6
Traceback (most recent call last):
File "/home/jhemono/dbus-inspector/dbus-inspector", line 108, in refresh
sysresult = dbusinspect.discover(dbus.SystemBus())
File "/home/jhemono/dbus-inspector/dbusinspect.py", line 347, in discover
servicelist.append(service(bus, None, "/", aliases))
File "/home/jhemono/dbus-inspector/dbusinspect.py", line 78, in __init__
self._expand()
File "/home/jhemono/dbus-inspector/dbusinspect.py", line 112, in _expand
self.children.append(service(self, c, cpath, self.aliases))
File "/home/jhemono/dbus-inspector/dbusinspect.py", line 78, in __init__
self._expand()
File "/home/jhemono/dbus-inspector/dbusinspect.py", line 112, in _expand
self.children.append(service(self, c, cpath, self.aliases))
File "/home/jhemono/dbus-inspector/dbusinspect.py", line 78, in __init__
self._expand()
File "/home/jhemono/dbus-inspector/dbusinspect.py", line 112, in _expand
self.children.append(service(self, c, cpath, self.aliases))
File "/home/jhemono/dbus-inspector/dbusinspect.py", line 78, in __init__
self._expand()
File "/home/jhemono/dbus-inspector/dbusinspect.py", line 112, in _expand
self.children.append(service(self, c, cpath, self.aliases))
File "/home/jhemono/dbus-inspector/dbusinspect.py", line 77, in __init__
self._introspect()
File "/home/jhemono/dbus-inspector/dbusinspect.py", line 139, in _introspect
dom = minidom.parseString(ispect)
File "/usr/lib/python2.5/site-packages/_xmlplus/dom/minidom.py", line 1925, in parseString
return expatbuilder.parseString(string)
File "/usr/lib/python2.5/site-packages/_xmlplus/dom/expatbuilder.py", line 942, in parseString
return builder.parseString(string)
File "/usr/lib/python2.5/site-packages/_xmlplus/dom/expatbuilder.py", line 223, in parseString
parser.Parse(string, True)
xml.parsers.expat.ExpatError: mismatched tag: line 84, column 6