mapnik / python-mapnik

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

python-mapnik has no installation candidate #212

Closed Kradenko closed 4 years ago

Kradenko commented 4 years ago

Hi,

I have recently installed Ubuntu 19.10 on a Raspberry Pi 4 with 4GB of memory. As there is no tutorial yet for 19.10 I have used this tutorial https://switch2osm.org/manually-building-a-tile-server-18-04-lts/. But I have hit a snag. The python-mapnik package doesn't seem exist when trying to emerge.

pi@ubuntu:~$ sudo apt-get install python-mapnik Reading package lists... Done Building dependency tree Reading state information... Done Package python-mapnik is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source

E: Package 'python-mapnik' has no installation candidate

And I am building it on the following:

Linux ubuntu 5.3.0-1007-raspi2 #8-Ubuntu SMP Thu Oct 10 12:42:47 UTC 2019 aarch64 aarch64 aarch64 GNU/Linux

Is this package to still be added? I do see there is a python3-mapnik package, is it it's replacement?

I did find if I user python3 I could import mapnik. But then I get this error when compiling mod_tile:

src/gen_tile.cpp:1:10: fatal error: mapnik/version.hpp: No such file or directory

Any way I could get it working?

Kradenko commented 4 years ago

Oh, figured it out. Installed python3-mapnik instead of python-mapnik. And then just followed this: https://unix.stackexchange.com/a/498264.

Works flawlessly.