[Twisted-Python] question : txdbus and dbus-send

bino at indoakses-online.com bino at indoakses-online.com
Mon Apr 22 01:25:28 MDT 2013


Dear All
I take
https://github.com/cocagne/txdbus/blob/master/doc/tutorial_examples/simple_server
and save it to /home/bino/Documents/mbink/pythons/coretac/dbus00.py

bino at bino-pata:~$ ls -la /home/bino/Documents/mbink/pythons/coretac |grep
dbus
-rwxrwxr-x 1 bino bino  1026 Apr 22 12:08 dbus00.py

It's work as expected when 'called' using
https://github.com/cocagne/txdbus/blob/master/doc/tutorial_examples/simple_client

Now I need to callable using dbus-send
I wrote '/usr/share/dbus-1/services/org.example.service' as :

[D-BUS Service]
Name=org.example.MyObjPath
Exec=/home/bino/Documents/mbink/pythons/coretac/dbus00.py

I try to call :
dbus-send --system --print-reply \
--type=method_call \
--dest='org.example.MyObjPath' '/org/example/MyObjPath' \
org.example.MyObjPath.exampleMethod string:'MYTEXT'

But I got error msg :

Error org.freedesktop.DBus.Error.ServiceUnknown: The name
org.example.MyObjPath was not provided by any .service files


Kindly please give me any enlightenment

sincerely
-bino-





More information about the Twisted-Python mailing list