Re: [Tutor] Unpack requires a string argument of length 8

2011-05-06 Thread Alan Gauld
"Susana Iraiis Delgado Rodriguez" wrote I already changed the code, I added the try statement and the script runned without ponting to an error. So to be clear. You run the script and it does NOT print 'El archivo ' +filepath+ ' esta vacio' But your file could still be empty since

Re: [Tutor] Unpack requires a string argument of length 8

2011-05-06 Thread Susana Iraiis Delgado Rodriguez
Hello Marc and Jim! First of all, thanks to both of you! I already changed the code, I added the try statement and the script runned without ponting to an error. But now, I have another problem, even though, it doesn't show an error message and makes the txt files, the files don't have any lines

Re: [Tutor] Unpack requires a string argument of length 8

2011-05-03 Thread Jim Richardson
On Mon, May 2, 2011 at 1:17 PM, Marc Tompkins wrote: > On Mon, May 2, 2011 at 12:36 PM, Susana Iraiis Delgado Rodriguez > wrote: >> >> I'm working on getting information that comes from a dbf file (database), >> this dbf file is related to another file in the system, a shapefile. My code >> is tr

Re: [Tutor] Unpack requires a string argument of length 8

2011-05-02 Thread Marc Tompkins
On Mon, May 2, 2011 at 12:36 PM, Susana Iraiis Delgado Rodriguez < susana.delgad...@utzmg.edu.mx> wrote: > I'm working on getting information that comes from a dbf file (database), > this dbf file is related to another file in the system, a shapefile. My code > is trying to get all the dbf name re

[Tutor] Unpack requires a string argument of length 8

2011-05-02 Thread Susana Iraiis Delgado Rodriguez
I'm working on getting information that comes from a dbf file (database), this dbf file is related to another file in the system, a shapefile. My code is trying to get all the dbf name records, but when the systen gets an empty file, my code fails: Traceback (most recent call last): File "", line