[MapProxy] Python 3 support for MapProxy
Jean-Claude Repetto
jrepetto at free.fr
Tue Dec 31 03:58:33 PST 2013
Le 29/11/2013 12:10, Oliver Tonnhofer a écrit :
>
> You can download the latest py3-branch as a package from GitHub: https://github.com/mapproxy/mapproxy/archive/py3.zip
>
Hi,
I have tried this version on a new Linux system where Python3 is the
default.
No problem during the installation, but after having launched
maproxy-util serve-develop and opened a browser on localhost:8080, I got
these error messages :
$ mapproxy-util serve-develop osm.yaml
[2013-12-31 11:43:25,713] mapproxy.config - INFO - reading:
/home/jcr/mapproxy/osm.yaml
[info] * Running on http://127.0.0.1:8080/ (Press CTRL+C to quit)
[info] * Restarting with reloader
[2013-12-31 11:43:26,287] mapproxy.config - INFO - reading:
/home/jcr/mapproxy/osm.yaml
Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/lib64/python3.3/threading.py", line 637, in _bootstrap_inner
self.run()
File "/usr/lib64/python3.3/threading.py", line 594, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib64/python3.3/socketserver.py", line 613, in
process_request_thread
self.handle_error(request, client_address)
File "/usr/lib64/python3.3/socketserver.py", line 610, in
process_request_thread
self.finish_request(request, client_address)
File "/usr/lib64/python3.3/socketserver.py", line 345, in finish_request
self.RequestHandlerClass(request, client_address, self)
File "/usr/lib64/python3.3/socketserver.py", line 666, in __init__
self.handle()
File
"/usr/lib64/python3.3/site-packages/mapproxy/util/ext/serving.py", line
217, in handle
rv = BaseHTTPRequestHandler.handle(self)
File "/usr/lib64/python3.3/http/server.py", line 400, in handle
self.handle_one_request()
File
"/usr/lib64/python3.3/site-packages/mapproxy/util/ext/serving.py", line
252, in handle_one_request
return self.run_wsgi()
File
"/usr/lib64/python3.3/site-packages/mapproxy/util/ext/serving.py", line
194, in run_wsgi
execute(self.server.app)
File
"/usr/lib64/python3.3/site-packages/mapproxy/util/ext/serving.py", line
182, in execute
application_iter = app(environ, start_response)
File "/usr/lib64/python3.3/site-packages/mapproxy/wsgiapp.py", line
172, in __call__
match = self.handler_path_re.match(req.path)
TypeError: can't use a string pattern on a bytes-like object
Do you have an idea of the source of the problem ?
Best regards,
Jean-Claude
More information about the MapProxy
mailing list