[Tilecache] tilecache DLL load failed error

Chang, Elizabeth Elizabeth.Chang at noblis.org
Tue Jun 9 15:05:40 EDT 2009


Yes! That definitely helped. All I did was copy the
c:\mapnik*\site-packages\mapnik* to c:\python25\Lib\site-packages and it
is working now.

Thanks!!

- Elizabeth
 

-----Original Message-----
From: tilecache-bounces at openlayers.org
[mailto:tilecache-bounces at openlayers.org] On Behalf Of kryptonite
Sent: Tuesday, June 09, 2009 2:57 PM
To: tilecache at openlayers.org
Subject: Re: [Tilecache] tilecache DLL load failed error


Yeah it is with the set up. You need to set the PATH and PYTHONPATH
variables
like mentioned in the mapnik installation guide. Also copy the mapnik
folder
from your mapnik installation(C:\mapnik*\site-packages) to the
sitepackages
folder in your python installation(C:\Python25\Lib\site-packages) --
without
this you get 'no module named mapnik'

   make sure that 'from mapnik import *' runs without error..
   Don't have two python installation.It won't work. So only have one
installation.

  Hope it helps...   
   
  


echang wrote:
> 
> Sorry I don't know the answer but I posted earlier today email called
> "completing basic tutorial" and we may be getting the same error. I am
> not running with mod_python but my error is
> 
> 
> An error occurred: No module named mapnik
>   File "C:\Program Files\Apache Software
> Foundation\Apache2.2\cgi-bin\TileCache\Service.py", line 323
> , in cgiHandler
>     format, image = service.dispatchRequest( params, path_info,
> req_method, host )
>   File "C:\Program Files\Apache Software
> Foundation\Apache2.2\cgi-bin\TileCache\Service.py", line 208
> , in dispatchRequest
>     return self.renderTile(tile, params.has_key('FORCE'))
>   File "C:\Program Files\Apache Software
> Foundation\Apache2.2\cgi-bin\TileCache\Service.py", line 138
> , in renderTile
>     data = layer.render(tile, force=force)
>   File "C:\Program Files\Apache Software
> Foundation\Apache2.2\cgi-bin\TileCache\Layer.py", line 435,
>  in render
>     image = self.renderMetaTile(metatile, tile)
>   File "C:\Program Files\Apache Software
> Foundation\Apache2.2\cgi-bin\TileCache\Layer.py", line 395,
>  in renderMetaTile
>     data = self.renderTile(metatile)
>   File "C:\Program Files\Apache Software
> Foundation\Apache2.2\cgi-bin\TileCache\Layers\Mapnik.py", line
>  27, in renderTile
>     import mapnik
> 
> 
> I'm thinking it has to do with my setup rather than my configuration
> files. We are both running apache, tilecache, mapnik in windows.
Please
> let the list know if you figure out your issue.
> 
> I do have multiple python installed but there is no reference to my
> other python in path, pythonhome, pythonpath and the tilecache.cgi has
> the correct reference to c:\python25\python.exe. Also I can  do import
> mapnik from this python. 
> 
> - Elizabeth
>  
> -----Original Message-----
> From: tilecache-bounces at openlayers.org
> [mailto:tilecache-bounces at openlayers.org] On Behalf Of kryptonite
> Sent: Tuesday, June 09, 2009 1:59 PM
> To: tilecache at openlayers.org
> Subject: Re: [Tilecache] tilecache DLL load failed error
> 
> 
> Josh,
>        Thanks for your quick response. Well I have only one version of
> python installed. Like you mentioned, I have also been able to run
'from
> mapnik import *' without any errors.I also have c:/python25/python.exe
> in
> tilecache.cgi....
>        anything other than the ones you have pointed out?
> 
> 
>   
> 
> Josh Livni wrote:
>> 
>> Looks like python was unable to import mapnik.  So either it is not
>> installed correctly, or you have multiple python versions and apache
> is
>> not
>> loading the one you think it is.
>> 
>> Check your tilecache.cgi to see what python it is load (eg
>> c:/python25/python.exe versus some other one?).  Run that python.exe,
> and
>> make sure that you can type 'from mapnik import *' and not get
> errors..
>> 
>> 
>>  -Josh
>> 
>> 
>> On Tue, Jun 9, 2009 at 10:31 AM, kryptonite <paschatap at gmail.com>
> wrote:
>> 
>>>
>>> Hi,
>>>   does anyone know what this means? I already have the mod_python ,
>>> mapnik,
>>> tilecache installed. I was trying to get a map to display but
instead
>>> only
>>> got pink tiles. I get the error listed below when I use the tile
> image
>>> url
>>> to display on the browser.
>>>
>>> An error occurred: DLL load failed: The specified module could not
be
>>> found.
>>>  File "C:/Program Files/Apache Software
>>> Foundation/Apache2.2/htdocs/tilecache\TileCache\Service.py", line
> 256, in
>>> modPythonHandler
>>>    host )
>>>  File "C:/Program Files/Apache Software
>>> Foundation/Apache2.2/htdocs/tilecache\TileCache\Service.py", line
> 208, in
>>> dispatchRequest
>>>    return self.renderTile(tile, params.has_key('FORCE'))
>>>  File "C:/Program Files/Apache Software
>>> Foundation/Apache2.2/htdocs/tilecache\TileCache\Service.py", line
> 138, in
>>> renderTile
>>>    data = layer.render(tile, force=force)
>>>  File "C:/Program Files/Apache Software
>>> Foundation/Apache2.2/htdocs/tilecache\TileCache\Layer.py", line 443,
> in
>>> render
>>>    return self.renderTile(tile)
>>>  File "C:/Program Files/Apache Software
>>> Foundation/Apache2.2/htdocs/tilecache\TileCache\Layers\Mapnik.py",
> line
>>> 27,
>>> in renderTile
>>>    import mapnik
>>>  File "c:\mapnik_0_6_0\site-packages\mapnik\__init__.py", line 44,
in
>>> <module>
>>>    from _mapnik import *
>>>
>>> --
>>> View this message in context:
>>>
>
http://n2.nabble.com/tilecache-DLL-load-failed-error-tp3050928p3050928.h
> tml
>>> Sent from the TileCache mailing list archive at Nabble.com.
>>>
>>> _______________________________________________
>>> Tilecache mailing list
>>> Tilecache at openlayers.org
>>> http://openlayers.org/mailman/listinfo/tilecache
>>>
>> 
>> _______________________________________________
>> Tilecache mailing list
>> Tilecache at openlayers.org
>> http://openlayers.org/mailman/listinfo/tilecache
>> 
>> 
> 
> -- 
> View this message in context:
>
http://n2.nabble.com/tilecache-DLL-load-failed-error-tp3050928p3051091.h
> tml
> Sent from the TileCache mailing list archive at Nabble.com.
> 
> _______________________________________________
> Tilecache mailing list
> Tilecache at openlayers.org
> http://openlayers.org/mailman/listinfo/tilecache
> _______________________________________________
> Tilecache mailing list
> Tilecache at openlayers.org
> http://openlayers.org/mailman/listinfo/tilecache
> 
> 

-- 
View this message in context:
http://n2.nabble.com/tilecache-DLL-load-failed-error-tp3050928p3051423.h
tml
Sent from the TileCache mailing list archive at Nabble.com.

_______________________________________________
Tilecache mailing list
Tilecache at openlayers.org
http://openlayers.org/mailman/listinfo/tilecache



More information about the Tilecache mailing list