Add a New Comment Rich Markup
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 ...
Which version of Boost and Cairo are used when generating this backtrace?
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)
(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)
Attach Files: Comment:
No files currently attached
Depends on the following items: None found
Items that depend on this one: None found
There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.
Only logged-in users can vote.
Please enter the title of George Orwell's famous dystopian book (it's a date):
Copyright © 2023 Free Software Foundation, Inc. Verbatim copying and distribution of this entire article is permitted in any medium, provided this notice is preserved. The Levitating, Meditating, Flute-playing Gnu logo is a GNU GPL'ed image provided by the Nevrax Design Team. Source Code
Powered by Savane 3.12