lxml has been a cause of hanging in the server in the past. Try uninstalling it, and then the server will fall back to using etree from other sources:
http://trac.mapnik.org/browser/tags/release-0.7.1/bindings/python/mapnik/ogcserver/wms130.py#L30 To find if lxml is installed and where it lives do: $ python >>> import lxml >>> print lxml.__file__ If this fixes things then I would recommend installing lxml from source, as lxml is required for proper GetCapabilities response. Dane On Aug 30, 2010, at 2:15 AM, Daniel Behr wrote: > 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 _______________________________________________ Mapnik-users mailing list [email protected] https://lists.berlios.de/mailman/listinfo/mapnik-users

