I&#39;m using mod_python<br>i&#39;ve got a TileCache directory with the Service.py inside of it,&nbsp; <br><br>My configuration is:<br>in httpd.conf :<br><br>&lt;Directory /opt/ms/apps/tilecache/&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; AddHandler python-program .py
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; PythonHandler TileCache.Service<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; PythonOption TileCacheConfig /opt/ms/apps/tilecache/tilecache.cfg<br>&nbsp;&nbsp;&nbsp; PythonDebug On &nbsp;&nbsp;&nbsp; <br>&lt;/Directory&gt;<br><br>and i&#39;ve got the next httpd_tile.conf (to configure acces to the tilecache directory )
<br><br>Alias /tilecache/ &quot;/opt/ms/apps/tilecache/&quot;<br><br>&lt;Directory &quot;/opt/ms/apps/tilecache/&quot;&gt;<br>&nbsp; AllowOverride None<br>&nbsp; Options Indexes FollowSymLinks Multiviews <br>&nbsp; Order allow,deny<br>&nbsp; Allow from all
<br>&lt;/Directory&gt;<br><br>thanks,<br><br><br><div><span class="gmail_quote">2007/9/17, Christopher Schmidt &lt;<a href="mailto:crschmidt@metacarta.com">crschmidt@metacarta.com</a>&gt;:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Mon, Sep 17, 2007 at 02:03:50PM +0200, Ruben Pardo wrote:<br>&gt; thanks Chrhis,<br>&gt;<br>&gt; the error was an incorrect python location in the script (i put<br>&gt; #!/usr/local/python/bin instead of #!/usr/local/bin/python ),
<br>&gt;<br>&gt; when i solve this i get&nbsp;&nbsp;...&nbsp;&nbsp;ImportError: No module named TileCache.Service<br>&gt; do i need to change all python location in every .py file?<br>&gt; thanks<br><br>I&#39;m confused -- are you using mod_python, or CGI? Does
<br>/opt/ms/apps/tilecache/ have a TileCache/ directory in it? Is there a<br>Service.py file inside there?<br><br>Regards,<br>--<br>Christopher Schmidt<br>MetaCarta<br></blockquote></div><br>