Is it possible you have another tilecache.cfg somewhere on your system? It's possible that tilecache_seed.py might be loading another tilecache on there, and in turn another tilecache.cfg that does not have your layer specified in its config..<div>
<br></div><div> -Josh<br><br><div class="gmail_quote">On Mon, Jan 26, 2009 at 5:51 AM, Alessio Di Lorenzo <span dir="ltr"><<a href="mailto:alessio.dilorenzo@gmail.com">alessio.dilorenzo@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><br>
Hi List,<br>
<br>
I'm using TileCache as mod_python.<br>
It's working properly but and I'm having problems to run the seed python<br>
script to genarate the WMS layers tiles...<br>
<br>
If I type:<br>
[root@donatellov4 tilecache]# python tilecache_seed.py a_caprini_p<br>
<br>
I have the following error<br>
<br>
Traceback (most recent call last):<br>
File "tilecache_seed.py", line 9, in ?<br>
TileCache.Client.main()<br>
File "/var/www/tilecache/TileCache/Client.py", line 104, in main<br>
layer = svc.layers[sys.argv[2]]<br>
IndexError: list index out of range<br>
<br>
The error remains the same even if I put some optional parameters<br>
(i.e.force, bbox).<br>
<br>
This is my apache configuration<br>
<br>
Alias /tilecache/ "/var/www/tilecache/"<br>
<br>
<Directory /var/www/tilecache/><br>
PythonPath "['/var/www/tilecache/']+sys.path"<br>
AddHandler python-program .py<br>
PythonHandler TileCache.Service<br>
PythonOption TileCacheConfig /var/www/tilecache/tilecache.cfg<br>
PythonDebug On<br>
</Directory><br>
<br>
This is an example of layer in my tilecache.cfg<br>
<br>
[a_caprini_p]<br>
type=WMS<br>
url=<a href="http://maps.izs.it/cgi-bin/mapserv?MAP=/usr/local/apache2/htdocs/mapfiles/brucellosi_alessio.map&transparent=trueextension=pngbbox=-20037508.3427892,-20037508.3427892,20037508.3427892,20037508.3427892maxResolution=156543.0339srs=EPSG:900913spherical_mercator=truemetaTile=truemetaBuffer=80" target="_blank">http://maps.izs.it/cgi-bin/mapserv?MAP=/usr/local/apache2/htdocs/mapfiles/brucellosi_alessio.map&transparent=true<br>
extension=png<br>
bbox=-20037508.3427892,-20037508.3427892,20037508.3427892,20037508.3427892<br>
maxResolution=156543.0339<br>
srs=EPSG:900913<br>
spherical_mercator=true<br>
metaTile=true<br>
metaBuffer=80</a><br>
<br>
Do you notice some problem?<br>
<br>
thanks in advance, alessio<br>
<font color="#888888">--<br>
View this message in context: <a href="http://n2.nabble.com/tilecache_seed-issue-with-2.04-tp2217966p2217966.html" target="_blank">http://n2.nabble.com/tilecache_seed-issue-with-2.04-tp2217966p2217966.html</a><br>
Sent from the TileCache mailing list archive at Nabble.com.<br>
<br>
_______________________________________________<br>
Tilecache mailing list<br>
<a href="mailto:Tilecache@openlayers.org">Tilecache@openlayers.org</a><br>
<a href="http://openlayers.org/mailman/listinfo/tilecache" target="_blank">http://openlayers.org/mailman/listinfo/tilecache</a><br>
</font></blockquote></div><br></div>