[MapProxy] trouble with deployment / mod wsgi

Mark Volz MarkVolz at co.lyon.mn.us
Mon Sep 16 06:07:55 PDT 2013


I installed mapproxy and was able to test it on my machine using mapproxy-util serve-develop mapproxy.yaml and accessing it through localhost:8080/demo/.  However, I was unable to get mapproxy to work under mod-wsgi.  On the client side I had an internal service error.  

 Here is the error from the server:

[Sun Sep 15 17:28:04 2013] [error] [client] mod_wsgi (pid=3836): Target WSGI script 'C:/mapproxy_venv/Scripts/config.py' cannot be loaded as Python module.
[Sun Sep 15 17:28:04 2013] [error] [client] mod_wsgi (pid=3836): Exception occurred processing WSGI script 'C:/mapproxy_venv/Scripts/config.py'.
[Sun Sep 15 17:28:04 2013] [error] [client] Traceback (most recent call last):
[Sun Sep 15 17:28:04 2013] [error] [client]   File "C:/mapproxy_venv/Scripts/config.py", line 9, in <module>
[Sun Sep 15 17:28:04 2013] [error] [client]     from mapproxy.wsgiapp import make_wsgi_app
[Sun Sep 15 17:28:04 2013] [error] [client] ImportError: No module named mapproxy.wsgiapp

In addition I thought I noticed a warning about mod_wsgi being compiled for python 2.7.  I am using 2.7.5.  There was only one download option for python 2.7.x.  Does this matter?

How can I fix this this error?


Mark Volz, GISP
GIS Specialist

More information about the MapProxy mailing list