Hello everyone,

I'm having problems getting Mapniks0.7.1 OGCServer up and running. mod_python3.3.1 works fine with apache 2.2.3 on a SuSe SLES 10 server. The browser shows 'hello world' and python errors, if provoked. On the other hand Mapnik also works fine and I am able to render static images from OSM data in a Postgres DB. BUT I am unable to get them linked! My Apache settings in default-server.conf are:

<Directory "/srv/www/mp">
PythonPath "['/srv/www/mp/'] + sys.path"
AddHandler mod_python .py
PythonHandler wms_mp
PythonDebug On
</Directory>

and the wms_mp.py script looks like this:

#!/usr/bin/env python
import sys
from mapnik.ogcserver.modserver import ModHandler
sys.path.append('/opt/mapnik/utils/ogcserver')
handler = ModHandler('/opt/mapnik/utils/ogcserver/ogcserver.conf')

PROBLEM:
Sending a URL request like http://myserver/mp/wms_mp.py should return the 'Welcome to Mapniks OGCServer' message, but the browser keeps loading (until I stop it) without showing any reply or python error. The apache error log only notes that mod_python is importing module '/srv/www/mp/wms_mp.py' at the time the browser starts loading. As far as I can tell, the wms_mp.py script proceeds until the last line handler = ModHandler(...) where the handler is not set, meaning that the other scripts (modserver.py, common.py, importer.py...) in the chain are properly called. All paths and files seem right, as any change made in one of the scripts cause python errors in the browser.

I compared my working installation on Ubuntu10 with this one on the SLES10 server, tweaked all components a lot last week, but now I am at my wits end. Nothing from the web like the nice 'SLES 10 installation tutorial' or similar (solved) error reports mentioned exactly this problem.

Can someone help me please? Any ideas where to look or what to change?
many thanks
Daniel
_______________________________________________
Mapnik-users mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/mapnik-users

Reply via email to