[OSM-talk] Pyroute

Luis Quesada l.quesada at 4c.ucc.ie
Thu Jul 21 18:27:30 BST 2011


Dear all,

(Sorry if this is not the right forum for this question)
I am having error listed at the end when trying to run python gui.py

I am basically following the instructions at :

http://wiki.openstreetmap.org/wiki/Pyroute

svn co http://svn.openstreetmap.org/applications/routing/pyroute/
cd pyroute/
python gui.py

Could somebody tell me what I am doing wrong?

Thanks in advance!

Cheers,
Luis

lquesada at lucia:~/pyroute$ python gui.py
[<poi_base.poiGroup instance at 0xa0c5e4c>, <poi_base.poiGroup instance 
at 0xa0a750c>]
Loading POIs from /home/lquesada/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
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/lquesada/pyroute/tiles.py", line 156, in draw
     self.loadImage(x,y,z,layer)
   File "/home/lquesada/pyroute/tiles.py", line 98, in loadImage
     self.images[name]  = cairo.ImageSurface.create_from_png(filename)
MemoryError
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/lquesada/pyroute/tiles.py", line 156, in draw
     self.loadImage(x,y,z,layer)
   File "/home/lquesada/pyroute/tiles.py", line 98, in loadImage
     self.images[name]  = cairo.ImageSurface.create_from_png(filename)
MemoryError
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/lquesada/pyroute/tiles.py", line 156, in draw
     self.loadImage(x,y,z,layer)
   File "/home/lquesada/pyroute/tiles.py", line 98, in loadImage
     self.images[name]  = cairo.ImageSurface.create_from_png(filename)
MemoryError

-- 
Luis Quesada
Research Scientist
Cork Constraint Computation Centre
University College Cork
Cork - Ireland
Phone: 	(+353) 21 420 5376
Fax:	(+353) 21 420 5369
Web:	http://4c.ucc.ie/~lquesada




More information about the talk mailing list