Hi,

I have two questions. My operating system is Ubuntu 12.04 and I followed the tutorial Building a tile server from packages from switch2osm.org.

My first question: How can I found out which version of mapnik is installed or do you know which version is installed by this package (I installed it 2 weeks ago)? in mapnik tutorial I found the command mapnik-config -v for checking the mapnik version, but that throws an error:

The program 'mapnik-config' is currently not installed. You can install it by typing: sudo apt-get install libmapnik2-dev

But mapnik is installed and works with mod_tile. On one webpage I readed that mapnik-config only exists if you have a mapnik version 2.x, but on my server I found a diretory /usr/lib/mapnik/2.0/

My second question: I would execute mapnik on command line to see debug informations to develop my own mapnik style. But But if I execute the following command in python import mapnik, it throws the following error:

Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: No module named mapnik

I also tried it with import mapnik2, but same error. (mapnik is installed and works finde with mod_tile)

Anybody has an idea?

Thanks, Klaus

asked 17 Aug '14, 03:00

klausschreiber's gravatar image

klausschreiber
26113
accept rate: 0%

edited 19 Aug '14, 13:45


Try import mapnik2. Some versions of mapnik use this name instead.

permanent link

answered 18 Aug '14, 09:35

pnorman's gravatar image

pnorman
2.4k52140
accept rate: 19%

3

Thanks for your answer. I already tried this but the error was the same

Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: No module named mapnik2

(18 Aug '14, 13:45) klausschreiber

The issue was with version of Mapnik, Please look at

  1. https://github.com/mapnik/mapnik/wiki/UbuntuInstallation

for the required informations

permanent link

answered 10 Oct '16, 07:32

SUKHJIT%20SINGH%20SEHRA's gravatar image

SUKHJIT SING...
261
accept rate: 0%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×312
×236
×53
×43

question asked: 17 Aug '14, 03:00

question was seen: 6,678 times

last updated: 10 Oct '16, 07:32

powered by OSQA