[OSM-newbies] Setting up mapnik

Jason Reid osm at bowvalleytechnologies.com
Thu Apr 24 17:43:00 BST 2008


Sebastian Mauer wrote:
> Hello there,
>
> I've built mapnik-0.5.1 debian packages according to
> http://wiki.openstreetmap.org/index.php/Mapnik#For_Debian_Etch_.28stable.29_
> .28Mapnik_0.5.29
> and the resulting debs installed without a flaw.
>
> But after customizing set-mapnik-env and building my own osm.xml there seems
> to be a problem
> With my mapnik installation as ./generate_tiles.py fails with the following
> output:
>
> debian:/var/www/enexigo/mapnik# ./set-mapnik-env  ./generate_tiles.py
> render_tiles( (-180.0, -90.0, 180.0, 90.0) /var/www/enexigo/mapnik/osm.xml
> /var/www/enexigo/tiles/ 0 5 World )
>  got exception ...
> Traceback (most recent call last):
>   File "./generate_tiles.py", line 126, in ?
>     render_tiles(bbox, mapfile, tile_dir, 0, 5, "World")
>   File "./generate_tiles.py", line 53, in render_tiles
>     load_map(m,mapfile)
> RuntimeError: failed opening file: Bad file descriptor
>
> Is there a way to determine which file it tried to open / and why it failed?
>
> Greetings,
>
> Sebastian
>
>
> _______________________________________________
> newbies mailing list
> newbies at openstreetmap.org
> http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/newbies
>   
That error generally means that its having an issue opening a file 
somewhere along the way. Best bet is to monitor the process using strace 
('strace -e open ./generate_tiles.py') and see where its dieing. Note 
that there are a few legit 'file not found' that will be found, the 
issue usually seems to be related to either fonts or the 
world_boundaries and coastline files in my experience.

-- 
------------------------
 Jason Reid
 Web Technical Administrator
 Faculty of Social Sciences

 Social Sciences 515
 Phone: 220-7903
 ------------------------





More information about the newbies mailing list