<div dir="ltr"><div>When I make a GetCapabilities request to my WMS service I get the following error. The GetCapabilties works for both TMS and WMTS.<br><br></div>Any Ideas, I'm running MapProxy 1.6 via gunicorn<br><div>
<br><br>Traceback (most recent call last):<br> File "/usr/lib/python2.6/site-<div dir="ltr">packages/mapproxy/wsgiapp.py", line 166, in __call__<br> resp = self.handlers[handler_name].handle(req)<br> File "/usr/lib/python2.6/site-packages/mapproxy/service/ows.py", line 38, in handle<br>
return self.services[service].handle(req)<br> File "/usr/lib/python2.6/site-packages/mapproxy/service/base.py", line 30, in handle<br> return handler(parsed_req)<br> File "/usr/lib/python2.6/site-packages/mapproxy/service/wms.py", line 170, in capabilities<br>
).render(map_request)<br> File "/usr/lib/python2.6/site-packages/mapproxy/service/wms.py", line 449, in render<br> return self._render_template(_map_request.capabilities_template)<br> File "/usr/lib/python2.6/site-packages/mapproxy/service/wms.py", line 459, in _render_template<br>
layer_srs_bbox=self.layer_srs_bbox,<br> File "/usr/lib/python2.6/site-packages/mapproxy/util/ext/tempita/__init__.py", line 160, in substitute<br> result, defs, inherit = self._interpret(ns)<br> File "/usr/lib/python2.6/site-packages/mapproxy/util/ext/tempita/__init__.py", line 171, in _interpret<br>
self._interpret_codes(self._parsed, ns, out=parts, defs=defs)<br> File "/usr/lib/python2.6/site-packages/mapproxy/util/ext/tempita/__init__.py", line 199, in _interpret_codes<br> self._interpret_code(item, ns, out, defs)<br>
File "/usr/lib/python2.6/site-packages/mapproxy/util/ext/tempita/__init__.py", line 219, in _interpret_code<br> base = self._eval(parts[0], ns, pos)<br> File "/usr/lib/python2.6/site-packages/mapproxy/util/ext/tempita/__init__.py", line 281, in _eval<br>
value = eval(code, self.default_namespace, ns)<br> File "<string>", line 1, in <module><br> File "/usr/lib/python2.6/site-packages/mapproxy/util/ext/tempita/__init__.py", line 519, in __call__<br>
self._template._interpret_codes(self._body, ns, out, subdefs)<br> File "/usr/lib/python2.6/site-packages/mapproxy/util/ext/tempita/__init__.py", line 199, in _interpret_codes<br> self._interpret_code(item, ns, out, defs)<br>
File "/usr/lib/python2.6/site-packages/mapproxy/util/ext/tempita/__init__.py", line 213, in _interpret_code<br> self._interpret_for(vars, expr, content, ns, out, defs)<br> File "/usr/lib/python2.6/site-packages/mapproxy/util/ext/tempita/__init__.py", line 257, in _interpret_for<br>
self._interpret_codes(content, ns, out, defs)<br> File "/usr/lib/python2.6/site-packages/mapproxy/util/ext/tempita/__init__.py", line 199, in _interpret_codes<br> self._interpret_code(item, ns, out, defs)<br>
File "/usr/lib/python2.6/site-packages/mapproxy/util/ext/tempita/__init__.py", line 219, in _interpret_code<br> base = self._eval(parts[0], ns, pos)<br> File "/usr/lib/python2.6/site-packages/mapproxy/util/ext/tempita/__init__.py", line 281, in _eval<br>
value = eval(code, self.default_namespace, ns)<br> File "<string>", line 1, in <module><br> File "/usr/lib/python2.6/site-packages/mapproxy/util/ext/tempita/__init__.py", line 519, in __call__<br>
self._template._interpret_codes(self._body, ns, out, subdefs)<br> File "/usr/lib/python2.6/site-packages/mapproxy/util/ext/tempita/__init__.py", line 199, in _interpret_codes<br> self._interpret_code(item, ns, out, defs)<br>
File "/usr/lib/python2.6/site-packages/mapproxy/util/ext/tempita/__init__.py", line 213, in _interpret_code<br> self._interpret_for(vars, expr, content, ns, out, defs)<br> File "/usr/lib/python2.6/site-packages/mapproxy/util/ext/tempita/__init__.py", line 257, in _interpret_for<br>
self._interpret_codes(content, ns, out, defs)<br> File "/usr/lib/python2.6/site-packages/mapproxy/util/ext/tempita/__init__.py", line 199, in _interpret_codes<br> self._interpret_code(item, ns, out, defs)<br>
File "/usr/lib/python2.6/site-packages/mapproxy/util/ext/tempita/__init__.py", line 219, in _interpret_code<br> base = self._eval(parts[0], ns, pos)<br> File "/usr/lib/python2.6/site-packages/mapproxy/util/ext/tempita/__init__.py", line 281, in _eval<br>
value = eval(code, self.default_namespace, ns)<br> File "<string>", line 1, in <module><br> File "/usr/lib/python2.6/site-packages/mapproxy/util/ext/tempita/__init__.py", line 519, in __call__<br>
self._template._interpret_codes(self._body, ns, out, subdefs)<br> File "/usr/lib/python2.6/site-packages/mapproxy/util/ext/tempita/__init__.py", line 199, in _interpret_codes<br> self._interpret_code(item, ns, out, defs)<br>
File "/usr/lib/python2.6/site-packages/mapproxy/util/ext/tempita/__init__.py", line 213, in _interpret_code<br> self._interpret_for(vars, expr, content, ns, out, defs)<br> File "/usr/lib/python2.6/site-packages/mapproxy/util/ext/tempita/__init__.py", line 257, in _interpret_for<br>
self._interpret_codes(content, ns, out, defs)<br> File "/usr/lib/python2.6/site-packages/mapproxy/util/ext/tempita/__init__.py", line 199, in _interpret_codes<br> self._interpret_code(item, ns, out, defs)<br>
File "/usr/lib/python2.6/site-packages/mapproxy/util/ext/tempita/__init__.py", line 219, in _interpret_code<br> base = self._eval(parts[0], ns, pos)<br> File "/usr/lib/python2.6/site-packages/mapproxy/util/ext/tempita/__init__.py", line 281, in _eval<br>
value = eval(code, self.default_namespace, ns)<br> File "<string>", line 1, in <module><br> File "/usr/lib/python2.6/site-packages/mapproxy/util/ext/tempita/__init__.py", line 519, in __call__<br>
self._template._interpret_codes(self._body, ns, out, subdefs)<br> File "/usr/lib/python2.6/site-packages/mapproxy/util/ext/tempita/__init__.py", line 199, in _interpret_codes<br> self._interpret_code(item, ns, out, defs)<br>
File "/usr/lib/python2.6/site-packages/mapproxy/util/ext/tempita/__init__.py", line 213, in _interpret_code<br> self._interpret_for(vars, expr, content, ns, out, defs)<br> File "/usr/lib/python2.6/site-packages/mapproxy/util/ext/tempita/__init__.py", line 246, in _interpret_for<br>
for item in expr:<br> File "/usr/lib/python2.6/site-packages/mapproxy/service/wms.py", line 436, in layer_srs_bbox<br> bbox = layer.extent.bbox_for(SRS(srs))<br> File "/usr/lib/python2.6/site-packages/mapproxy/layer.py", line 205, in bbox_for<br>
return self.srs.transform_bbox_to(srs, self.bbox)<br> File "/usr/lib/python2.6/site-packages/mapproxy/srs.py", line 171, in transform_bbox_to<br> result = calculate_bbox(transf_pts)<br> File "/usr/lib/python2.6/site-packages/mapproxy/srs.py", line 354, in calculate_bbox<br>
raise TransformationError()<br>TransformationError: at line 157 column 3 in file /usr/lib/python2.6/site-packages/mapproxy/service/templates/wms111capabilities.xml at line 157 column 3 in file /usr/lib/python2.6/site-packages/mapproxy/service/templates/wms111capabilities.xml at line 157 column 3 in file /usr/lib/python2.6/site-packages/mapproxy/service/templates/wms111capabilities.xml at line 162 column 3 in file /usr/lib/python2.6/site-packages/mapproxy/service/templates/wms111capabilities.xml<br>
Traceback (most recent call last):<br> File "/usr/lib/python2.6/site-packages/mapproxy/wsgiapp.py", line 166, in __call__<br> resp = self.handlers[handler_name].handle(req)<br> File "/usr/lib/python2.6/site-packages/mapproxy/service/demo.py", line 90, in handle<br>
capabilities = urlopen(url)<br> File "/usr/lib64/python2.6/urllib2.py", line 126, in urlopen<br> return _opener.open(url, data, timeout)<br> File "/usr/lib64/python2.6/urllib2.py", line 397, in open<br>
response = meth(req, response)<br> File "/usr/lib64/python2.6/urllib2.py", line 510, in http_response<br> 'http', request, response, code, msg, hdrs)<br> File "/usr/lib64/python2.6/urllib2.py", line 435, in error<br>
return self._call_chain(*args)<br> File "/usr/lib64/python2.6/urllib2.py", line 369, in _call_chain<br> result = func(*args)<br> File "/usr/lib64/python2.6/urllib2.py", line 518, in http_error_default<br>
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)<br>HTTPError: HTTP Error 500: Internal Server Error</div><br></div></div>