Re: [OSM-talk] Pyroute

2011-07-27 Thread Luis Quesada
(Sorry! I meant to send this to the list)

On Tue, July 26, 2011 5:27 pm, Luis Quesada wrote:
> On 23/07/11 23:45, Łukasz Stelmach wrote:
>> Luis Quesada  writes:
>>
>>> I am having the error listed at the end when trying to run python gui.py
>>>File "/home/lquesada/pyroute/tiles.py", line 98, in loadImage
>>>  self.images[name]  = cairo.ImageSurface.create_from_png(filename)
>>> MemoryError
>> Hard to tell. My first *guess* is that there is something wrong with
>> Cairo bindings for Python[1] or with the Cairo itself.
>>
>>
>> Footnotes:
>> [1] http://cairographics.org/pycairo/
>>
> Dear Łukasz,
>
> Thank you very much for your answer. I installed the latest versions of
> both pycairo and cairo. It seems they are both fine:
>
>  >>> import cairo
>  >>> cairo.cairo_version_string()
> '1.10.2'
>  >>> cairo.version
> '1.8.8'
>
> Cheers,
> Luis
>


-- 
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

___
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk


[OSM-talk] Pyroute

2011-07-21 Thread Luis Quesada

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@lucia:~/pyroute$ python gui.py
[, 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


___
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk