[Tilecache] mod_python set up on winXP/Apache 2.2

Yves Moisan yves.moisan at boreal-is.com
Mon Dec 1 12:01:18 EST 2008


Answering to self :

For some reason, specifying the drive letter got mod_python to find
TileCache :

<Directory "/ms4w/Apache/tilecache-2.03/">
        AddHandler python-program .py
     #   PythonPath "['/ms4w/Apache/tilecache-2.03/tilecache'] +
sys.path "
        PythonHandler TileCache.Service
        PythonOption TileCacheConfig
"e:/ms4w/Apache/tilecache-2.03/tilecache.cfg"
    </Directory>

Even more strange : I stopped Apache and reverted my conf file to the
original state (no drive letter) restarted Apache and ... it works !!

There are definitely strange things happening here.  The E: drive is an
alias for the C: drive so maybe there's something there.

More puzzling is that in the error.log file the python path starts with
a c:windows\\\\system32\\python24.zip which I never found. 

Pretty flaky, but it works.




Le vendredi 28 novembre 2008 à 14:19 -0500, Yves Moisan a écrit :
> Hi All,
> 
> I'm having a hard time configuring mod_python on Apache 2.2 on win XP.
> I successfully configured mod_python 3.2.7 on Apache 2.0 but it does not
> work on Apache 2.2.  Anybody got TC going on winXP / Apache 2.2
> 
> Error log below,
> 
> TIA,
> 
> Yves
> 
> [Fri Nov 28 14:15:49 2008] [notice] Child 444: Starting thread to listen
> on port 8081.
> [Fri Nov 28 14:15:57 2008] [error] [client 123.123.123.123] mod_python
> (pid=444, interpreter='localhost.local.domain', phase='PythonHandler',
> handler='TileCache.Service'): Application error
> [Fri Nov 28 14:15:57 2008] [error] [client 123.123.123.123] ServerName:
> 'localhost.local.domain'
> [Fri Nov 28 14:15:57 2008] [error] [client 123.123.123.123]
> DocumentRoot: 'E:/ms4w/Apache/htdocs'
> [Fri Nov 28 14:15:57 2008] [error] [client 123.123.123.123] URI:
> '/tilecache/tilecache.py'
> [Fri Nov 28 14:15:57 2008] [error] [client 123.123.123.123] Location:
> None
> [Fri Nov 28 14:15:57 2008] [error] [client 123.123.123.123] Directory:
> 'E:/ms4w/Apache/tilecache-2.03/'
> [Fri Nov 28 14:15:57 2008] [error] [client 123.123.123.123] Filename:
> 'E:/ms4w/Apache/tilecache-2.03/tilecache.py'
> [Fri Nov 28 14:15:57 2008] [error] [client 123.123.123.123] PathInfo: ''
> [Fri Nov 28 14:15:57 2008] [error] [client 123.123.123.123] Traceback
> (most recent call last):
> [Fri Nov 28 14:15:57 2008] [error] [client 123.123.123.123]   File "E:\
> \Python24\\Lib\\site-packages\\mod_python\\importer.py", line 1537, in
> HandlerDispatch\n    default=default_handler, arg=req,
> silent=hlist.silent)
> [Fri Nov 28 14:15:57 2008] [error] [client 123.123.123.123]   File "E:\
> \Python24\\Lib\\site-packages\\mod_python\\importer.py", line 1202, in
> _process_target\n    module = import_module(module_name, path=path)
> [Fri Nov 28 14:15:57 2008] [error] [client 123.123.123.123]   File "E:\
> \Python24\\Lib\\site-packages\\mod_python\\importer.py", line 304, in
> import_module\n    return __import__(module_name, {}, {}, ['*'])
> [Fri Nov 28 14:15:57 2008] [error] [client 123.123.123.123] ImportError:
> No module named TileCache.Service
> [Fri Nov 28 14:16:00 2008] [error] [client 123.123.123.123] mod_python
> (pid=444, interpreter='localhost.local.domain', phase='PythonHandler',
> handler='TileCache.Service'): Application error
> [Fri Nov 28 14:16:00 2008] [error] [client 123.123.123.123] ServerName:
> 'localhost.local.domain'
> [Fri Nov 28 14:16:00 2008] [error] [client 123.123.123.123]
> DocumentRoot: 'E:/ms4w/Apache/htdocs'
> [Fri Nov 28 14:16:00 2008] [error] [client 123.123.123.123] URI:
> '/tilecache/tilecache.py'
> [Fri Nov 28 14:16:00 2008] [error] [client 123.123.123.123] Location:
> None
> [Fri Nov 28 14:16:00 2008] [error] [client 123.123.123.123] Directory:
> 'E:/ms4w/Apache/tilecache-2.03/'
> [Fri Nov 28 14:16:00 2008] [error] [client 123.123.123.123] Filename:
> 'E:/ms4w/Apache/tilecache-2.03/tilecache.py'
> [Fri Nov 28 14:16:00 2008] [error] [client 123.123.123.123] PathInfo: ''
> [Fri Nov 28 14:16:00 2008] [error] [client 123.123.123.123] Traceback
> (most recent call last):
> [Fri Nov 28 14:16:00 2008] [error] [client 123.123.123.123]   File "E:\
> \Python24\\Lib\\site-packages\\mod_python\\importer.py", line 1537, in
> HandlerDispatch\n    default=default_handler, arg=req,
> silent=hlist.silent)
> [Fri Nov 28 14:16:00 2008] [error] [client 123.123.123.123]   File "E:\
> \Python24\\Lib\\site-packages\\mod_python\\importer.py", line 1202, in
> _process_target\n    module = import_module(module_name, path=path)
> [Fri Nov 28 14:16:00 2008] [error] [client 123.123.123.123]   File "E:\
> \Python24\\Lib\\site-packages\\mod_python\\importer.py", line 304, in
> import_module\n    return __import__(module_name, {}, {}, ['*'])
> [Fri Nov 28 14:16:00 2008] [error] [client 123.123.123.123] ImportError:
> No module named TileCache.Service
> 
> _______________________________________________
> Tilecache mailing list
> Tilecache at openlayers.org
> http://openlayers.org/mailman/listinfo/tilecache




More information about the Tilecache mailing list