Hello list!!<br><br>I&#39;m using a python dll to create images out from shapefiles. I import a python module and its functions, when I want to use this library, I get a message which tells me the file I want to work with doesn&#39;t exist, but it does. I&#39;m running the script from Windows. This is the code:<br>

import mapnik<br>import os,fnmatc<br>file_list = []<br>folders = None<br>for root, folders, files in os.walk( &quot;C:\\&quot; ):<br>    for filename in fnmatch.filter(files, &#39;*.shp&#39;):<br>        file_list.append(os.path.join(root, filename))<br>

for row, filepath in enumerate(file_list, start=1): <br>    (ruta, filename) = os.path.split(filepath)     <br>    i = archivo[0]+&#39;.png&#39;<br>    m = mapnik.Map(800,500,&quot;+proj=latlong +datum=WGS84&quot;)<br>    m.background = mapnik.Color(&#39;#f2eff9&#39;)<br>

    s = mapnik.Style()<br>    r=mapnik.Rule()<br>    r.symbols.append(mapnik.PolygonSymbolizer(mapnik.Color(&#39;steelblue&#39;)))<br>    r.symbols.append(mapnik.LineSymbolizer(mapnik.Color(&#39;rgb(50%,50%,50%)&#39;),0.1))<br>

    s.rules.append(r)<br>    m.append_style(&#39;My Style&#39;,s)<br>    lyr = mapnik.Layer(&#39;world&#39;,&quot;+proj=latlong +datum=WGS84&quot;)<br>    lyr.datasource = mapnik.Shapefile(base=filepath, file=filepath)<br>

    lyr.styles.append(&#39;My Style&#39;)<br>    m.layers.append(lyr)<br>    m.zoom_to_box(lyr.envelope())<br>    mapnik.render_to_file(m,i, &#39;png&#39;)<br>print &quot;Listo&quot;<br>I get the next error:<br>Python 2.6.6 (r266:84297, Aug 24 2010, 18:46:32) [MSC v.1500 32 bit (Intel)] on<br>

win32<br>Type &quot;help&quot;, &quot;copyright&quot;, &quot;credits&quot; or &quot;license&quot; for more information.<br>&gt;&gt;&gt; import imagen_shp<br>Traceback (most recent call last):<br>  File &quot;&lt;stdin&gt;&quot;, line 1, in &lt;module&gt;<br>

  File &quot;imagen_shp.py&quot;, line 32, in &lt;module&gt;<br>    lyr.datasource = mapnik.Shapefile(base=filepath, file=filepath)<br>  File &quot;C:\mapnik-0.7.1\python\2.6\site-packages\mapnik\__init__.py&quot;, line 282,<br>

in Shapefile<br>    return CreateDatasource(keywords)<br>RuntimeError: C:\Ưndice.shp/C:\Ưndice does not exist<br>&gt;&gt;&gt;<br>I also reviewed the line which causes the error, it&#39;s a script from the mapnik library:<br>

def Shapefile(**keywords):<br>    &quot;&quot;&quot;Create a Shapefile Datasource.<br>    Required keyword arguments:<br>      file -- path to shapefile without extension<br>    Optional keyword arguments:<br>      base -- path prefix (default None)<br>

      encoding -- file encoding (default &#39;utf-8&#39;)<br>    &gt;&gt;&gt; from mapnik import Shapefile, Layer<br>    &gt;&gt;&gt; shp = Shapefile(base=&#39;/home/mapnik/data&#39;,file=&#39;world_borders&#39;) <br>    &gt;&gt;&gt; lyr = Layer(&#39;Shapefile Layer&#39;)<br>

    &gt;&gt;&gt; lyr.datasource = shp<br>  &quot;&quot;&quot;<br>keywords[&#39;type&#39;] = &#39;shape&#39;<br>    return CreateDatasource(keywords)<br>Does anyone could help me?<br>