Thanks Bastien.

I tried the following code:

import dbus
bus=dbus.SystemBus()
object=bus.get_objeect('net.reactivated.Fprint.Manager','/')

I am getting this error.

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.6/dist-packages/dbus/bus.py", line 244, in get_object
    follow_name_owner_changes=follow_name_owner_changes)
  File "/usr/lib/python2.6/dist-packages/dbus/proxies.py", line 241, in __init__
    self._named_service = conn.activate_name_owner(bus_name)
  File "/usr/lib/python2.6/dist-packages/dbus/bus.py", line 183, in 
activate_name_owner
    self.start_service_by_name(bus_name)
  File "/usr/lib/python2.6/dist-packages/dbus/bus.py", line 281, in 
start_service_by_name
    'su', (bus_name, flags)))
  File "/usr/lib/python2.6/dist-packages/dbus/connection.py", line 630, in 
call_blocking
    message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.ServiceUnknown: The 
name net.reactivated.Fprint.Manager was not provided by any .service files

Any hint how to solve this error. 
I know this is a silly error but I am a beginner.
 Regards,
Mahendra Kariya





________________________________
From: Bastien Nocera <[email protected]>
To: Mahendra <[email protected]>
Cc: [email protected]
Sent: Sat, 29 May, 2010 6:01:22 PM
Subject: Re: [fprint] fprintd in python

On Sat, 2010-05-29 at 16:29 +0530, Mahendra wrote:
> I want to access fprintd daemon in Python. Any resources?

You would be using the D-Bus API, through Python's dbus libraries. The
API is documented here:
http://people.fedoraproject.org/~hadess/fprintd/docs/

Cheers

_______________________________________________
fprint mailing list
[email protected]
http://lists.reactivated.net/mailman/listinfo/fprint

Reply via email to