I tried that before, then I get a no Caches error.<br><br>I&#39;ve fixed this now. It&#39;s far from a perfect solution, but it works. I think my Python environment is not setup right.<br><br>My apache config:<br>&lt;Directory /var/www/tilecache/&gt;<br>
&nbsp; PythonPath &quot;[&#39;/var/www/tilecache/&#39;]+sys.path&quot;<br>&nbsp; AddHandler python-program .py<br>&nbsp; PythonHandler TileCache.Service<br>&nbsp; PythonOption TileCacheConfig /var/www/myapp/current/config/tilecache.cfg<br>&nbsp; PythonDebug On<br>
&lt;/Directory&gt;<br><br>LoadModule python_module /usr/lib/apache2/modules/mod_python.so<br># a hack to load mapnik library<br>LoadFile /usr/local/lib/libmapnik.so.0.5<br><br>Cheers,<br>Xin<br><br><br><div><span class="gmail_quote">On 28/03/2008, <b class="gmail_sendername">Frank Porcelli</b> &lt;<a href="mailto:fporcelli@taic.net">fporcelli@taic.net</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">










<div link="blue" vlink="blue" lang="EN-US">

<div>

<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">Xin –</span></font></p>

<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">&nbsp;</span></font></p>

<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">Change "TileCache.Service" to "TileCache/Service"
in your apache config and it should work.</span></font></p>

<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">&nbsp;</span></font></p>

<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">Frank</span></font></p>

<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">&nbsp;</span></font></p>

<div>

<div style="text-align: center;" align="center"><font face="Times New Roman" size="3"><span style="font-size: 12pt;">

<hr align="center" size="2" width="100%">

</span></font></div>

<p><b><font face="Tahoma" size="2"><span style="font-size: 10pt; font-family: Tahoma; font-weight: bold;">From:</span></font></b><font face="Tahoma" size="2"><span style="font-size: 10pt; font-family: Tahoma;">
<a href="mailto:tilecache-bounces@openlayers.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">tilecache-bounces@openlayers.org</a> [mailto:<a href="mailto:tilecache-bounces@openlayers.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">tilecache-bounces@openlayers.org</a>] <b><span style="font-weight: bold;">On Behalf Of </span></b>Xin<br>

<b><span style="font-weight: bold;">Sent:</span></b> Friday, March 28, 2008 3:07
PM<br>
<b><span style="font-weight: bold;">To:</span></b> <a href="mailto:tilecache@openlayers.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">tilecache@openlayers.org</a><br>
<b><span style="font-weight: bold;">Subject:</span></b> [Tilecache] mod_python
and no TileCache.Service error</span></font></p>

</div><div><span class="e" id="q_118f6cf930fbe0e6_1">

<p><font face="Times New Roman" size="3"><span style="font-size: 12pt;">&nbsp;</span></font></p>

<p style="margin-bottom: 12pt;"><font face="Times New Roman" size="3"><span style="font-size: 12pt;">I am trying to get
TileCache to work using mod_python. I get this error with my configuration:<br>
<br>
Phase:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#39;PythonHandler&#39;<br>
Handler:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#39;TileCache.Service&#39;<br>
<br>
ImportError: No module named TileCache.Service<br>
<br>
TileCache is located in /var/www/tilecache.<br>
<br>
ls /var/www/tilecache/<br>
docs&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
setup.py&nbsp;&nbsp;TileCache&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tilecache.cgi&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
tilecache.fcgi&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tilecache_install_config.py<br>
ez_setup.py&nbsp;&nbsp;tests&nbsp;&nbsp;&nbsp;&nbsp;
tilecache.cfg&nbsp;&nbsp;tilecache_clean.py&nbsp;&nbsp;tilecache_http_server.py&nbsp;&nbsp;tilecache_seed.p<br>
<br>
My apache2 config:<br>
# Tilecache configuration<br>
&lt;Directory /var/www/tilecache/&gt;<br>
&nbsp;&nbsp;AddHandler python-program .py<br>
&nbsp;&nbsp;PythonHandler TileCache.Service<br>
&nbsp;&nbsp;PythonOption TileCacheConfig /var/www/myapp/config/tilecache.cfg<br>
&nbsp;&nbsp;PythonDebug On<br>
&lt;/Directory&gt;<br>
<br>
Alias /tilecache/ &quot;/var/www/tilecache/&quot;<br>
&lt;Directory &quot;/var/www/tilecache&quot;&gt;<br>
&nbsp;&nbsp;AllowOverride None<br>
&nbsp;&nbsp;Options Indexes FollowSymLinks Multiviews<br>
&nbsp;&nbsp;Order allow,deny<br>
&nbsp;&nbsp;Allow from all<br>
&lt;/Directory&gt;<br>
<br>
<a href="http://www.nabble.com/Problem-with-TileCache-installation-td12671985.html" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://www.nabble.com/Problem-with-TileCache-installation-td12671985.html</a>
is some hints, but it didn&#39;t solve my problem. When I changed&nbsp;
PythonHandler TileCache.Service to&nbsp;&nbsp; PythonHandler TileCache/Service,
I got no Caches module error.<br>
<br>
Why can&#39;t it find the modules? do I need to set some environmental variable?<br>
<br>
Thanks for any help<br>
<br>
Xin<br>
<br>
</span></font></p>

</span></div></div>

</div>


</blockquote></div><br>