help for newbie, and some python
ovidiu_gavril at yahoo.com
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:
* 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:
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 "test.py", line 2, in <module>
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>
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.
--- 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
> > 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
> 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
support mailing list
support at lists.openmoko.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the support