Re: [Tutor] RuntimeError: file does not exist

2011-05-19 Thread Susana Iraiis Delgado Rodriguez
Hi Alan!! After I read your e-mail, I remebered that I run the scripts in a different way. The script worked properly when I run it from Python IDLE, I don't have any idea the reason why. 2011/5/19 Alan Gauld > > "Susana Iraiis Delgado Rodriguez" wrote > > > Well, I tried this code in other

Re: [Tutor] RuntimeError: file does not exist

2011-05-19 Thread Alan Gauld
"Susana Iraiis Delgado Rodriguez" wrote Well, I tried this code in other computer and it worked just fine. But when I run the module in my computer it throws many errors, So what is different between the computers? What are the respective OS versions and Python versions? How exactly

Re: [Tutor] RuntimeError: file does not exist

2011-05-19 Thread Susana Iraiis Delgado Rodriguez
Hello everyone! Well, I tried this code in other computer and it worked just fine. I changed the line: lyr.datasource = mapnik.Shapefile(base=filepath, file=filepath) for lyr.datasource = mapnik.Shapefile(base=ruta,file=archivo[0]) I also did hard coding to test my script: lyr.datasour

Re: [Tutor] RuntimeError: file does not exist

2011-05-19 Thread Brad Posthumus
Susana Iraiis Delgado Rodriguez wrote: > > Hello Alan!! > Can you please tell me, how to rebuild my path? I've tried it, but I > didn't > succed =( > > The doctest for the Shapefile function includes this line: >>> shp = Shapefile(base='/home/mapnik/data',file='world_borders') This tell

Re: [Tutor] RuntimeError: file does not exist

2011-05-18 Thread Prasad, Ramit
ne: 713 - 216 - 5423 From: tutor-bounces+ramit.prasad=jpmchase@python.org [mailto:tutor-bounces+ramit.prasad=jpmchase@python.org] On Behalf Of Susana Iraiis Delgado Rodriguez Sent: Wednesday, May 18, 2011 9:45 AM To: Alan Gauld Cc: tutor@python.org Subject: Re: [Tutor] RuntimeError: file d

Re: [Tutor] RuntimeError: file does not exist

2011-05-18 Thread Walter Prins
On 18 May 2011 15:45, Susana Iraiis Delgado Rodriguez < susana.delgad...@utzmg.edu.mx> wrote: > Hello Alan!! > Can you please tell me, how to rebuild my path? I've tried it, but I didn't > succed =( > > Always post the code you tried, and the full error message you received, otherwise you make it

Re: [Tutor] RuntimeError: file does not exist

2011-05-18 Thread Susana Iraiis Delgado Rodriguez
Hello Alan!! Can you please tell me, how to rebuild my path? I've tried it, but I didn't succed =( 2011/5/17 Alan Gauld > > "Susana Iraiis Delgado Rodriguez" wrote > > > message which tells me the file I want to work with >> doesn't exist, but it does. >> > > I don't believe you! :-) > > Trac

Re: [Tutor] RuntimeError: file does not exist

2011-05-17 Thread Alan Gauld
"Susana Iraiis Delgado Rodriguez" 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)

Re: [Tutor] RuntimeError: file does not exist

2011-05-17 Thread Susana Iraiis Delgado Rodriguez
Hello Emile! Well, I changed the values because if I assigned different values, anyways I got the next error: Traceback (most recent call last): File "", line 1, in File "imagen_shp.py", line 32, in lyr.datasource = mapnik.Shapefile(base=raiz, file=archivo[0]) File "C:\mapnik-0.7.1\pyt

Re: [Tutor] RuntimeError: file does not exist

2011-05-17 Thread Emile van Sebille
On 5/17/2011 10:10 AM Susana Iraiis Delgado Rodriguez said... Hello list!! I'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't exist, but it d

[Tutor] RuntimeError: file does not exist

2011-05-17 Thread Susana Iraiis Delgado Rodriguez
Hello list!! I'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't exist, but it does. I'm running the script from Windows. This is the code: impo