I'm using mod_python<br>i've got a TileCache directory with the Service.py inside of it, <br><br>My configuration is:<br>in httpd.conf :<br><br><Directory /opt/ms/apps/tilecache/><br> AddHandler python-program .py
<br> PythonHandler TileCache.Service<br> PythonOption TileCacheConfig /opt/ms/apps/tilecache/tilecache.cfg<br> PythonDebug On <br></Directory><br><br>and i've got the next httpd_tile.conf (to configure acces to the tilecache directory )
<br><br>Alias /tilecache/ "/opt/ms/apps/tilecache/"<br><br><Directory "/opt/ms/apps/tilecache/"><br> AllowOverride None<br> Options Indexes FollowSymLinks Multiviews <br> Order allow,deny<br> Allow from all
<br></Directory><br><br>thanks,<br><br><br><div><span class="gmail_quote">2007/9/17, Christopher Schmidt <<a href="mailto:crschmidt@metacarta.com">crschmidt@metacarta.com</a>>:</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>> thanks Chrhis,<br>><br>> the error was an incorrect python location in the script (i put<br>> #!/usr/local/python/bin instead of #!/usr/local/bin/python ),
<br>><br>> when i solve this i get ... ImportError: No module named TileCache.Service<br>> do i need to change all python location in every .py file?<br>> thanks<br><br>I'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>