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 (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

  • Could you post your config file? – user2441511 Nov 21 '16 at 19:27
  • I don't find it on mapproxy_venv directory, what is the name of the file ? – Raiko Nov 23 '16 at 8:35
  • It's the mapproxy.yaml file. – user2441511 Nov 28 '16 at 15:15
  • I don't modify it, it is the generated one – Raiko Dec 5 '16 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 Dec 11 '16 at 12:23

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
(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, privacy policy and cookie policy

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