[Tilecache] mod_python and no TileCache.Service error
Christopher Schmidt
crschmidt at metacarta.com
Fri Mar 28 15:23:08 EDT 2008
On Fri, Mar 28, 2008 at 07:06:36PM +0000, Xin wrote:
> I am trying to get TileCache to work using mod_python. I get this error with
> my configuration:
>
> Phase: 'PythonHandler'
> Handler: 'TileCache.Service'
>
> ImportError: No module named TileCache.Service
>
> TileCache is located in /var/www/tilecache.
>
> ls /var/www/tilecache/
> docs setup.py TileCache tilecache.cgi tilecache.fcgi
> tilecache_install_config.py
> ez_setup.py tests tilecache.cfg
> tilecache_clean.py tilecache_http_server.py tilecache_seed.p
>
> My apache2 config:
> # Tilecache configuration
> <Directory /var/www/tilecache/>
> AddHandler python-program .py
> PythonHandler TileCache.Service
> PythonOption TileCacheConfig /var/www/myapp/config/tilecache.cfg
> PythonDebug On
> </Directory>
>
> Alias /tilecache/ "/var/www/tilecache/"
> <Directory "/var/www/tilecache">
> AllowOverride None
> Options Indexes FollowSymLinks Multiviews
> Order allow,deny
> Allow from all
> </Directory>
>
> http://www.nabble.com/Problem-with-TileCache-installation-td12671985.html is
> some hints, but it didn't solve my problem. When I changed PythonHandler
> TileCache.Service to PythonHandler TileCache/Service, I got no Caches
> module error.
>
> Why can't it find the modules? do I need to set some environmental variable?
Are you using mod_python 3.3?
Regards,
--
Christopher Schmidt
MetaCarta
More information about the Tilecache
mailing list