[OSM-dev] mapnik

Mohamad Ali Mohamad.ali at intellitrac.com.au
Tue May 5 04:36:39 BST 2009

Hi Guys
I am trying to Redo the steps to build our own openstreetmap server:

I Rebuilt my System,
I jumped over those steps :
1. 		shared_buffers = 128MB # 16384 for 8.1 and earlier
		checkpoint_segments = 20
		maintenance_work_mem = 256MB # 256000 for 8.1 and earlier
		autovacuum = off




		crontab -e /etc/cron.d/postgresql-common

2.		wget
		tar zxvf world_boundaries-spherical.tgz

3. 		wget
		unzip processed_p.zip
		mv coastlines/* world_boundaries/
		rmdir coastlines
4.		cd world_boundaries
		wget http://tile.openstreetmap.org/shoreline_300.tar.bz2
		tar xvjf shoreline_300.tar.bz

5. 		./bin/osmosis --read-xml /home/username/planet-090311.osm.gz
--bounding-box left=-94 bottom=38 right=-71.5 top=50 --write-xml

And now I used An Osm File from cloudmade (xxx.osm.bz2 : 1.5 MB)
I run those commands as they are  (sure after editing set-mapnik-env ,
making and editing z0_generate_tiles.py ):
source set-mapnik-env
./customize-mapnik-map >$MAPNIK_MAP_FILE

I got this:
klay at ubuntu:~/mapnik$ ./z0_generate_tiles.py
Traceback (most recent call last):
  File "./z0_generate_tiles.py", line 43, in <module>
    from mapnik import *
ImportError: No module named mapnik

Please Help

More information about the dev mailing list