<div dir="ltr">While seeding through this tilecache.py file, you need to install PythonPaste module. Also, mapscript.so should be globally accessible. I would suggest, tilecache_seed.py "<a href="http://localhost:81/tilecache/tilecache.cgi">http://localhost:81/tilecache/tilecache.cgi</a>?" cities zoom_start zoom_end "x1.0, y1.0,x2.0,y2.0"<br>
<br><br>I hope this will help. <br>Regards,<br>Ambastha<br><br><div class="gmail_quote">On Sun, Jul 27, 2008 at 8:55 AM, Matthew Perry <span dir="ltr"><<a href="mailto:perrygeo@gmail.com">perrygeo@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">I installed 2.04 and am having trouble seeding a cache.<br>
<br>
$ tilecache_seed.py "<a href="http://localhost:81/tilecache/tilecache.py" target="_blank">http://localhost:81/tilecache/tilecache.py</a>?" cities 0 6<br>
Traceback (most recent call last):<br>
File "/usr/bin/tilecache_seed.py", line 5, in <module><br>
pkg_resources.run_script('TileCache==2.04', 'tilecache_seed.py')<br>
File "/usr/lib/python2.5/site-packages/pkg_resources.py", line 448,<br>
in run_script<br>
self.require(requires)[0].run_script(script_name, ns)<br>
File "/usr/lib/python2.5/site-packages/pkg_resources.py", line 1166,<br>
in run_script<br>
execfile(script_filename, namespace, namespace)<br>
File "/usr/lib/python2.5/site-packages/TileCache-2.04-py2.5.egg/EGG-INFO/scripts/tilecache_seed.py",<br>
line 9, in <module><br>
TileCache.Client.main()<br>
File "/usr/lib/python2.5/site-packages/TileCache-2.04-py2.5.egg/TileCache/Client.py",<br>
line 104, in main<br>
layer = svc.layers[sys.argv[2]]<br>
KeyError: 'cities'<br>
<br>
I can confirm that:<br>
<br>
a) there is a layer defined in my tilecache.cfg called 'cities'<br>
b) requesting a layer from the tilecache works just fine. eg:<br>
<br>
<a href="http://localhost:81/tilecache/tilecache.py?LAYERS=cities&FORMAT=image%2Fgif&TRANSPARENT=true&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=EPSG%3A54009&BBOX=-8923761.189473685,3438942.54105263,-8619883.395789474,3742820.334736841&WIDTH=256&HEIGHT=256" target="_blank">http://localhost:81/tilecache/tilecache.py?LAYERS=cities&FORMAT=image%2Fgif&TRANSPARENT=true&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=EPSG%3A54009&BBOX=-8923761.189473685,3438942.54105263,-8619883.395789474,3742820.334736841&WIDTH=256&HEIGHT=256</a><br>
<br>
So why doesn't tilecache_seed.py work? Any ideas?<br>
<font color="#888888"><br>
<br>
<br>
<br>
--<br>
Matthew T. Perry<br>
<a href="http://www.perrygeo.net" target="_blank">http://www.perrygeo.net</a><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>