<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:blue;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>

</head>

<body lang=EN-US link=blue vlink=blue>

<div class=Section1>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Xin &#8211;<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Change &#8220;TileCache.Service&#8221; to &#8220;TileCache/Service&#8221;
in your apache config and it should work.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Frank<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<div>

<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>

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

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

<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>
tilecache-bounces@openlayers.org [mailto:tilecache-bounces@openlayers.org] <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> tilecache@openlayers.org<br>
<b><span style='font-weight:bold'>Subject:</span></b> [Tilecache] mod_python
and no TileCache.Service error</span></font><o:p></o:p></p>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal style='margin-bottom:12.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>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;'PythonHandler'<br>
Handler:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'TileCache.Service'<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">http://www.nabble.com/Problem-with-TileCache-installation-td12671985.html</a>
is some hints, but it didn'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't it find the modules? do I need to set some environmental variable?<br>
<br>
Thanks for any help<br>
<br>
Xin<br>
<br>
<o:p></o:p></span></font></p>

</div>

</body>

</html>