Package Details: python-mapnik 3.0.16-4

Git Clone URL: https://aur.archlinux.org/python-mapnik.git (read-only, click to copy)
Package Base: python-mapnik
Description: Python3 bindings for Mapnik
Upstream URL: https://github.com/mapnik/python-mapnik
Licenses: LGPL
Submitter: geosam
Maintainer: mindthegap
Last Packager: mindthegap
Votes: 2
Popularity: 0.000000
First Submitted: 2017-04-06 14:57 (UTC)
Last Updated: 2023-12-04 15:06 (UTC)

Latest Comments

1 2 Next › Last »

tH0m4Ssxsqrd commented on 2024-12-15 03:04 (UTC) (edited on 2024-12-15 03:04 (UTC) by tH0m4Ssxsqrd)

The package won't build with Python 3.12 because of some API changes. Add this to the package.patch

--- a/src/python_grid_utils.cpp 2017-06-20 21:38:50.000000000 -0300
+++ b/src/python_grid_utils.cpp 2024-12-14 23:55:24.302148163 -0300
@@ -105,7 +105,7 @@
         }
         l.append(boost::python::object(
                      boost::python::handle<>(
-                         PyUnicode_FromUnicode(line.get(), array_size))));
+                         PyUnicode_FromWideChar(line.get(), array_size))));
     }
 }

@@ -168,7 +168,7 @@
         }
         l.append(boost::python::object(
                      boost::python::handle<>(
-                         PyUnicode_FromUnicode(line.get(), array_size))));
+                         PyUnicode_FromWideChar(line.get(), array_size))));
     }
 }

lowRAM commented on 2024-01-07 14:38 (UTC)

boost and boost-libs are required dependencies for building. I ran into this issue when trying to build on a freshly installed system.

Altay commented on 2023-12-04 15:21 (UTC)

Yes, it builds successfully for me now. Thanks!

mindthegap commented on 2023-12-04 15:09 (UTC)

It looks like the last mapnik build in the main repo on November 29 broke this build again with the error you are seeing. Otherwise I have no reasonable explanation why it was working before. Anyway, I can replicate this now and removed the patch causing the trouble. It works again for me. Maybe this fixes it for yo as well?

Altay commented on 2023-12-01 02:39 (UTC)

I'm building against the main repo's mapnik package, at version 3.1.0-21. The error occurs when it attempts to build its twenty-third target, which is mapnik_proj_transform.o.

mindthegap commented on 2023-11-30 19:49 (UTC)

It wasn't building for me before the changes I made and is building just fine for me against the main repo's mapnik package. It won't build against mapnik-git, because some APIs changed with Mapnik 4. What Mapnik version are you using?

Altay commented on 2023-11-24 21:23 (UTC)

This package doesn't build as of the recent changes made to it. There are 8 errors that all say class mapnik::proj_transform has no member named definition.

fupduck commented on 2019-03-26 20:16 (UTC)

Hi! Would you consider bringing back pycairo support? Adding a PYCAIRO_NO_IMPORT define and PYCAIRO=true will do the trick. Thx!

CFLAGS+=' -DPYCAIRO_NO_IMPORT'
PYCAIRO=true python setup.py install --root="$pkgdir" --optimize=1

andi5 commented on 2018-08-15 22:37 (UTC)

Looks like that multiple definition was fixed with https://github.com/mapnik/python-mapnik/pull/190.

timosa commented on 2018-04-25 13:22 (UTC)

Linking phase fails with error: multiple definition of `Pycairo_CAPI'