<span>I am trying to get TileCache to work using mod_python. I get this error with my configuration:<br><br>Phase: 'PythonHandler'<br>Handler: '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 setup.py TileCache tilecache.cgi tilecache.fcgi tilecache_install_config.py<br>ez_setup.py tests tilecache.cfg tilecache_clean.py tilecache_http_server.py tilecache_seed.p<br>
<br>My apache2 config:<br># Tilecache configuration<br><Directory /var/www/tilecache/><br> AddHandler python-program .py<br> PythonHandler TileCache.Service<br> PythonOption TileCacheConfig /var/www/myapp/config/tilecache.cfg<br>
PythonDebug On<br></Directory><br><br>Alias /tilecache/ "/var/www/tilecache/"<br><Directory "/var/www/tilecache"><br> AllowOverride None<br> Options Indexes FollowSymLinks Multiviews<br>
Order allow,deny<br> Allow from all<br></Directory><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 </span><span>PythonHandler TileCache.Service to </span><span>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></span><span><br><br></span>