[Tutor] RuntimeError: file does not exist
Alan Gauld
alan.gauld at btinternet.com
Tue May 17 23:01:31 CEST 2011
"Susana Iraiis Delgado Rodriguez" <susana.delgado_s at utzmg.edu.mx>
wrote
> message which tells me the file I want to work with
> doesn't exist, but it does.
I don't believe you! :-)
> Traceback (most recent call last):...
> lyr.datasource = mapnik.Shapefile(base=filepath, file=filepath)
> return CreateDatasource(keywords)
> RuntimeError: C:\Ýndice.shp/C:\Ýndice does not exist
That "file name" has two C: in it which I am pretty sure is
an illegal path in Windows. Therfore the file cannot exist.
You just need to build your path correctly I suspect.
--
Alan Gauld
Author of the Learn to Program web site
http://www.alan-g.me.uk/
More information about the Tutor
mailing list