From Openmoko

Jump to: navigation, search

Pyroute is one of the applications that runs on the Openmoko Phones. For a list of all applications, visit Applications


Cribbed from the mailing list, with some modifications that I had to make for it to work on my neo1973.

This is reconstructed from what I remember & my notes of what worked for me. Someone who tries this & sees modifications needed, please update!

On the neo: 'ipkg install python-pycairo python-pygtk python-netclient python-xml python-html python-netserver python-crypt python-threading'

I downloaded the packages from The actual commands I issued were for the .ipk files I downloaded.

Download pyroute as per I actually used svn to get it on my main box, then used 'tar czf pyroute.tgz pyroute', 'scp pyroute.tgz', and finally 'tar xzf pyroute.tgz' on the neo.

I had to hand edit /usr/lib/python2.5/ and change 'import hashlib' to '#import hashlib'. Some day we should figure out where to get _md5 and eliminate this step.

Then run 'python' in the directory you expanded pyroute into.

If it crashes with the following output:

Traceback (most recent call last):
  File "./", line 40, in <module>
    import gtk
  File "/usr/lib/python2.5/site-packages/gtk-2.0/gtk/", line 82, in <module>
NameError: name 'init' is not defined

edit the file /usr/lib/python2.5/site-packages/gtk-2.0/gtk/ and change the call to init() on line 82 to _init().

Unfortunately, it takes a very long time to come up the first time, and some buttons don't appear to work. It does read gpsd and show you your location.

450px-Pyroute openmoko.png Pyroute

Pyroute is a routing program written in Python. It features mobile phone GUI for maps, GPS, and routing.

Tested on:

Personal tools