mapnik error

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

mapnik error

This post has NOT been accepted by the mailing list yet.
This post was updated on .

I am new to manpnik and I keep getting this error message every time i try to compile sample code.

here's the root of the problem.

# set up your dataSource
datasource = mapnik.Shapefile(file="world_borders.shp")

# define the two layers to be used by this map
polygonLayer = mapnik.Layer("Polygons")
polygonLayer.datasource = datasource

error message

Traceback (most recent call last):
  File "", line 45, in <module>
    datasource = mapnik.Shapefile(file="world_borders.shp")
  File "C:\Python27\lib\site-packages\mapnik\", line 341, in Shapefil
    return CreateDatasource(keywords)
RuntimeError: Could not create datasource for type: 'shape'

I'd appreciate help from anyone thanks