<div>in the demo app inside mapproxy WMTS work properly, WMS too</div><div>But when I tried to access with openlayers I've got a bad request (no image)</div><div>And in the Demo app when i click on "WMTS view capabilieties html page" </div>
I've got this MapProxy error:<br><br><div>Collecting Python Trace Output...</div><div>C:\Python27\lib\site-packages\mapproxy-1.4.0-py2.7.egg\mapproxy\request\base.py:</div><div>162: PendingDeprecationWarning: cgi.parse_qsl is deprecated, use urlparse.parse_</div>
<div>qsl instead</div><div> for key, value in cgi.parse_qsl(str(qs), include_empty):</div><div>Traceback (most recent call last):</div><div> File "C:\Python27\lib\site-packages\mapproxy-1.4.0-py2.7.egg\mapproxy\wsgiapp.</div>
<div>py", line 133, in __call__</div><div> resp = self.handlers[handler_name].handle(req)</div><div> File "C:\Python27\lib\site-packages\mapproxy-1.4.0-py2.7.egg\mapproxy\service\</div><div>base.py", line 30, in handle</div>
<div> return handler(parsed_req)</div><div> File "C:\Python27\lib\site-packages\mapproxy-1.4.0-py2.7.egg\mapproxy\service\</div><div>wmts.py", line 63, in capabilities</div><div> result = self.capabilities_class(service, self.layers.values(), self.matrix_</div>
<div>sets).render(request)</div><div> File "C:\Python27\lib\site-packages\mapproxy-1.4.0-py2.7.egg\mapproxy\service\</div><div>wmts.py", line 121, in render</div><div> return self._render_template(_map_request.capabilities_template)</div>
<div> File "C:\Python27\lib\site-packages\mapproxy-1.4.0-py2.7.egg\mapproxy\service\</div><div>wmts.py", line 131, in _render_template</div><div> doc = template.substitute(**self.template_context())</div><div>
File "C:\Python27\lib\site-packages\mapproxy-1.4.0-py2.7.egg\mapproxy\util\ext</div><div>\tempita\__init__.py", line 160, in substitute</div><div> result, defs, inherit = self._interpret(ns)</div><div> File "C:\Python27\lib\site-packages\mapproxy-1.4.0-py2.7.egg\mapproxy\util\ext</div>
<div>\tempita\__init__.py", line 171, in _interpret</div><div> self._interpret_codes(self._parsed, ns, out=parts, defs=defs)</div><div> File "C:\Python27\lib\site-packages\mapproxy-1.4.0-py2.7.egg\mapproxy\util\ext</div>
<div>\tempita\__init__.py", line 199, in _interpret_codes</div><div> self._interpret_code(item, ns, out, defs)</div><div> File "C:\Python27\lib\site-packages\mapproxy-1.4.0-py2.7.egg\mapproxy\util\ext</div>
<div>
\tempita\__init__.py", line 213, in _interpret_code</div><div> self._interpret_for(vars, expr, content, ns, out, defs)</div><div> File "C:\Python27\lib\site-packages\mapproxy-1.4.0-py2.7.egg\mapproxy\util\ext</div>
<div>\tempita\__init__.py", line 257, in _interpret_for</div><div> self._interpret_codes(content, ns, out, defs)</div><div> File "C:\Python27\lib\site-packages\mapproxy-1.4.0-py2.7.egg\mapproxy\util\ext</div>
<div>\tempita\__init__.py", line 199, in _interpret_codes</div><div> self._interpret_code(item, ns, out, defs)</div><div> File "C:\Python27\lib\site-packages\mapproxy-1.4.0-py2.7.egg\mapproxy\util\ext</div>
<div>
\tempita\__init__.py", line 213, in _interpret_code</div><div> self._interpret_for(vars, expr, content, ns, out, defs)</div><div> File "C:\Python27\lib\site-packages\mapproxy-1.4.0-py2.7.egg\mapproxy\util\ext</div>
<div>\tempita\__init__.py", line 246, in _interpret_for</div><div> for item in expr:</div><div> File "C:\Python27\lib\site-packages\mapproxy-1.4.0-py2.7.egg\mapproxy\service\</div><div>wmts.py", line 193, in __iter__</div>
<div> origin = self.grid.origin_tile(level, 'ul')</div><div> File "C:\Python27\lib\site-packages\mapproxy-1.4.0-py2.7.egg\mapproxy\grid.py"</div><div>, line 443, in origin_tile</div><div> assert self.supports_access_with_origin(origin), 'TODO error exception'</div>
<div>AssertionError: TODO error exception</div><div>Traceback (most recent call last):</div><div> File "C:\Python27\lib\site-packages\mapproxy-1.4.0-py2.7.egg\mapproxy\wsgiapp.</div><div>py", line 133, in __call__</div>
<div> resp = self.handlers[handler_name].handle(req)</div><div> File "C:\Python27\lib\site-packages\mapproxy-1.4.0-py2.7.egg\mapproxy\service\</div><div>demo.py", line 91, in handle</div><div> capabilities = urlopen(url)</div>
<div> File "C:\Python27\Lib\urllib2.py", line 126, in urlopen</div><div> return _opener.open(url, data, timeout)</div><div> File "C:\Python27\Lib\urllib2.py", line 406, in open</div><div> response = meth(req, response)</div>
<div> File "C:\Python27\Lib\urllib2.py", line 519, in http_response</div><div> 'http', request, response, code, msg, hdrs)</div><div> File "C:\Python27\Lib\urllib2.py", line 444, in error</div>
<div> return self._call_chain(*args)</div><div> File "C:\Python27\Lib\urllib2.py", line 378, in _call_chain</div><div> result = func(*args)</div><div> File "C:\Python27\Lib\urllib2.py", line 527, in http_error_default</div>
<div> raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)</div><div>HTTPError: HTTP Error 500: Internal Server Error</div><div><br></div>