[Tilecache] Installing tilecache under mod_python apache
windows (service error)
Tiemens, Gerben
Gerben.Tiemens at grontmij.nl
Tue Jun 10 10:51:19 EDT 2008
I degraded Mod_python to 3.2.10
Since this version will not work with python25, degraded that one to python24
So new setup with those two and then install tilecache 2.03 again.
I still get the same error:
-----------------
Mod_python error: "PythonHandler TileCache.Service"
Traceback (most recent call last):
File "C:\Python24\Lib\site-packages\mod_python\apache.py", line 287, in HandlerDispatch
log=debug)
File "C:\Python24\Lib\site-packages\mod_python\apache.py", line 461, in import_module
f, p, d = imp.find_module(parts[i], path)
ImportError: No module named Service
------------------
I also changed the paths to C:/progra~1/ instead of C:/program files/
Still searching for the clue.
Grontmij | GIS & ICT
Gerben Tiemens
Junior GIS adviseur/ontwikkelaar GIS & ICT
Grontmij Nederland bv
B De Holle Bilt 22, 3732 HM De Bilt
P Postbus 203, 3730 AE De Bilt
T +31 30 220 74 40
F +31 30 220 19 23
E mailto:Gerben.Tiemens at Grontmij.nl
W http://www.grontmij.nl
Handelsregister 30129769
-----Oorspronkelijk bericht-----
Van: Christopher Schmidt [mailto:crschmidt at metacarta.com]
Verzonden: dinsdag 10 juni 2008 15:24
Aan: Tiemens, Gerben
CC: tilecache at openlayers.org
Onderwerp: Re: [Tilecache] Installing tilecache under mod_python apache windows (service error)
On Tue, Jun 10, 2008 at 06:12:44AM -0700, G. Tiemens wrote:
>
> 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?
TC doesn't work with 3.3.1. "Downgrade to 3.2.x" works, I think.
Regards,
--
Christopher Schmidt
MetaCarta
<< Please read our E-mail Disclaimer at the Grontmij Corporate website >>
More information about the Tilecache
mailing list