<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-15">
<META content="MSHTML 6.00.2900.3492" name=GENERATOR></HEAD>
<BODY style="MARGIN: 4px 4px 1px">
<DIV>thank you</DIV>
<DIV> </DIV>
<DIV>its ok.....</DIV>
<DIV> </DIV>
<DIV>Pat<BR><BR>>>> Christopher Schmidt <crschmidt@metacarta.com> 08/13/09 9:31 am >>><BR>On Thu, Aug 13, 2009 at 09:04:56AM -0400, Patrick Mayrand wrote:<BR>> Hi,<BR>> <BR>> I installed tilecache and Openlayers. <BR>> Everything works when I use the configuration cache on disk. <BR>> But when I try to configure the cache memory, i have the following error:<BR><BR>This is an error in the Memcached cache. it is fixed i nTileCache SVN. <BR>You can get around it, by simply removing the 'Raise Exception" line from<BR>the Memcached.py file.<BR><BR>-- Chris<BR><BR>> <BR>> An error occurred: ['127.0.0.1:11211']<BR>> File "/var/www/tilecache-2.10/TileCache/Service.py", line 96, in _load<BR>> cache = cls.loadFromSection(config, "cache", Cache)<BR>> File "/var/www/tilecache-2.10/TileCache/Service.py", line 75, in _loadFromSection<BR>> return section_object(**objargs)<BR>> File "/var/www/tilecache-2.10/TileCache/Caches/Memcached.py", line 11, in __init__<BR>> raise Exception(servers)<BR>> <BR>> <BR>> When I run this script, it works:<BR>> <BR>> #!/usr/bin/env python<BR>> import sys<BR>> try:<BR>> import memcache<BR>> except ImportError:<BR>> sys.exit(0)<BR>> mc = memcache.Client( ['127.0.0.1:11211'] )<BR>> mc.set("he_ben", "rocks")<BR>> assert mc.get("he_ben") == "rocks"<BR>> <BR>> <BR>> Is this a problem with tilecache or a problem with my config?<BR>> <BR>> <BR>> Os : Debian Lenny<BR>> <BR>> <BR>> tilecache.cfg<BR>> <BR>> <BR>> [cache]<BR>> type=Memcached<BR>> servers=127.0.0.1:11211<BR>> <BR>> <BR>> Apache<BR>> <BR>> Alias tilecache/ /var/www/tilecache-2.10/<BR>> <Location "/tilecache/"><BR>> SetHandler python-program<BR>> PythonHandler TileCache.Service<BR>> PythonOption TileCacheConfig /etc/tilecache.cfg<BR>> PythonPath "['/var/www/tilecache-2.10/'] + sys.path"<BR>> </Location><BR>> <BR>> <BR>> memcached.conf<BR>> <BR>> # Default connection port is 11211<BR>> -p 11211<BR>> <BR>> # Run the daemon as root. The start-memcached will default to running as root if no<BR>> # -u command is present in this config file<BR>> -u nobody<BR>> <BR>> # Specify which IP address to listen on. The default is to listen on all IP addresses<BR>> # This parameter is one of the only security measures that memcached has, so make sure<BR>> # it's listening on a firewalled interface.<BR>> -l 127.0.0.1<BR>> <BR>> <BR>> regards,<BR>> <BR>> Pat<BR>> <BR><BR>> _______________________________________________<BR>> Tilecache mailing list<BR>> Tilecache@openlayers.org<BR>> <A href="http://openlayers.org/mailman/listinfo/tilecache">http://openlayers.org/mailman/listinfo/tilecache</A><BR><BR><BR>-- <BR>Christopher Schmidt<BR>MetaCarta<BR>_______________________________________________<BR>Tilecache mailing list<BR>Tilecache@openlayers.org<BR><A href="http://openlayers.org/mailman/listinfo/tilecache">http://openlayers.org/mailman/listinfo/tilecache</A><BR></DIV></BODY></HTML>