mapnik/mapnik — Issue #980: Code in documentation doesn't work
Author: charlesreid1
Created: 2011-12-03 19:59:48+00:00
State: open

The code listed on this page: https://github.com/mapnik/mapnik/wiki/GettingStartedInPython does not work. You use a variable "s" that is not defined (4th block of code down, on the page).

>>> s.rules.append(r)
Traceback (most recent call last):
File "", line 1, in
NameError: name 's' is not defined

Furthermore, it's not clear what should go there instead of s.