[OSM-talk] routing and distance calculation

kenneth gonsalves lawgon at thenilgiris.com
Mon Jul 25 10:51:54 BST 2011

On Mon, 2011-07-25 at 10:28 +0200, yvecai at gmail.com wrote:
> Pyroute

tried it - but get this error:

[lawgon at xlquest pyroute]$ python gui.py 
[<poi_base.poiGroup instance at 0x952cfcc>, <poi_base.poiGroup instance
at 0x952cf6c>]
Loading POIs from /home/lawgon/pyroute/Setup/poi.txt
Error while parsing file
No GPSD detected, position information will not be available
No such tracklog "data/sketches/latest.gpx"
No such tracklog "data/track.gpx"
Loading OSM data from data/routing.osm
No such data file data/routing.osm
Downloading tah_9_254_169
Traceback (most recent call last):
  File "gui.py", line 336, in do_expose_event
    return self._expose_cairo(event, cr)
  File "gui.py", line 332, in _expose_cairo
  File "gui.py", line 257, in draw
  File "/home/lawgon/pyroute/tiles.py", line 156, in draw
  File "/home/lawgon/pyroute/tiles.py", line 107, in loadImage
  File "/home/lawgon/pyroute/tiles.py", line 41, in downloadTile
    urllib.urlretrieve(url, filename)
  File "/usr/lib/python2.7/urllib.py", line 91, in urlretrieve
    return _urlopener.retrieve(url, filename, reporthook, data)
  File "/usr/lib/python2.7/urllib.py", line 237, in retrieve
    fp = self.open(url, data)
  File "/usr/lib/python2.7/urllib.py", line 205, in open
    return getattr(self, name)(url)
  File "/usr/lib/python2.7/urllib.py", line 342, in open_http
  File "/usr/lib/python2.7/httplib.py", line 937, in endheaders
  File "/usr/lib/python2.7/httplib.py", line 797, in _send_output
  File "/usr/lib/python2.7/httplib.py", line 759, in send
  File "/usr/lib/python2.7/httplib.py", line 740, in connect
    self.timeout, self.source_address)
  File "/usr/lib/python2.7/socket.py", line 553, in create_connection
    for res in getaddrinfo(host, port, 0, SOCK_STREAM):
IOError: [Errno socket error] [Errno -2] Name or service not known
Handling last few checks before we close

More information about the talk mailing list