mapnik / python-mapnik

Python bindings for mapnik
GNU Lesser General Public License v2.1
160 stars 91 forks source link

source type is not polymorphic #169

Closed drnextgis closed 6 years ago

drnextgis commented 6 years ago

Trying to perform python setup.py install and get:

/usr/local/include/boost/python/object/inheritance.hpp:88:16: error: cannot dynamic_cast ‘(mapnik::freetype_engine*)source’ (of type ‘class mapnik::freetype_engine*’) to type ‘class mapnik::singleton<mapnik::freetype_engine, mapnik::CreateStatic>*’ (source type is not polymorphic)
         return dynamic_cast<Target*>(
                ^~~~~~~~~~~~~~~~~~~~~~
             static_cast<Source*>(source));
             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
error: command 'c++' failed with exit status 1
drnextgis commented 6 years ago

Cause of this issue was version mismatch between mapnik and python-mapnik. With using 3.0.13 for both ones all works fine.