Import Error in TileCache under Apache CGI

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Import Error in TileCache under Apache CGI

Jorge Arévalo
Hello,

I'm trying to load a MBTiles cache and I'm getting this error:

An error occurred: No module named MBTiles
  File "C:\Program Files (x86)\Apache Software
Foundation\Apache2.2\cgi-bin\TileCache\Service.py", line 103, in _load
    cache = cache)
  File "C:\Program Files (x86)\Apache Software
Foundation\Apache2.2\cgi-bin\TileCache\Service.py", line 63, in
_loadFromSection
    object_module = import_module("TileCache.Layers.%s" % type)
  File "C:\Program Files (x86)\Apache Software
Foundation\Apache2.2\cgi-bin\TileCache\Service.py", line 36, in
import_module
    mod = __import__(name)

Same problem with cache types: TMS, GoogleDisk. WMS basic example works fine.

My tilecache.cfg file:

[cache]
type=Disk
base=C:/cache

[mb_tiles]
type=MBTiles
base=C:/data
ext=mbtiles

TileCache 2.11 running as CGI under Apache 2. Windows 7 box.

Any clues?

Thanks in advance,

--
Jorge Arévalo
Internet & Mobility Division, DEIMOS
[hidden email]
http://mobility.grupodeimos.com/
http://www.libregis.org
http://geohash.org/ezjqgrgzz0g
_______________________________________________
Tilecache mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/tilecache
Reply | Threaded
Open this post in threaded view
|

Re: Import Error in TileCache under Apache CGI

Jorge Arévalo
2011/12/15 Jorge Arévalo <[hidden email]>:

> Hello,
>
> I'm trying to load a MBTiles cache and I'm getting this error:
>
> An error occurred: No module named MBTiles
>  File "C:\Program Files (x86)\Apache Software
> Foundation\Apache2.2\cgi-bin\TileCache\Service.py", line 103, in _load
>    cache = cache)
>  File "C:\Program Files (x86)\Apache Software
> Foundation\Apache2.2\cgi-bin\TileCache\Service.py", line 63, in
> _loadFromSection
>    object_module = import_module("TileCache.Layers.%s" % type)
>  File "C:\Program Files (x86)\Apache Software
> Foundation\Apache2.2\cgi-bin\TileCache\Service.py", line 36, in
> import_module
>    mod = __import__(name)
>
> Same problem with cache types: TMS, GoogleDisk. WMS basic example works fine.
>
> My tilecache.cfg file:
>
> [cache]
> type=Disk
> base=C:/cache
>
> [mb_tiles]
> type=MBTiles
> base=C:/data
> ext=mbtiles
>
> TileCache 2.11 running as CGI under Apache 2. Windows 7 box.
>
> Any clues?
>
> Thanks in advance,
>
> --
> Jorge Arévalo
> Internet & Mobility Division, DEIMOS
> [hidden email]
> http://mobility.grupodeimos.com/
> http://www.libregis.org
> http://geohash.org/ezjqgrgzz0g

Ok, I was defining caches as if they were layers. Now I have this:

[cache]
type=MBTiles
base=C:/data
ext=mbtiles

[my_layer]
?????

I don't know how to define my layer, because I only have a bunch of
tiles in a MBTiles file. I don't have any WMS or MapServer layer.

Am I in the right way to serve my MBTiles file?

Thanks in advance

--
Jorge Arévalo
Internet & Mobility Division, DEIMOS
[hidden email]
http://mobility.grupodeimos.com/
http://www.libregis.org
http://geohash.org/ezjqgrgzz0g
_______________________________________________
Tilecache mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/tilecache