<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"> Hmm... it works now... I've made some changes. Thank you for your time.<br><br> Ovidiu<br><br>--- On <b>Thu, 6/11/09, Ovidiu Gavril <i><ovidiu_gavril@yahoo.com></i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>From: Ovidiu Gavril <ovidiu_gavril@yahoo.com><br>Subject: Re: OM2009 Dbus with Python<br>To: "Support for Openmoko Device Owners" <support@lists.openmoko.org><br>Date: Thursday, June 11, 2009, 2:11 PM<br><br><div id="yiv977552150"><table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td style="font-family: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; font-size: inherit; line-height: inherit; font-size-adjust: inherit; font-stretch: inherit; -x-system-font: none;"
valign="top"> I didn't make it by myself, I found it at Dbus examples as I remember. Maybe it is only for Om2008, since the 2009 release has a lot of changes, but how should a similar program in 2009 looks like?<br><br><br>--- On <b>Thu, 6/11/09, Sebastian Krzyszkowiak <i><seba.dos1@gmail.com></i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>From: Sebastian Krzyszkowiak <seba.dos1@gmail.com><br>Subject: Re: OM2009 Dbus with Python<br>To: "Support for Openmoko Device Owners" <support@lists.openmoko.org><br>Date: Thursday, June 11, 2009, 2:04 PM<br><br><div class="plainMail">On Thu, Jun 11, 2009 at 13:00, Ovidiu Gavril<<a rel="nofollow">ovidiu_gavril@yahoo.com</a>> wrote:<br>>
Hi,<br>><br>> I have a problem using dbus in Python programs. I try, for example, to<br>> use this simple program which makes a phone call on a predefined number:<br>><br>> #!/usr/bin/env python<br>> import dbus<br>> bus = dbus.SystemBus()<br>> gsm_device_obj = bus.get_object("org.freesmartphone.ogsmd",<br>> "/org/freesmartphone/GSM/Device")<br>> gsm_call_iface =<br>> dbus.Interface(gsm_device_obj,'org.freesmartphone.GSM.Call')<br>> proxy = bus.get_object("org.openmoko.Dialer",<br>> "/org/openmoko/Dialer")<br>> gsm_call_iface.Initiate("12345", "voice")<br>><br>> I receive this:<br>><br>> File "test.py", line 6, in <module><br>> proxy = bus.get_object("org.openmoko.Dialer", "/org/openmoko/Dialer")<br>> File "/usr/lib/python2.6/site-packages/dbus/bus.py", line 244, in<br>>
get_object<br>> follow_name_owner_changes=follow_name_owner_changes)<br>> File "/usr/lib/python2.6/site-packages/dbus/proxies.py", line 241, in<br>> __init__<br>> self._named_service = conn.activate_name_owner(bus_name)<br>> File "/usr/lib/python2.6/site-packages/dbus/bus.py", line 183, in<br>> activate_name_owner<br>> self.start_service_by_name(bus_name)<br>> File "/usr/lib/python2.6/site-packages/dbus/bus.py", line 281, in<br>> start_service_by_name<br>> 'su', (bus_name, flags)))<br>> File "/usr/lib/python2.6/site-packages/dbus/connection.py", line 622, in<br>> call_blocking<br>> message, timeout)<br>> dbus.exceptions.DBusException: org.freedesktop.DBus.Error.ServiceUnknown:<br>> The name org.openmoko.Dialer was not provided by any .service files<br>><br>>
I'm sure it is a dbus problem because, if I try a simple<br>> "dbus-monitor", I get this:<br>> "Failed to open connection to session message bus: dbus-launch failed to<br>> autolaunch D-Bus session: Autolaunch error: X11 initialization failed."<br>><br>> I've tried this on OM2008.12 too, but the same things happened, that's<br>> why I instlalled OM2009.<br>> I can make phone calls from command line, using cli-framework and<br>> gsmcall.Initiate("12345", "voice"), but I need to do this every time I run a<br>> program.<br>> Does anybody know what the problem is and what changes should I make<br>> for dbus to work with Python?<br>><br>> Thanks in advance.<br>><br>> Best regards,<br>> Ovidiu<br><br>What is
org.openmoko.Dialer?<br><br>_______________________________________________<br>support mailing list<br><a rel="nofollow">support@lists.openmoko.org</a><br><a rel="nofollow" target="_blank" href="https://lists.openmoko.org/mailman/listinfo/support">https://lists.openmoko.org/mailman/listinfo/support</a><br></div></blockquote></td></tr></tbody></table><br>
</div><br>-----Inline Attachment Follows-----<br><br><div class="plainMail">_______________________________________________<br>support mailing list<br><a ymailto="mailto:support@lists.openmoko.org" href="/mc/compose?to=support@lists.openmoko.org">support@lists.openmoko.org</a><br><a href="https://lists.openmoko.org/mailman/listinfo/support" target="_blank">https://lists.openmoko.org/mailman/listinfo/support</a><br></div></blockquote></td></tr></table><br>