tilecache definitely works with 3.3.1, i just got it going on that last night. did you see this great blog post?<br><br><a href="http://oegeo.wordpress.com/2008/03/10/tilecache-on-windows-part-2-mod_python/#comment-84">http://oegeo.wordpress.com/2008/03/10/tilecache-on-windows-part-2-mod_python/#comment-84</a><br>
<br>it appears that the tilecache files have been updated, i didnt even need to make the change on line 33-<br>chris-<br><br><div class="gmail_quote">On Fri, Nov 21, 2008 at 9:43 AM, Yves Moisan <span dir="ltr"><<a href="mailto:yves.moisan@boreal-is.com">yves.moisan@boreal-is.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="Ih2E3d">> compared to mod_python which has a fairly fire-and-forget install<br>
> under apache.<br>
<br>
</div>Well not under windows ... First thing I did is try to install<br>
mod_python 3.3.1 (currently the latest mod_python) for Python 2.4 and<br>
Apache 2.0.x. Apache wouldn't start. Logs were not obvious. Anyway I<br>
came across a post that mentioned TC didn't work with 3.3.x so I went<br>
and installed the latest 3.2 (3.2.7). Now Apache works.<br>
<br>
Following the TC readme file, I add the required bits in httpd.conf :<br>
<br>
<Directory "...apache2php521/tilecache-2.03/"><br>
AddHandler python-program .py<br>
PythonHandler TileCache.Service<br>
PythonOption TileCacheConfig<br>
".../apache2php521/tilecache-2.03/tilecache.cfg"<br>
</Directory><br>
<br>
Ellipsis for short.<br>
<br>
Then I change tilecache.cgi for tilecache.py in my html file :<br>
<br>
var Ikonos_TC = new OpenLayers.Layer.WMS(<br>
"Ikonos",<br>
"http://" + SERVER_BASE_URL +<br>
":8292/tilecache/tilecache.py?map=.../mymapfile.map",<br>
{layers: 'Ikonos',<br>
transparent: false,<br>
singleTile: false,<br>
srs: 'EPSG:29194',<br>
format: 'image/jpeg'},<br>
{isBaseLayer: true,<br>
buffer:0,<br>
transitionEffect:'resize'});<br>
<br>
<br>
I get pink tiles. Pasting the address of one in a new tab, I get :<br>
<br>
Internal Server Error<br>
The server encountered an internal error or misconfiguration and was<br>
unable to complete your request.<br>
<br>
Please contact the server administrator ...<br>
<br>
________________________________________________________________________<br>
Apache/2.0.54 (Win32) mod_python/3.2.7 Python/2.4.4 PHP/5.2.1<br>
<br>
Apache log says :<br>
<br>
[Fri Nov 21 09:16:16 2008] [error] make_obcallback: could not import<br>
mod_python.apache.\n<br>
[Fri Nov 21 09:16:16 2008] [error] python_handler: no interpreter<br>
callback found.<br>
[Fri Nov 21 09:16:16 2008] [error] [client <a href="http://192.168.5.186" target="_blank">192.168.5.186</a>]<br>
python_handler: Can't get/create interpreter., referer: ...<br>
<br>
I installed mod_python as per instructions so I'm clueless as to what to<br>
do next. Tilecache.cgi worksbut .py doesn't. Or do I have to move all<br>
the TC code in htdocs ?<br>
<br>
TIA,<br>
<font color="#888888"><br>
YVes<br>
</font><div><div></div><div class="Wj3C7c"><br>
<br>
<br>
_______________________________________________<br>
Tilecache mailing list<br>
<a href="mailto:Tilecache@openlayers.org">Tilecache@openlayers.org</a><br>
<a href="http://openlayers.org/mailman/listinfo/tilecache" target="_blank">http://openlayers.org/mailman/listinfo/tilecache</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><br>Chris Marx<br>Programmer/Analyst<br>Cornell Lab of Ornithology<br>159 Sapsucker Woods Rd.<br>Ithaca, NY 14850<br>t. 1.607.254.1142<br><a href="http://www.birds.cornell.edu/">http://www.birds.cornell.edu/</a><br>