On Thu, 2008-05-29 at 15:50 -0700, yellowbkpk wrote:
> After compiling osm2pgsql myself, I got it to correctly import. The next step
> (from http://wiki.openstreetmap.org/index.php/Mapnik) is to render, and when
> I run generate_image.py, I get:
> 
> Traceback (most recent call last):
>   File "./generate_image.py", line 46, in <module>
>     view.save(map_uri,'png')
> AttributeError: 'ImageView' object has no attribute 'save'
> 
> Something tells me I need to update one of the Python modules (because I
> installed them via apt-get), but which one?
> 
> Thanks!

Does it work if you change that line to:

save_to_file(tile_uri,'png',view)

If so, then you are running mapnik 0.4 (or older). The current scripts
assume that you are running 0.5 (or 0.5.1).

        Jon



_______________________________________________
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk

Reply via email to