remove mapnik2 import outside from try statement