help for newbie, and some python

Ovidiu Gavril ovidiu_gavril at yahoo.com
Wed Jun 3 11:54:04 CEST 2009


     Sorry, I forgot to say that I'm using om2008.12 release.


--- On Wed, 6/3/09, Ovidiu Gavril <ovidiu_gavril at yahoo.com> wrote:

From: Ovidiu Gavril <ovidiu_gavril at yahoo.com>
Subject: Re: help for newbie, and some python
To: awtel at sayne.org, "Support for Openmoko Device Owners" <support at lists.openmoko.org>
Date: Wednesday, June 3, 2009, 12:36 PM

     Hi,

     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 http://downloads.openmoko.org/repository/Multiverse/Packages.gz, error 404
 * Failed to download http://downloads.openmoko.org/repository/Multiverse/Packages.sig, error 404
 * Failed to download http://downloads.openmoko.org/repository/Om2008.8/all/Packages.sig, error 404
 * Failed to download http://downloads.openmoko.org/repository/Om2008.8/armv4t/Packages.sig, error 404
 * Failed to download
 http://downloads.openmoko.org/repository/Om2008.8/om-gta02/Packages.sig, error 404
 * Failed to download http://buildhost.automated.it/OM2007.2/packages/all/Packages.sig, error 404
 * Failed to download http://buildhost.automated.it/OM2007.2/packages/armv4t/Packages.sig, error 404
 * Failed to download http://buildhost.automated.it/OM2007.2/packages/neo1973/Packages.sig, error 404
 * Failed to download http://buildhost.automated.it/OM2007.2/packages/om-gta01/Packages.sig, 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")
interface.Dial("12345")
     But when I make "dbus-launch python my_program" or simply "python my_program", I receive this:

Traceback (most recent call last):                      
  File "test.py", line 2, in <module>                   
    import
 dbus                                         
  File "/usr/lib/python2.6/site-packages/dbus/__init__.py", line 100, in <module>
    from dbus._dbus import Bus, SystemBus, SessionBus, StarterBus                
  File "/usr/lib/python2.6/site-packages/dbus/_dbus.py", line 46, in <module>    
    from dbus.bus import BusConnection                                           
  File
 "/usr/lib/python2.6/site-packages/dbus/bus.py", 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,
          Ovidiu



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

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

On Wed, 03 Jun 2009, Robin Paulson wrote:
> 2009/6/3 Anthony Winter <awtel at sayne.org>:
> > 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 
paroli/illume?
> > 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
> http://wiki.openmoko.org/wiki/Paroli#FAQ
> 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...

-- 
Ant

_______________________________________________
support mailing list
support at lists.openmoko.org
https://lists.openmoko.org/mailman/listinfo/support





      
-----Inline Attachment Follows-----

_______________________________________________
support mailing list
support at lists.openmoko.org
https://lists.openmoko.org/mailman/listinfo/support



      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.openmoko.org/pipermail/support/attachments/20090603/07aaceee/attachment-0001.htm 


More information about the support mailing list