[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
self.draw(cr)
File "gui.py", line 257, in draw
self.modules['tiles'].draw(cr)
File "/home/lawgon/pyroute/tiles.py", line 156, in draw
self.loadImage(x,y,z,layer)
File "/home/lawgon/pyroute/tiles.py", line 107, in loadImage
downloadTile(x,y,z,layer,filename)
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
h.endheaders(data)
File "/usr/lib/python2.7/httplib.py", line 937, in endheaders
self._send_output(message_body)
File "/usr/lib/python2.7/httplib.py", line 797, in _send_output
self.send(msg)
File "/usr/lib/python2.7/httplib.py", line 759, in send
self.connect()
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