This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

Anybody know about this error?- osm solar

0

I have installed osm2pgsql, postgresql, postgis, tilestache etc what i need thing for OSM Solar.

And download osm file from geofabrik and put them into postgresql.

however, when i run the 'tilestache-server.py' i saw this messages

127.0.0.1 - - [11/Dec/2013 02:26:18] "GET /solar-light/1/1/1.png HTTP/1.1" 500 -
Error on request:
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/Werkzeug-0.9.4-py2.7.egg/werkzeug/serving.py", line 177, in run_wsgi
    execute(self.server.app)
  File "/usr/local/lib/python2.7/dist-packages/Werkzeug-0.9.4-py2.7.egg/werkzeug/serving.py", line 165, in execute
    application_iter = app(environ, start_response)
  File "/usr/local/lib/python2.7/dist-packages/TileStache/__init__.py", line 379, in __call__
    status_code, headers, content = requestHandler2(self.config, path_info, query_string, script_name)
  File "/usr/local/lib/python2.7/dist-packages/TileStache/__init__.py", line 255, in requestHandler2
    status_code, headers, content = layer.getTileResponse(coord, extension)
  File "/usr/local/lib/python2.7/dist-packages/TileStache/Core.py", line 414, in getTileResponse
    tile = self.render(coord, format)
  File "/usr/local/lib/python2.7/dist-packages/TileStache/Core.py", line 495, in render
    tile = provider.renderArea(width, height, srs, xmin, ymin, xmax, ymax, coord.zoom)
  File "/usr/local/lib/python2.7/dist-packages/TileStache/Mapnik.py", line 115, in renderArea
    self.mapnik = get_mapnikMap(self.mapfile)
  File "/usr/local/lib/python2.7/dist-packages/TileStache/Mapnik.py", line 399, in get_mapnikMap
    mapnik.load_map(mmap, str(mapfile))
RuntimeError: Failed to parse expression: "name" in rule 'rule 367' in style 'text style 106 (name)' in TextSymbolizer at line 1704 of '/home/lee/TileStache-1.49.8/scripts/tile-style.xml'
127.0.0.1 - - [11/Dec/2013 02:26:18] "GET /solar-light/1/1/0.png HTTP/1.1" 500 -
Error on request:
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/Werkzeug-0.9.4-py2.7.egg/werkzeug/serving.py", line 177, in run_wsgi
    execute(self.server.app)
  File "/usr/local/lib/python2.7/dist-packages/Werkzeug-0.9.4-py2.7.egg/werkzeug/serving.py", line 165, in execute
    application_iter = app(environ, start_response)
  File "/usr/local/lib/python2.7/dist-packages/TileStache/__init__.py", line 379, in __call__
    status_code, headers, content = requestHandler2(self.config, path_info, query_string, script_name)
  File "/usr/local/lib/python2.7/dist-packages/TileStache/__init__.py", line 255, in requestHandler2
    status_code, headers, content = layer.getTileResponse(coord, extension)
  File "/usr/local/lib/python2.7/dist-packages/TileStache/Core.py", line 414, in getTileResponse
    tile = self.render(coord, format)
  File "/usr/local/lib/python2.7/dist-packages/TileStache/Core.py", line 495, in render
    tile = provider.renderArea(width, height, srs, xmin, ymin, xmax, ymax, coord.zoom)
  File "/usr/local/lib/python2.7/dist-packages/TileStache/Mapnik.py", line 115, in renderArea
    self.mapnik = get_mapnikMap(self.mapfile)
  File "/usr/local/lib/python2.7/dist-packages/TileStache/Mapnik.py", line 399, in get_mapnikMap
    mapnik.load_map(mmap, str(mapfile))
RuntimeError: Failed to parse expression: "name" in rule 'rule 367' in style 'text style 106 (name)' in TextSymbolizer at line 1704 of '/home/lee/TileStache-1.49.8/scripts/tile-style.xml'
127.0.0.1 - - [11/Dec/2013 02:26:18] "GET /solar-light/null HTTP/1.1" 400 -

everthing is alright(I think), I don't know why is it not working :-

anybody knows about this??

asked 11 Dec '13, 10:28

leeoh's gravatar image

leeoh
11223
accept rate: 0%

edited 11 Dec '13, 10:42

scai's gravatar image

scai ♦
33.3k21309459

1

I'm not experienced with all details of the rendering stack, but looks like an conflict between the mapnik map style and the available mapnik version?
Which tutorial did you follow to setup the stack? http://www.switch2osm.org?

(11 Dec '13, 18:12) iii
1

What versions of everything are you using and on what platform? I'm not in any way familar with TileStache, but perhaps the OSM Solar mapnik style (which based on the stuff in Github, looks quite old) depends on an older version of Mapnik than what you're using?

(11 Dec '13, 18:59) SomeoneElse ♦
1

I have installed my self mapnik and etc

My Mapnik version is 2.2.0, Postgresql is 9.1.11 and others are followed OSM Solar.

(12 Dec '13, 01:59) leeoh

Source code available on GitHub .