[MapProxy] ImportError: No module named mapproxy.wsgiapp

Oliver Tonnhofer olt at omniscale.de
Mon Nov 19 01:22:32 PST 2012


Hi,

On 19.11.2012, at 09:59, Christian Willmes wrote:
> No I get an other error, but still related to mapproxy.wsgiapp:
> 
> [Mon Nov 19 09:56:08 2012] [error] [client 134.95.150.136] Traceback
> (most recent call last):
> [Mon Nov 19 09:56:08 2012] [error] [client 134.95.150.136]   File
> "/var/local/mapproxy/test.wsgi", line 12, in ?
> [Mon Nov 19 09:56:08 2012] [error] [client 134.95.150.136]     from
> mapproxy.wsgiapp import make_wsgi_app
> [Mon Nov 19 09:56:08 2012] [error] [client 134.95.150.136]   File
> "/var/local/mapproxy/venv/lib/python2.6/site-packages/mapproxy/wsgiapp.py",
> line 127
> [Mon Nov 19 09:56:08 2012] [error] [client 134.95.150.136]      with
> local_base_config(self.base_config):
> [Mon Nov 19 09:56:08 2012] [error] [client 134.95.150.136]
>             ^
> [Mon Nov 19 09:56:08 2012] [error] [client 134.95.150.136]  SyntaxError:
> invalid syntax
> 
> Any hints/tips?

This is odd. `with foo()` is a syntax error in Python <2.6 unless you have a `from __future__ import with_statement`-line in your code. But the line is there and you are even using Python 2.6...

Wait, the default on your Centos is still 2.4 right? Can you make sure that your wsgiapp.py is run by the right Python interpreter (the one in /var/local/mapproxy/venv/bin)?

Regards,
Oliver

-- 
Oliver Tonnhofer    | Omniscale GmbH & Co KG    | http://omniscale.de
http://mapproxy.org | https://github.com/olt    | @oltonn








More information about the MapProxy mailing list