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

 
 

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

Submitted by:  Jumel Vincent-Xavier <vincentxavier>
Submitted on:  Mon 12 Nov 2012 10:53:27 AM UTC  
 
Category: ocitysmapSeverity: 3 - Normal
Priority: 5 - NormalStatus: None
Privacy: PublicAssigned to: None
Open/Closed: OpenRelease: None

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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>
Project 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>
Project 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>
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)

Jumel Vincent-Xavier <vincentxavier>

 

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

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    No Changes Have Been Made to This Item

    Back to the top


    Powered by Savane 3.1-cleanup1