[Tilecache] Installation Problem on Windows

Josh Livni josh at umbrellaconsulting.com
Thu Nov 8 19:15:10 EST 2007


Not sure about your setup, but just to check:  tilecache.cfg is located 
in C:\Projects\Web\  and is readable by the iisuser - yeah? 

Assuming so, you could try

PythonOption TileCacheConfig C:/Projects/Web/tilecache.cfg -- I forget 
if you're supposed to have the c:/ in front on win32 or not ...

Otherwise, assuming it's actually in C:\Projects\Web\tilecache you'll 
want to change that line to

PythonOption TileCacheConfig /Projects/Web/tilecache/tilecache.cfg

 
-Josh


brindahl wrote:
> I am making some progress.
> I now have mod_python installed and tested.  I added this to my httpd.conf
> file:
>
>     <Directory /Projects/Web/tilecache>
>         AddHandler mod_python .py
>         PythonHandler TileCache/Service 
>         PythonOption TileCacheConfig /Projects/Web/tilecache.cfg
>     </Directory>
>
> When I try to access tilecache.py (copy of tilecache.cgi) the error log
> gives:
> [Thu Nov 08 16:34:44 2007] [error] [client 127.0.0.1] mod_python (pid=6656,
> interpreter='localhost.local.domain', phase='PythonHandler',
> handler='TileCache/Service'): Application error
> [Thu Nov 08 16:34:44 2007] [error] [client 127.0.0.1] ServerName:
> 'localhost.local.domain'
> [Thu Nov 08 16:34:44 2007] [error] [client 127.0.0.1] DocumentRoot:
> 'C:/Projects/Web'
> [Thu Nov 08 16:34:44 2007] [error] [client 127.0.0.1] URI:
> '/tilecache/tilecache.py'
> [Thu Nov 08 16:34:44 2007] [error] [client 127.0.0.1] Location: None
> [Thu Nov 08 16:34:44 2007] [error] [client 127.0.0.1] Directory:
> 'C:/Projects/Web/tilecache/'
> [Thu Nov 08 16:34:44 2007] [error] [client 127.0.0.1] Filename:
> 'C:/Projects/Web/tilecache/tilecache.py'
> [Thu Nov 08 16:34:44 2007] [error] [client 127.0.0.1] PathInfo: ''
> [Thu Nov 08 16:34:44 2007] [error] [client 127.0.0.1] Traceback (most recent
> call last):
> [Thu Nov 08 16:34:44 2007] [error] [client 127.0.0.1]   File
> "C:\\Python24\\Lib\\site-packages\\mod_python\\importer.py", line 1537, in
> HandlerDispatch\n    default=default_handler, arg=req, silent=hlist.silent)
> [Thu Nov 08 16:34:44 2007] [error] [client 127.0.0.1]   File
> "C:\\Python24\\Lib\\site-packages\\mod_python\\importer.py", line 1229, in
> _process_target\n    result = _execute_target(config, req, object, arg)
> [Thu Nov 08 16:34:44 2007] [error] [client 127.0.0.1]   File
> "C:\\Python24\\Lib\\site-packages\\mod_python\\importer.py", line 1128, in
> _execute_target\n    result = object(arg)
> [Thu Nov 08 16:34:44 2007] [error] [client 127.0.0.1]   File
> "C:\\Projects\\Web\\tilecache\\TileCache\\Service.py", line 552, in
> handler\n    theService = Service.load(*cfgs)
> [Thu Nov 08 16:34:44 2007] [error] [client 127.0.0.1]   File
> "C:\\Projects\\Web\\tilecache\\TileCache\\Service.py", line 380, in _load\n   
> cache = cls.loadFromSection(config, "cache", Cache)
> [Thu Nov 08 16:34:44 2007] [error] [client 127.0.0.1]   File
> "C:\\Projects\\Web\\tilecache\\TileCache\\Service.py", line 360, in
> _loadFromSection\n    type  = config.get(section, "type")
> [Thu Nov 08 16:34:44 2007] [error] [client 127.0.0.1]   File
> "C:\\Python24\\Lib\\ConfigParser.py", line 511, in get\n    raise
> NoSectionError(section)
> [Thu Nov 08 16:34:44 2007] [error] [client 127.0.0.1] NoSectionError: No
> section: 'cache'
>
> Obviously the server is navigating to the service.py file but is then having
> problems.  The cache section of the tilecache is :
>
> [cache]
> type=DiskCache
> base=c:\temp\tilecache
>
> The directory c:\temp\tilecache is on the machine and writable
>
> Again any help would be appreciated.
> Bruce
>   



More information about the Tilecache mailing list