thanks Chrhis,<br><br>the error was an incorrect python location in the script (i put #!/usr/local/python/bin instead of #!/usr/local/bin/python ),<br><br>when i solve this i get ... ImportError: No module named TileCache.Service
<br>do i need to change all python location in every .py file?<br>thanks<br><br>this is my log ...<br><br>URI: '/tilecache/tilecache.py'<br>[Mon Sep 17 13:56:06 2007] [error] [client <a href="http://10.60.167.3">10.60.167.3
</a>] Location: None<br>[Mon Sep 17 13:56:06 2007] [error] [client <a href="http://10.60.167.3">10.60.167.3</a>] Directory: '/opt/ms/apps/tilecache/'<br>[Mon Sep 17 13:56:06 2007] [error] [client <a href="http://10.60.167.3">
10.60.167.3</a>] Filename: '/opt/ms/apps/tilecache/tilecache.py'<br>[Mon Sep 17 13:56:06 2007] [error] [client <a href="http://10.60.167.3">10.60.167.3</a>] PathInfo: ''<br>[Mon Sep 17 13:56:06 2007] [error] [client
<a href="http://10.60.167.3">10.60.167.3</a>] Traceback (most recent call last):<br>[Mon Sep 17 13:56:06 2007] [error] [client <a href="http://10.60.167.3">10.60.167.3</a>] File "/usr/local/lib/python2.5/site-packages/mod_python/importer.py", line 1537, in HandlerDispatch\n default=default_handler, arg=req, silent=
hlist.silent)<br>[Mon Sep 17 13:56:06 2007] [error] [client <a href="http://10.60.167.3">10.60.167.3</a>] File "/usr/local/lib/python2.5/site-packages/mod_python/importer.py", line 1202, in _process_target\n module = import_module(module_name, path=path)
<br>[Mon Sep 17 13:56:06 2007] [error] [client <a href="http://10.60.167.3">10.60.167.3</a>] File "/usr/local/lib/python2.5/site-packages/mod_python/importer.py", line 304, in import_module\n return __import__(module_name, {}, {}, ['*'])
<br>[Mon Sep 17 13:56:06 2007] [error] [client <a href="http://10.60.167.3">10.60.167.3</a>] ImportError: No module named TileCache.Service<br><br><div><span class="gmail_quote">2007/9/14, Christopher Schmidt <<a href="mailto:crschmidt@metacarta.com">
crschmidt@metacarta.com</a>>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">On Fri, Sep 14, 2007 at 01:27:09PM +0200, Ruben Pardo wrote:
<br>> thank chris,<br>> Yes i really did, but it didn't work, (the same logs)<br><br>Really? that's odd. It means that /bin/env is not executable. Strange.<br><br>See:<br><br>"Non-standard Python Location"
<br><br>in the README for another thing to try: specifying The python location<br>explicitly might help.<br><br>-- Chris<br><br><br>> the permission ...<br>><br>> drwxr-xr-x 3 root root 4096 sep 14 11:16 ..<br>> -rwxr-xr-x 1 root root 3580 sep 14 11:16 CHANGELOG
<br>> -rwxr-xr-x 1 root root 213 sep 14 11:16 CONTRIBUTORS<br>> drwxr-xr-x 2 root root 4096 sep 14 11:16 debian<br>> -rwxr-xr-x 1 root root 3466 sep 14 11:16 HACKING<br>> -rwxr-xr-x 1 root root 1135 sep 14 11:16
index.html<br>> -rwxr-xr-x 1 root root 1507 sep 14 11:16 LICENSE<br>> -rwxr-xr-x 1 root root 263 sep 14 11:16 MANIFEST<br>> -rwxr-xr-x 1 root root 14791 sep 14 11:16 README<br>> -rwxr-xr-x 1 root root 506 sep 14 11:16
setup.py<br>> drwxr-xr-x 2 root root 4096 sep 14 11:16 TileCache<br>> -rwxr-xr-x 1 root root 1868 sep 14 11:16 tilecache.cfg<br>> -rwxr-xr-x 1 root root 167 sep 14 11:16 tilecache.cgi<br>> -rwxr-xr-x 1 root root 2672 sep 14 11:16 tilecache_clean.py
<br>> -rwxr-xr-x 1 root root 173 sep 14 11:34 tilecache.fcgi<br>> -rwxr-xr-x 1 root root 293 sep 14 11:16 tilecache_http_server.py<br>> -rwxr-xr-x 1 root root 247 sep 14 11:16 tilecache_seed.py<br>><br>>
<br>> 2007/9/14, Christopher Schmidt <<a href="mailto:crschmidt@metacarta.com">crschmidt@metacarta.com</a>>:<br>> ><br>> > On Fri, Sep 14, 2007 at 11:44:10AM +0200, Ruben Pardo wrote:<br>> > > Hi,
<br>> > ><br>> > > i'm trying to install TileCache on a cgi on Apache, with Mapserver<br>> > > mod_python, mod_fastcgi,<br>> > > I extract on cgi-bin, add the handler to the path tilecache like says in
<br>> > > README file,<br>> > > but when i try to run a request it logs me:<br>> > ><br>> > > [Fri Sep 14 11:33:30 2007] [error] [client <a href="http://10.60.167.3">10.60.167.3</a>] (13)Permission
<br>> > > denied: exec of '/usr/local/apache2/cgi-bin/tilecache/tilecache.cgi'<br>> > failed<br>> > > [Fri Sep 14 11:33:30 2007] [error] [client <a href="http://10.60.167.3">10.60.167.3</a>
] Premature end of<br>> > > script headers: tilecache.cgi<br>> > ><br>> > > what can it be?<br>> ><br>> > Make Tilecache.cgi executable. (chmod +x<br>> > /usr/local/apache2/cgi-bin/tilecache/tilecache.cgi)
<br>> ><br>> > Regards,<br>> > --<br>> > Christopher Schmidt<br>> > MetaCarta<br>> ><br><br>--<br>Christopher Schmidt<br>MetaCarta<br></blockquote></div><br>