<div dir="ltr">Hi Tibor:<br>Thanks for your advise. <br>as you mentioned, I just try the two link<br><br>from <a href="http://127.0.0.1/tilecache/tilecache.py/1.0.0/">http://127.0.0.1/tilecache/tilecache.py/1.0.0/</a><br>I got xml codes like this <br>
<br>&lt;TileMapService version=&quot;1.0.0&quot;&gt;<br>−<br>&lt;TileMaps&gt;<br>&lt;TileMap href=&quot;<a href="http://127.0.0.1/tilecache/tilecache.py/1.0.0/basic/">http://127.0.0.1/tilecache/tilecache.py/1.0.0/basic/</a>&quot; srs=&quot;EPSG:4326&quot; title=&quot;basic&quot; profile=&quot;global-geodetic&quot;/&gt;<br>
&lt;/TileMaps&gt;<br>&lt;/TileMapService&gt;<br><br>However, I got error when I open next link <br><br><pre>An error occurred: &lt;urlopen error (10060, &#39;Operation timed out&#39;)&gt;<br>  File &quot;c:\python25\lib\site-packages\TileCache-2.04-py2.5.egg\TileCache\Service.py&quot;, line 224, in modPythonHandler<br>
    host )<br>  File &quot;c:\python25\lib\site-packages\TileCache-2.04-py2.5.egg\TileCache\Service.py&quot;, line 208, in dispatchRequest<br>    return self.renderTile(tile, params.has_key(&#39;FORCE&#39;))<br>  File &quot;c:\python25\lib\site-packages\TileCache-2.04-py2.5.egg\TileCache\Service.py&quot;, line 138, in renderTile<br>
    data = layer.render(tile)<br>  File &quot;c:\python25\lib\site-packages\TileCache-2.04-py2.5.egg\TileCache\Layer.py&quot;, line 437, in render<br>    return self.renderTile(tile)<br>  File &quot;c:\python25\lib\site-packages\TileCache-2.04-py2.5.egg\TileCache\Layers\WMS.py&quot;, line 29, in renderTile<br>
    tile.data, response = wms.fetch()<br>  File &quot;c:\python25\lib\site-packages\TileCache-2.04-py2.5.egg\TileCache\Client.py&quot;, line 54, in fetch<br>    response = self.client.open(urlrequest)<br>  File &quot;C:\Python25\lib\urllib2.py&quot;, line 374, in open<br>
    response = self._open(req, data)<br>  File &quot;C:\Python25\lib\urllib2.py&quot;, line 392, in _open<br>    &#39;_open&#39;, req)<br>  File &quot;C:\Python25\lib\urllib2.py&quot;, line 353, in _call_chain<br>    result = func(*args)<br>
  File &quot;C:\Python25\lib\urllib2.py&quot;, line 1101, in http_open<br>    return self.do_open(httplib.HTTPConnection, req)<br>  File &quot;C:\Python25\lib\urllib2.py&quot;, line 1076, in do_open<br>    raise URLError(err)<br>
</pre><br>Seem like the egg, doesnt work<br><br>All the best <br><br>Xiaoyu<br><br><div class="gmail_quote">On Fri, Jul 18, 2008 at 11:34 AM, Tibor Arpas &lt;<a href="mailto:tibor.arpas@infinit.sk">tibor.arpas@infinit.sk</a>&gt; wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div dir="ltr">Hi,<br>I cannot really comment on your installation. But regarding the point 4.<br>
What would you expect after opening <a href="http://127.0.0.1/tilecache/tilecache.py" target="_blank">http://127.0.0.1/tilecache/tilecache.py</a> ?The XML looks like everything is working fine. Did you try <br>
<a href="http://127.0.0.1/tilecache/tilecache.py/1.0.0/" target="_blank">http://127.0.0.1/tilecache/tilecache.py/1.0.0/</a> ? And <a href="http://127.0.0.1/tilecache/tilecache.py/1.0.0/basic/0/0/0.png" target="_blank">http://127.0.0.1/tilecache/tilecache.py/1.0.0/basic/0/0/0.png</a> ?<br>

If that would work, your Tilecache installation is fine.<br><br>Tibor<br><br><div class="gmail_quote"><div><div></div><div class="Wj3C7c">On Fri, Jul 18, 2008 at 11:16 AM, Xiaoyu Guan &lt;<a href="mailto:guanxiaoyu@gmail.com" target="_blank">guanxiaoyu@gmail.com</a>&gt; wrote:<br>

</div></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div class="Wj3C7c"><div dir="ltr">Dear all <br>I have setup Mod python with Apache 2.2 (Python 2.5) . from the test page, I am sure mod python it works<br>

then I try to setup TileCache 2.04<br>after download setuptools-0.6c8-py2.5.egg<br clear="all">
At first, I copy Tilecache 2.04 to /Apache2.2/cgi-bin/, use terminal&nbsp; run setup.py, seem like nothing works, then I copy all the file to /Apache2.2/htdocs/tilecache , run setup.py again. <br><br>according to some tutorials online, I have configured my Apache like this:<br>


<br>1. Add<br>&lt;Directory &quot;C:/Program Files/Apache Software Foundation/Apache2.2/htdocs/tilecache&quot;&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; AddHandler python-program .py<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; PythonHandler TileCache.Service<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; PythonOption TileCacheConfig &quot;C:/Program Files/Apache Software Foundation/Apache2.2/htdocs/tilecache/tilecache.cfg&quot;<br>


&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; PythonPath &quot;[&#39;c:\Program Files\Apache Software Foundation\Apache2.2\htdocs\tilecache&#39;] + sys.path&quot;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; PythonDebug On<br>&lt;/Directory&gt;<br><br>to Apache httpd.conf, restart apache, no error<br>


beside that tilecache.cfg modified like this <br><br>[cache]<br>type=DiskCache<br>base= c:\tilecache2<br><br>2. Change some python script header to&nbsp; #!C:/Python25/python.exe -u<br><br>3. I changed tilecache.cgi into tilecache.py (under /Apache2.2/htdocs/tilecache/)index.html openlayers script like this<br>


&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var map, layer;<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; function init(){<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; map = new OpenLayers.Map( $(&#39;map&#39;), {&#39;maxResolution&#39;: 360/512});<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; layer = new OpenLayers.Layer.WMS( &quot;VMap0&quot;, <br>


&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;/tilecache/tilecache.py?&quot;, {layers: &#39;basic&#39;, format: &#39;image/png&#39; } );<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; map.addLayer(layer);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; map.addControl(new OpenLayers.Control.Permalink());<br>


&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (!map.getCenter()) map.zoomToMaxExtent();<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br><br>4. when I open <a href="http://127.0.0.1/tilecache/tilecache.py" target="_blank">http://127.0.0.1/tilecache/tilecache.py</a> without error message, but follow xml codes<br>


<div><span>&nbsp;</span> <span>&lt;?</span><span>xml 
version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; </span><span>?&gt;</span> </div>
<div>
<div style="margin-left: 1em; text-indent: -2em;"><a href="#11b3584e60caad20_11b3574d15372b4f_">-</a> <span>&lt;</span><span>Services</span><span>&gt;</span></div>
<div>
<div>
<div style="margin-left: 1em; text-indent: -2em;"><span>&nbsp;</span> <span>&lt;</span><span>TileMapService</span> <span>version</span><span>=&quot;</span><b>1.0.0</b><span>&quot;</span><span> href</span><span>=&quot;</span><b><a href="http://127.0.0.1/1.0.0/" target="_blank">http://127.0.0.1/1.0.0/</a></b><span>&quot;</span><span> /&gt;</span> </div>


</div>
<div><span>&nbsp;</span> <span>&lt;/</span><span>Services</span><span>&gt;<br><br><br></span></div></div></div><br>now I could not find where error is ? is there anybody have same problems before ?<br>
Thanks in advance <br><br>All the best <br>-- <br>Xiaoyu Guan (Sam)<br>Geo-information Science<br>Wageningen UR<br>
</div>
<br></div></div>_______________________________________________<br>
Tilecache mailing list<br>
<a href="mailto:Tilecache@openlayers.org" target="_blank">Tilecache@openlayers.org</a><br>
<a href="http://openlayers.org/mailman/listinfo/tilecache" target="_blank">http://openlayers.org/mailman/listinfo/tilecache</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br><br clear="all"><br>-- <br>Xiaoyu Guan (Sam)<br>Geo-information Science<br>Wageningen UR<br>
</div>