[Tilecache] Problem with TileCache installation

Ruben Pardo correosig at gmail.com
Mon Sep 17 08:03:50 EDT 2007


thanks Chrhis,

the error was an incorrect python location in the script (i put
#!/usr/local/python/bin instead of #!/usr/local/bin/python ),

when i solve this i get  ...  ImportError: No module named TileCache.Service
do i need to change all python location in every .py file?
thanks

this is my log ...

URI: '/tilecache/tilecache.py'
[Mon Sep 17 13:56:06 2007] [error] [client 10.60.167.3] Location: None
[Mon Sep 17 13:56:06 2007] [error] [client 10.60.167.3] Directory:
'/opt/ms/apps/tilecache/'
[Mon Sep 17 13:56:06 2007] [error] [client 10.60.167.3] Filename:
'/opt/ms/apps/tilecache/tilecache.py'
[Mon Sep 17 13:56:06 2007] [error] [client 10.60.167.3] PathInfo: ''
[Mon Sep 17 13:56:06 2007] [error] [client 10.60.167.3] Traceback (most
recent call last):
[Mon Sep 17 13:56:06 2007] [error] [client 10.60.167.3]   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)
[Mon Sep 17 13:56:06 2007] [error] [client 10.60.167.3]   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)
[Mon Sep 17 13:56:06 2007] [error] [client 10.60.167.3]   File
"/usr/local/lib/python2.5/site-packages/mod_python/importer.py", line 304,
in import_module\n    return __import__(module_name, {}, {}, ['*'])
[Mon Sep 17 13:56:06 2007] [error] [client 10.60.167.3] ImportError: No
module named TileCache.Service

2007/9/14, Christopher Schmidt <crschmidt at metacarta.com>:
>
> On Fri, Sep 14, 2007 at 01:27:09PM +0200, Ruben Pardo wrote:
> > thank chris,
> > Yes i  really did, but it didn't work, (the same logs)
>
> Really? that's odd. It means that /bin/env is not executable. Strange.
>
> See:
>
> "Non-standard Python Location"
>
> in the README for another thing to try: specifying The python location
> explicitly might help.
>
> -- Chris
>
>
> > the permission ...
> >
> > drwxr-xr-x 3 root root  4096 sep 14 11:16 ..
> > -rwxr-xr-x 1 root root  3580 sep 14 11:16 CHANGELOG
> > -rwxr-xr-x 1 root root   213 sep 14 11:16 CONTRIBUTORS
> > drwxr-xr-x 2 root root  4096 sep 14 11:16 debian
> > -rwxr-xr-x 1 root root  3466 sep 14 11:16 HACKING
> > -rwxr-xr-x 1 root root  1135 sep 14 11:16 index.html
> > -rwxr-xr-x 1 root root  1507 sep 14 11:16 LICENSE
> > -rwxr-xr-x 1 root root   263 sep 14 11:16 MANIFEST
> > -rwxr-xr-x 1 root root 14791 sep 14 11:16 README
> > -rwxr-xr-x 1 root root   506 sep 14 11:16 setup.py
> > drwxr-xr-x 2 root root  4096 sep 14 11:16 TileCache
> > -rwxr-xr-x 1 root root  1868 sep 14 11:16 tilecache.cfg
> > -rwxr-xr-x 1 root root   167 sep 14 11:16 tilecache.cgi
> > -rwxr-xr-x 1 root root  2672 sep 14 11:16 tilecache_clean.py
> > -rwxr-xr-x 1 root root   173 sep 14 11:34 tilecache.fcgi
> > -rwxr-xr-x 1 root root   293 sep 14 11:16 tilecache_http_server.py
> > -rwxr-xr-x 1 root root   247 sep 14 11:16 tilecache_seed.py
> >
> >
> > 2007/9/14, Christopher Schmidt <crschmidt at metacarta.com>:
> > >
> > > On Fri, Sep 14, 2007 at 11:44:10AM +0200, Ruben Pardo wrote:
> > > > Hi,
> > > >
> > > > i'm trying to install TileCache on a cgi on Apache,  with Mapserver
> > > > mod_python, mod_fastcgi,
> > > > I extract on cgi-bin, add the handler to the path tilecache like
> says in
> > > > README file,
> > > > but when i try to run a request it logs me:
> > > >
> > > > [Fri Sep 14 11:33:30 2007] [error] [client 10.60.167.3]
> (13)Permission
> > > > denied: exec of '/usr/local/apache2/cgi-bin/tilecache/tilecache.cgi'
> > > failed
> > > > [Fri Sep 14 11:33:30 2007] [error] [client 10.60.167.3] Premature
> end of
> > > > script headers: tilecache.cgi
> > > >
> > > > what can it be?
> > >
> > > Make Tilecache.cgi executable. (chmod +x
> > > /usr/local/apache2/cgi-bin/tilecache/tilecache.cgi)
> > >
> > > Regards,
> > > --
> > > Christopher Schmidt
> > > MetaCarta
> > >
>
> --
> Christopher Schmidt
> MetaCarta
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/tilecache/attachments/20070917/741a2f78/attachment.html


More information about the Tilecache mailing list