LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-26-2011, 02:17 PM   #1
ajaygarg
Member
 
Registered: Mar 2010
Location: New Delhi, India
Distribution: Fedora
Posts: 94

Rep: Reputation: 0
How to obtain the dependencies of a dbus service?


Hi all.

How can we find the dependencies of a dbus-service?

Apparently, I have started the particular dbus service, and wish to retrieve the properties from the service. The Name, Path and Interface are exactly the one used for the service.

However, when I do a dbus.SessionBus().get_object, I get the following exception ::

Code:
Traceback (most recent call last):
  File "hope.py", line 8, in <module>
    obj = bus_class.get_object(NAME, PATH)
  File "/usr/lib/python2.7/site-packages/dbus/bus.py", line 245, in get_object
    follow_name_owner_changes=follow_name_owner_changes)
  File "/usr/lib/python2.7/site-packages/dbus/proxies.py", line 241, in __init__
    self._named_service = conn.activate_name_owner(bus_name)
  File "/usr/lib/python2.7/site-packages/dbus/bus.py", line 184, in activate_name_owner
    self.start_service_by_name(bus_name)
  File "/usr/lib/python2.7/site-packages/dbus/bus.py", line 288, in start_service_by_name
    'su', (bus_name, flags)))
  File "/usr/lib/python2.7/site-packages/dbus/connection.py", line 645, in call_blocking
    message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.ServiceUnknown: The name <bus-name> was not provided by any .service files
I run a Fedora 14 machine, and use python-bindings.

Regards,
Ajay
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Firewire Audio on Linux: Fixing FFADO dbus-service Errors LXer Syndicated Linux News 0 07-14-2010 03:10 PM
dbus as IPC for web service problem kannerke Programming 1 03-25-2009 10:59 AM
Fedora Core 9 update dbus.exception & dbus.proxies & DBus.Error.AccessDenied errors trien27 Fedora 1 12-09-2008 12:23 AM
LXer: How to Obtain the Dell/HP Server (May be other vendors) service tag in Debian LXer Syndicated Linux News 0 10-26-2008 11:40 PM
problem: dovecot /sbin/service dependencies mapster Mandriva 1 05-22-2006 06:25 AM


All times are GMT -5. The time now is 07:46 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration