[MapProxy] ImportError: No module named mapproxy.wsgiapp

Christian Willmes c.willmes at uni-koeln.de
Mon Nov 19 00:59:31 PST 2012


Hi,

I got a step further, but ist still not running yet.

I added:
import site
site.addsitedir('/var/local/mapproxy/venv/lib/python2.6/site-packages')
to the wsgi-app file.

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?

Thanks
Christian

On 19.11.2012 09:39, Christian Willmes wrote:
> Hi,
> 
> I am still strugling with deploying mapproxy behind an apache httpd.
> 
> I have completely wiped my former installation and setted up a fresh
> virtual environment with the current MapProxy (1.4.0) and its dependencies.
> I can successfully start mapproxy using serve-develop.
> 
> I am now trying to deploy MapProxy using mod_wsgi.
> On accessing MapProxy I get the following error:
> 
> [Mon Nov 19 09:29:11 2012] [error] [client 134.95.150.136] Traceback
> (most recent call last):
> [Mon Nov 19 09:29:11 2012] [error] [client 134.95.150.136]   File
> "/var/local/mapproxy/test.wsgi", line 9, in ?
> [Mon Nov 19 09:29:11 2012] [error] [client 134.95.150.136]     from
> mapproxy.wsgiapp import make_wsgi_app
> [Mon Nov 19 09:29:11 2012] [error] [client 134.95.150.136] ImportError:
> No module named mapproxy.wsgiapp
> 
> Do I have to install additional dependencys for that? Or anything else I
> may have missed, which could result in this error? (The wsgiapp.py file
> exists in the site-packages/mapproxy folder.)
> 
> Thanks and regards,
> Christian
> 


-- 
Christian Willmes
AG GIS & Fernerkundung      | GIS & RS Group
Geographisches Institut     | Institute of Geography
Universität zu Köln         | University of Cologne
Tel.: +49 (0)221 470 6234
Fax.: +49 (0)221 470 2280
http://www.geographie.uni-koeln.de/gis
http://www.sfb806.de


More information about the MapProxy mailing list