[Tilecache] mod_python and no TileCache.Service error

Frank Porcelli fporcelli at taic.net
Fri Mar 28 15:13:05 EDT 2008


Xin -

 

Change "TileCache.Service" to "TileCache/Service" in your apache config and
it should work.

 

Frank

 

  _____  

From: tilecache-bounces at openlayers.org
[mailto:tilecache-bounces at openlayers.org] On Behalf Of Xin
Sent: Friday, March 28, 2008 3:07 PM
To: tilecache at openlayers.org
Subject: [Tilecache] mod_python and no TileCache.Service error

 

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?

Thanks for any help

Xin



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/tilecache/attachments/20080328/e6c98ecc/attachment.html


More information about the Tilecache mailing list