I've install mapnik by this tutorial https://github.com/mapnik/mapnik/wiki/WindowsInstallation . I think installation over succeed becouse test on 6. step have not errors.
Next I procceed by this tutorial: http://www.bostongis.com/PrinterFriendly.aspx?content_name=generating_osm_tiles
and I try this command : python generate_xml.py osm.xml my_osm.xml --dbname=postgis --user postgres --port 5432 --extent 2430885.23, 6221979.54,2452356.05, 6243283.96 --accept-none
with this error: Error: saving xml requires Mapnik python bindings to be installed
So I google python bindings and found this: https://github.com/mapnik/python-mapnik
and install it pip install mapnik
Collecting mapnik
Downloading mapnik-0.1-cp27-none-any.whl (37.4MB)
100% |################################| 37.4MB 30kB/s
Installing collected packages: mapnik
Successfully installed mapnik-0.1
and next command python setup.py install
with error:
Traceback (most recent call last):
File "setup.py", line 87, in <module>
' +', ' ', cflags.replace('-g ', '').replace('-Os', '').replace('-arch i386', ''))
AttributeError: 'NoneType' object has no attribute 'replace'`
here is setup.py: http://pastebin.com/LZiGQTmz
I install mapnik 2.2 and python 2.7, and OS windows. Any ideas please?