Python error setting up tile server on Ubuntu

Hello everyone,

I’m attempting to setup my own OSM tile server on ubuntu 17.10 by following this article: https://switch2osm.org/manually-building-a-tile-server-16-04-2-lts/

Everything works fine until I get to the part where I test if mapnik compiled and installed correctly. When I execute the following code:

python

import mapnik

I get this error from python: ImportError: /usr/lib/python2.7/dist-packages/mapnik/_mapnik.x86_64-linux-gnu.so: undefined symbol: _ZTIN6mapnik15freetype_engineE

I’m pretty new to linux so I’m unsure of how to fix this issue, I’ve confirmed that the freetype library package is installed correctly (as per the article) could it be because I’m using 17.10 instead of 16.04? Any help with this would be greatly appreciated.

Thanks,