[OSM-talk] Mapnik Import Error

yellowbkpk ian.dees at gmail.com
Thu May 29 23:50:12 BST 2008


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!


yellowbkpk wrote:
> 
> I'm running postgres-8.3-postgis on a Ubuntu 8.04 system.
> 
> I finished downloading the planet.osm file yesterday and started running
> osm2pgsql. When I woke up this morning, I had the following on my screen:
> 
> osm2pgsql SVN version 0.08-20071112 $Rev: 4842 $ 
> 
> Setting up table: planet_osm_point
> Setting up table: planet_osm_line
> Setting up table: planet_osm_polygon
> Setting up table: planet_osm_roads
> 
> Reading in file: /mnt/planet-latest.osm.bz2
> Processing: Node(237171k) Way(19252k) Relation(9k)
> Writing way(0k)
> 
> Node stats: total(237171271), max(262574346)
> Way stats: total(19252201), max(24252860)
> Relation stats: total(9051), max(12553)
> VACUUM ANALYZE planet_osm_point;
> ALTER TABLE planet_osm_point ALTER COLUMN way SET NOT NULL;
> CREATE INDEX way_index0 ON planet_osm_point USING GIST (way
> GIST_GEOMETRY_OPS);
> CREATE INDEX z_index0 ON planet_osm_point (z_order);
> CLUSTER way_index0 ON planet_osm_point;
> GRANT SELECT ON planet_osm_point TO PUBLIC;
> VACUUM ANALYZE planet_osm_point;
>  failed: ERROR:  VACUUM cannot be executed from a function or
> multi-command string
> 
> Error occurred, cleaning up
> 
> Can anyone suggest a workaround? When I received this message earlier, I
> ran the individual SQL commands one at a time and they all worked, but
> Mapnik couldn't render using the database. I guess there was more data to
> import after this step.
> 

-- 
View this message in context: http://www.nabble.com/Mapnik-Import-Error-tp17512349p17547787.html
Sent from the OpenStreetMap - General mailing list archive at Nabble.com.





More information about the talk mailing list