6

I having a problem installing MapProxy 1.9.0 on Windows 7. I have Python 2.7.12 installed. I followed the instructions from this documentation.

But when I try to launch MapProxy, I get the following error:

(mapproxy_venv) C:\mapproxy_venv\Scripts\mymapproxy>mapproxy-util serve-develop mapproxy.yaml
[2016-11-10 09:47:57,851] mapproxy.config - INFO - reading: C:\mapproxy_venv\Scripts\mymapproxy\mapproxy.yaml
[info]  * Running on http://127.0.0.1:8080/ (Press CTRL+C to quit)
[info]  * Restarting with reloader
  File "c:\mapproxy_venv\Scripts\mapproxy-util.exe", line 1
SyntaxError: Non-ASCII character '\x90' in file c:\mapproxy_venv\Scripts\mapproxy-util.exe on line 1, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details

mapproxy-util --version: MapProxy 1.9.0

python -V: Python 2.7.12

6
  • Could you post your config file? Commented Nov 21, 2016 at 19:27
  • I don't find it on mapproxy_venv directory, what is the name of the file ?
    – Raiko
    Commented Nov 23, 2016 at 8:35
  • It's the mapproxy.yaml file. Commented Nov 28, 2016 at 15:15
  • I don't modify it, it is the generated one
    – Raiko
    Commented Dec 5, 2016 at 10:41
  • 2
    I can also reproduce this, there's a bug open on the issue tracker as well: github.com/mapproxy/mapproxy/issues/279
    – chrki
    Commented Dec 11, 2016 at 12:23

1 Answer 1

3
+50

Update, Jan 2017:

There is a new [MapProxy] 1.9.1 release which should fix this.

Source: https://github.com/mapproxy/mapproxy/issues/279


There is an open bug about this on the MapProxy issue tracker here: https://github.com/mapproxy/mapproxy/issues/279

Judging from the comments here and on the issue tracker the most reliable way to get it working again is to downgrade from Python 2.7.12 to 2.7.9.

You are using virtualenv, you can install Python 2.7.9 alongside 2.7.12 (uncheck "Add to PATH" during installation to keep 2.7.12 the default) and then create an environment with 2.7.9:

C:\code>virtualenv --python=C:\Python279\python.exe mapproxy_venv
C:\code>mapproxy_venv\Scripts\activate
(mapproxy_venv) C:\code>python --version
Python 2.7.9

And then continue with the rest of the installation.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.