[OpenLayers-Dev] TileCache w/Apache and mod_python

Brian Levy blevy at taic.net
Tue Nov 21 19:45:58 EST 2006


I was wondering if I could get some help on an error I'm receiving from
TileCache.   

 

Currently I'm running on the following configuration:

 

Apache/2.2.3 mod_python/3.2.10 Python/2.4.3 on Windows 

 

I can execute test python scripts just fine, however when running the
following test url:

 

http://localhost/test/tilecache.py?LAYERS=basic&SERVICE=WMS&VERSION=1.1.1&RE
QUEST=GetMap&SRS=EPSG:4326&BBOX=-180,-90,0,90&WIDTH=256&HEIGHT=256

 

The following error is returned in the Apache error.log file:

 

[Tue Nov 21 16:31:12 2006] [error] [client 127.0.0.1] PythonHandler
TileCache.Service: Traceback (most recent call last):

[Tue Nov 21 16:31:12 2006] [error] [client 127.0.0.1] PythonHandler
TileCache.Service:   File "C:\\Program
Files\\Python24\\Lib\\site-packages\\mod_python\\apache.py", line 299, in
HandlerDispatch\n    result = object(req)

[Tue Nov 21 16:31:12 2006] [error] [client 127.0.0.1] PythonHandler
TileCache.Service:   File "C:/Program Files/Apache Software
Foundation/Apache2.2/htdocs/test/TileCache\\Service.py", line 344, in
handler\n    return modPythonHandler(apacheReq, Service.load(*cfgs))

[Tue Nov 21 16:31:12 2006] [error] [client 127.0.0.1] PythonHandler
TileCache.Service:   File "C:/Program Files/Apache Software
Foundation/Apache2.2/htdocs/test/TileCache\\Service.py", line 249, in
_load\n    cache = cls.loadFromSection(config, "cache", Cache)

[Tue Nov 21 16:31:12 2006] [error] [client 127.0.0.1] PythonHandler
TileCache.Service:   File "C:/Program Files/Apache Software
Foundation/Apache2.2/htdocs/test/TileCache\\Service.py", line 237, in
_loadFromSection\n    return objclass(**objargs)

[Tue Nov 21 16:31:12 2006] [error] [client 127.0.0.1] PythonHandler
TileCache.Service:   File "C:/Program Files/Apache Software
Foundation/Apache2.2/htdocs/test/TileCache\\Cache.py", line 45, in
__init__\n    os.makedirs(base, perms)

[Tue Nov 21 16:31:12 2006] [error] [client 127.0.0.1] PythonHandler
TileCache.Service:   File "C:\\Program Files\\Python24\\lib\\os.py", line
159, in makedirs\n    mkdir(name, mode)

[Tue Nov 21 16:31:12 2006] [error] [client 127.0.0.1] PythonHandler
TileCache.Service: OSError: [Errno 22] Invalid argument: 'c:\\\\cache\\n***
optional iff layername if what\\nyour data source calls the layer **'

 

I'm thinking it has something to do with creating the cache sub directories
on my file system.  Can anyone provide insight into the error?  

 

My tilecache.cfg is detailed below:

 

[cache]

type=DiskCache

base=c:\cache

 

[basic]

type=WMSLayer

url=http://labs.metacarta.com/wms/vmap0

extension=png

 

Thanks!

 

Brian

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-dev/attachments/20061121/6af55549/attachment.html


More information about the Dev mailing list