thanks Dane, but uninstalling lxml leads to this error:
----------------
Traceback (most recent call last):
File
"/usr/local/lib64/python2.4/site-packages/mod_python/importer.py", line
1537, in HandlerDispatch
default=default_handler, arg=req, silent=hlist.silent)
File
"/usr/local/lib64/python2.4/site-packages/mod_python/importer.py", line
1202, in _process_target
module = import_module(module_name, path=path)
File
"/usr/local/lib64/python2.4/site-packages/mod_python/importer.py", line
296, in import_module
log, import_path)
File
"/usr/local/lib64/python2.4/site-packages/mod_python/importer.py", line
680, in import_module
execfile(file, module.__dict__)
File "/srv/www/mp/wms_mp.py", line 6, in ?
from mapnik.ogcserver.modserver import ModHandler
File
"/usr/lib64/python2.4/site-packages/mapnik/ogcserver/modserver.py", line
29, in ?
from wms111 import ExceptionHandler as ExceptionHandler111
File "/usr/lib64/python2.4/site-packages/mapnik/ogcserver/wms111.py",
line 24, in ?
from common import ParameterDefinition, Response, Version,
ListFactory, \
File "/usr/lib64/python2.4/site-packages/mapnik/ogcserver/common.py",
line 38, in ?
import xml.etree.ElementTree as ElementTree
ImportError: No module named etree.ElementTree
-----------------
I added some xml paths to pythonpaths but there seems to be no other xml
source available.
following this http://codespeak.net/lxml/build.html and reinstalling
lxml trunk failed because 'build' misses lxml.etree.c and
lxml.objectify.c from the package.
installing lxml2.2.7 from source led to the same error as above. using
easy_install again produced an .egg and brings me back to the server
hanging...
I possibly missed something else on the way!?
Daniel
Am 30.08.2010 17:20, schrieb Dane Springmeyer:
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
--
Daniel Behr
Institute for Coastal Research
GKSS Research Centre
D-21502 Geesthacht
+49 (0)4152 87 1589 (fax -1596)
[email protected]
-------------------------------------------
GKSS-Forschungszentrum Geesthacht GmbH
Max-Planck-Straße 1
21502 Geesthacht
Deutschland/Germany
Geschäftsführer/Board of Management:
Prof. Dr. Wolfgang A. Kaysser, Dipl.-Ing. Michael Ganß
Vorsitzender des Aufsichtsrates/Chairman of the Supervisory Board:
Ministerialrat Wilfried Kraus
Amtsgericht Lübeck- HRB 285 GE (Register Court)
Internet: http://gkss.de
_______________________________________________
Mapnik-users mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/mapnik-users