bugMapOSMatic - Bugs: bug #37718, Blank file generated due to a...


bug #37718: Blank file generated due to a Boost/Cairo/Python error

Submitter:  Jumel Vincent-Xavier <vincentxavier>
Submitted:  Mon 12 Nov 2012 10:53:27 AM UTC
Category:  ocitysmap Severity:  3 - Normal
Priority:  * 5 - Normal Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open Release:  None
* Mandatory Fields

Add a New Comment Rich Markup

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 ...

Hartmut Holzgraefe <hartmut>
Group Member
Mon 12 Nov 2012 12:27:11 PM UTC, comment #1: 

Which version of Boost and Cairo are used when generating this backtrace?

David Mentré <dmentre>
Group administrator
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>
  File "./render.py", line 238, in main
  File "/home/users/endymion/src/ocitysmap/ocitysmap/__init__.py", line 462, in render
  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)

Jumel Vincent-Xavier <vincentxavier>


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by hartmut (Posted a comment)
  • -email is unavailable- added by dmentre (Posted a comment)
  • -email is unavailable- added by vincentxavier (Submitted the item)

    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.


    No changes have been made to this item

    Back to the top

    Powered by Savane 3.13-b921.
    Corresponding source code