severity 466144 grave
tags 466144 +confirmed
thanks

On Sat, Feb 16, 2008 at 09:30:06PM +0100, Giovanni Mascellani wrote:

> I use Mapnik in a Python script, which, after being updated today to
> the last version, fails with:
> 
> render_tiles( (10.333328247070311, 43.680784110954846, 10.462417602539062, 
> 43.765143524274066) /home/giovanni/mapnik/osm.xml 
> /home/giovanni/mapnik/tiles/ 0 18 Pisa )
> Traceback (most recent call last):
>   File "./generate_tiles.py", line 135, in <module>
>     render_tiles(bbox, mapfile, tile_dir, 0, 18, "Pisa")
>   File "./generate_tiles.py", line 53, in render_tiles
>     load_map(m,mapfile)
> UserWarning: Could not create datasource. No plugin found for type 'shape' in 
> layer 'world-1'
> 
> That is, Mapnik can't find the shape input plugin. Strace-ing a while,
> I have discovered that it is searching it in a wrong path:
> 
> $ strace ./generate_tiles.py 2>&1 | grep input
> stat64("/usr/lib/0.5/mapnik/input", 0xbfcf627c) = -1 ENOENT (No such file or 
> directory)
> 
> The right path (by looking at "dpkg -L libmapnik0.5") should
> be /usr/lib/mapnik/0.5/input/shape.input: "mapnik" and "0.5" are
> swapped!

What an embarrassing mistake. I focussed all my testing on the C++
interface, forgetting about the python bindings. You are of course
correct in your analysis and the fix is simple; however I need to dig a
little deeper as I'm having problems getting the python bindings working
even with the path fix - I will hopefully get this sorted out in a day
or two.

Thanks,

Dominic.

-- 
Dominic Hargreaves | http://www.larted.org.uk/~dom/
PGP key 5178E2A5 from the.earth.li (keyserver,web,email)



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to