<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">&nbsp;&nbsp;&nbsp;&nbsp; Hi,<br><br>&nbsp;&nbsp;&nbsp;&nbsp; I have a problem using dbus in Python programs. I try, for example, to use this simple program which makes a phone call on a predefined number:<br><br>#!/usr/bin/env python<br>import dbus&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>bus = dbus.SystemBus()<br>gsm_device_obj = bus.get_object("org.freesmartphone.ogsmd", "/org/freesmartphone/GSM/Device")<br>gsm_call_iface = dbus.Interface(gsm_device_obj,'org.freesmartphone.GSM.Call')&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>proxy = bus.get_object("org.openmoko.Dialer", "/org/openmoko/Dialer")&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>gsm_call_iface.Initiate("12345", "voice")
 <br><br>&nbsp;&nbsp;&nbsp;&nbsp; I receive this:<br><br>File "test.py", line 6, in &lt;module&gt;<br>&nbsp;&nbsp;&nbsp; proxy = bus.get_object("org.openmoko.Dialer", "/org/openmoko/Dialer")<br>&nbsp; File "/usr/lib/python2.6/site-packages/dbus/bus.py", line 244, in get_object<br>&nbsp;&nbsp;&nbsp; follow_name_owner_changes=follow_name_owner_changes)<br>&nbsp; File "/usr/lib/python2.6/site-packages/dbus/proxies.py", line 241, in __init__<br>&nbsp;&nbsp;&nbsp; self._named_service = conn.activate_name_owner(bus_name)<br>&nbsp; File "/usr/lib/python2.6/site-packages/dbus/bus.py", line 183, in activate_name_owner<br>&nbsp;&nbsp;&nbsp; self.start_service_by_name(bus_name)<br>&nbsp; File "/usr/lib/python2.6/site-packages/dbus/bus.py", line 281, in start_service_by_name<br>&nbsp;&nbsp;&nbsp; 'su', (bus_name, flags)))<br>&nbsp; File "/usr/lib/python2.6/site-packages/dbus/connection.py", line 622, in call_blocking<br>&nbsp;&nbsp;&nbsp; message,
 timeout)<br>dbus.exceptions.DBusException: org.freedesktop.DBus.Error.ServiceUnknown: The name org.openmoko.Dialer was not provided by any .service files<br><br>&nbsp;&nbsp;&nbsp;&nbsp; I'm sure it is a dbus problem because, if I try a simple "dbus-monitor", I get this:<br>&nbsp;"Failed to open connection to session message bus: dbus-launch failed to autolaunch D-Bus session: Autolaunch error: X11 initialization failed."<br><br>&nbsp;&nbsp;&nbsp;&nbsp; I've tried this on OM2008.12 too, but the same things happened, that's why I instlalled OM2009.<br>&nbsp;&nbsp;&nbsp;&nbsp; I can make phone calls from command line, using cli-framework and gsmcall.Initiate("12345", "voice"), but I need to do this every time I run a program.<br>&nbsp;&nbsp;&nbsp;&nbsp; Does anybody know what the problem is and what changes should I make for dbus to work with Python?<br><br>&nbsp;&nbsp;&nbsp;&nbsp; Thanks in advance.<br><br>&nbsp;&nbsp;&nbsp;&nbsp; Best
 regards,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Ovidiu<br></td></tr></table><br>