help for newbie, and some python

Ovidiu Gavril ovidiu_gavril at
Wed Jun 3 11:36:52 CEST 2009


     I have some similar problems too.

     1. First, if I make "opkg update", I receive a lot of "Signature check failed" messages. I know these are only warnings, but in the end I also receive this:

Collected errors:
 * Failed to download, error 404
 * Failed to download, error 404
 * Failed to download, error 404
 * Failed to download, error 404
 * Failed to download, error 404
 * Failed to download, error 404
 * Failed to download, error 404
 * Failed to download, error 404
 * Failed to download, error 404

     This makes me think the updates don't work. Because of this, I can't install some packages, because I receive: 
"Package package_name md5sum mismatch. Either the opkg or the package index are corrupt. Try 'opkg update'"
     I've read this may be a DNS problem, but my /etc/resolv.conf file is similar with that from my local machine, so I can't clear this up.

     2. The second problem and the more important one is about using Python with Dbus. I have this little program which should make a phone call on a number:
#!/usr/bin/env python
import dbus
bus = dbus.SessionBus()
proxy = bus.get_object("org.openmoko.Dialer", "/org/openmoko/Dialer")
interface = dbus.Interface(object, "org.openmoko.Dialer")
     But when I make "dbus-launch python my_program" or simply "python my_program", I receive this:

Traceback (most recent call last):                      
  File "", line 2, in <module>                   
    import dbus                                         
  File "/usr/lib/python2.6/site-packages/dbus/", line 100, in <module>
    from dbus._dbus import Bus, SystemBus, SessionBus, StarterBus                
  File "/usr/lib/python2.6/site-packages/dbus/", line 46, in <module>    
    from dbus.bus import BusConnection                                           
  File "/usr/lib/python2.6/site-packages/dbus/", line 26, in <module>      
    import logging                                                               
ImportError: No module named logging

     If I try a simple command line which also makes a phone call:
dbus-send --print-reply --dest="org.openmoko.Dialer" /org/openmoko/Dialer org.openmoko.Dialer.Dial string:12345
or a simple "dbus-monitor" command, I receive this: 
"Failed to open connection to session message bus: dbus-launch failed to autolaunch D-Bus session: Autolaunch error: X11 initialization failed."

     I'm kind of stuck in these problems. Thank you in advance.

     Best regards,

--- On Wed, 6/3/09, Anthony Winter <awtel at> wrote:

From: Anthony Winter <awtel at>
Subject: Re: help for newbie, and some python
To: "Support for Openmoko Device Owners" <support at>
Date: Wednesday, June 3, 2009, 9:55 AM

On Wed, 03 Jun 2009, Robin Paulson wrote:
> 2009/6/3 Anthony Winter <awtel at>:
> > OK, good start. But - assuming that it does run from a command line (and I
> > still haven't found a terminal yet, but there must be one somewhere), what
> > are the steps in getting it run by 'clicking' on an icon, in 
> > That's the missing bit...
> i assumed you were connected via ssh, and could get at a terminal that way

er no, I want to write apps that will be used on the phone. In the field. In a 
hurry, sometimes.

> i can't remember if there is a terminal in om2009 or not - i think
> there is, and it's pretty good. have you discovered illume ie the
> desktop yet? if not, you might want to go to
> specifically, "how do i get illume?"

I have discovered it, and while the initial frustration level has receded, I 
still haven't got the hang of it yet. I'm beginning to see why Apple have 
captured the non-geek market. 

> where all your questions will be answered

Not really. For example, the OM2009 link is to Elementary, which looks neat, 
but a) it's not gtk, and b) it's in C, and life (and in particular, the 
possible life of a Neo) is too short to write apps in C. So I need something 
with python bindings.
> the wiki is great, have search - there's mountains of useful info there

Weeeeeel, there is a lot there, but I haven't yet found the key to doing what 
I want...


support mailing list
support at

-------------- next part --------------
An HTML attachment was scrubbed...

More information about the support mailing list