Sat 21 May 2016 11:01:15 AM UTC, comment #2:
This happens if the Python bindings for Mapnik haven't been compiled with Cairo support.
With the bundled bindings in Mapnik v2.x this happens if python-cairo-dev was not installed at the time of building Mapnik.
With the new standalone Python bindings for Mapnik v3.x you'd also have to explicitly set "PYCAIRO=true" when configuring with Scons to enable the Cairo specific functionalities, these are no longer automatically built if python-cairo-dev is present but only when explicitly asking for this to happen ...
|
Mon 12 Nov 2012 10:53:27 AM UTC, original submission:
I didn't have time to investigate this error, so I send the Trace.
Traceback (most recent call last):
File "./render.py", line 243, in <module>
sys.exit(main())
File "./render.py", line 238, in main
options.output_prefix)
File "/home/users/endymion/src/ocitysmap/ocitysmap/__init__.py", line 462, in render
file_prefix)
File "/home/users/endymion/src/ocitysmap/ocitysmap/__init__.py", line 521, in _render_one
renderer.render(surface, dpi, osm_date)
File "/home/users/endymion/src/ocitysmap/ocitysmap/layoutlib/single_page_renderers.py", line 407, in render
mapnik.render(rendered_map, ctx)
Boost.Python.ArgumentError: Python argument types in
mapnik._mapnik.render(Map, cairo.Context)
did not match C++ signature:
render(mapnik::Map, mapnik::image_32 {lvalue})
render(mapnik::Map, mapnik::image_32 {lvalue}, double)
render(mapnik::Map, mapnik::image_32 {lvalue}, double, unsigned int)
render(mapnik::Map, mapnik::image_32 {lvalue}, double, unsigned int, unsigned int)
|