<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 &quot;<a href="http://localhost:81/tilecache/tilecache.cgi">http://localhost:81/tilecache/tilecache.cgi</a>?&quot; cities zoom_start zoom_end &quot;x1.0, y1.0,x2.0,y2.0&quot;<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">&lt;<a href="mailto:perrygeo@gmail.com">perrygeo@gmail.com</a>&gt;</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 &quot;<a href="http://localhost:81/tilecache/tilecache.py" target="_blank">http://localhost:81/tilecache/tilecache.py</a>?&quot; cities 0 6<br>
Traceback (most recent call last):<br>
 &nbsp;File &quot;/usr/bin/tilecache_seed.py&quot;, line 5, in &lt;module&gt;<br>
 &nbsp; &nbsp;pkg_resources.run_script(&#39;TileCache==2.04&#39;, &#39;tilecache_seed.py&#39;)<br>
 &nbsp;File &quot;/usr/lib/python2.5/site-packages/pkg_resources.py&quot;, line 448,<br>
in run_script<br>
 &nbsp; &nbsp;self.require(requires)[0].run_script(script_name, ns)<br>
 &nbsp;File &quot;/usr/lib/python2.5/site-packages/pkg_resources.py&quot;, line 1166,<br>
in run_script<br>
 &nbsp; &nbsp;execfile(script_filename, namespace, namespace)<br>
 &nbsp;File &quot;/usr/lib/python2.5/site-packages/TileCache-2.04-py2.5.egg/EGG-INFO/scripts/tilecache_seed.py&quot;,<br>
line 9, in &lt;module&gt;<br>
 &nbsp; &nbsp;TileCache.Client.main()<br>
 &nbsp;File &quot;/usr/lib/python2.5/site-packages/TileCache-2.04-py2.5.egg/TileCache/Client.py&quot;,<br>
line 104, in main<br>
 &nbsp; &nbsp;layer = svc.layers[sys.argv[2]]<br>
KeyError: &#39;cities&#39;<br>
<br>
I can confirm that:<br>
<br>
a) there is a layer defined in my tilecache.cfg called &#39;cities&#39;<br>
b) requesting a layer from the tilecache works just fine. eg:<br>
<br>
<a href="http://localhost:81/tilecache/tilecache.py?LAYERS=cities&amp;FORMAT=image%2Fgif&amp;TRANSPARENT=true&amp;SERVICE=WMS&amp;VERSION=1.1.1&amp;REQUEST=GetMap&amp;STYLES=&amp;EXCEPTIONS=application%2Fvnd.ogc.se_inimage&amp;SRS=EPSG%3A54009&amp;BBOX=-8923761.189473685,3438942.54105263,-8619883.395789474,3742820.334736841&amp;WIDTH=256&amp;HEIGHT=256" target="_blank">http://localhost:81/tilecache/tilecache.py?LAYERS=cities&amp;FORMAT=image%2Fgif&amp;TRANSPARENT=true&amp;SERVICE=WMS&amp;VERSION=1.1.1&amp;REQUEST=GetMap&amp;STYLES=&amp;EXCEPTIONS=application%2Fvnd.ogc.se_inimage&amp;SRS=EPSG%3A54009&amp;BBOX=-8923761.189473685,3438942.54105263,-8619883.395789474,3742820.334736841&amp;WIDTH=256&amp;HEIGHT=256</a><br>

<br>
So why doesn&#39;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>