XLRD Python 2.51 Question

Carsten Haese carsten at uniqsys.com
Tue May 8 11:36:45 EDT 2007


On Tue, 2007-05-08 at 08:26 -0700, kylancal at gmail.com wrote:
> CompDocError: MSAT extension: accessing sector 1717046 but only 2887
> in file
> 
> I am not sure what this means at all

At least superficially that sounds like the file you're trying to open
is truncated or otherwise corrupted to the point where xlrd doesn't know
what to do with it. What happens if you try to open the file with Excel?
If Excel manages to open the file, maybe the file is using a storage
format that's newer than what xlrd is prepared to handle. In that case,
try saving the file to a different file name as another format (such as
Excel 97) that xlrd should be able to handle.

HTH,

-- 
Carsten Haese
http://informixdb.sourceforge.net





More information about the Python-list mailing list