[Tilecache] Installing tilecache under mod_python apache windows
(service error)
G. Tiemens
Gerben.Tiemens at grontmij.nl
Tue Jun 10 09:12:44 EDT 2008
Hello,
After searching different mailing lists and several instructions on how to
install tilecache, i still have the same problem. The service module can't
be found:
MOD_PYTHON ERROR
ProcessId: 5772
Interpreter: 'localhost.local.domain'
ServerName: 'localhost.local.domain'
DocumentRoot: 'C:/Program Files/ms4w/Apache/htdocs'
URI: '/tilecache/tilecache.py'
Location: None
Directory: 'C:/Program Files/ms4w/Apache/htdocs/tilecache/'
Filename: 'C:/Program Files/ms4w/Apache/htdocs/tilecache/tilecache.py'
PathInfo: ''
Phase: 'PythonHandler'
Handler: 'TileCache.Service'
Traceback (most recent call last):
File "C:\Python25\lib\site-packages\mod_python\importer.py", line 1537, in
HandlerDispatch
default=default_handler, arg=req, silent=hlist.silent)
File "C:\Python25\lib\site-packages\mod_python\importer.py", line 1202, in
_process_target
module = import_module(module_name, path=path)
File "C:\Python25\lib\site-packages\mod_python\importer.py", line 304, in
import_module
return __import__(module_name, {}, {}, ['*'])
ImportError: No module named Service
I also tried it just as a cgi script running and got the same error:
[Tue Jun 10 14:41:31 2008] [error] [client 127.0.0.1] Premature end of
script headers: tilecache.cgi
[Tue Jun 10 14:41:31 2008] [error] [client 127.0.0.1] Traceback (most recent
call last):\r
[Tue Jun 10 14:41:31 2008] [error] [client 127.0.0.1] File "C:/Program
Files/ms4w/Apache/cgi-bin/tilecache.cgi", line 3, in <module>\r
[Tue Jun 10 14:41:31 2008] [error] [client 127.0.0.1] from TileCache
import Service, cgiHandler, cfgfiles\r
[Tue Jun 10 14:41:31 2008] [error] [client 127.0.0.1] ImportError: cannot
import name Service\r
Abstract from my httpd.cnf
<Directory "C:/Program Files/ms4w/Apache/htdocs/tilecache">
AddHandler python-program .py
PythonHandler TileCache.Service
PythonOption TileCacheConfig "C:/Program
Files/ms4w/Apache/htdocs/tilecache/tilecache.cfg"
PythonPath "['C:/Program Files/ms4w/Apache/htdocs/tilecache/'] +
sys.path"
PythonDebug On
</Directory>
Installed versions:
Windows XP
python 2.5 under c:\python25
mod_python 3.3.1 for python 2.5 under apache 2.2
Apache 2.2.8 (ms4w)
TileCache 2.03
Can anyone give a clue where i have to be to correct the error? What could i
have done wrong?
--
View this message in context: http://www.nabble.com/Installing-tilecache-under-mod_python-apache-windows-%28service-error%29-tp17755105p17755105.html
Sent from the TileCache mailing list archive at Nabble.com.
More information about the Tilecache
mailing list