XLRD Python 2.51 Question

kylancal at gmail.com kylancal at gmail.com
Tue May 8 11:26:58 EDT 2007


I am trying to read an Excel book with XLRD and I am getting the
following error

Traceback (most recent call last):
  File "C:\temp\ReadGoldmanExcelFiles.py", line 62, in <module>
    startRow = 0, sh_idx = 0, path2 = '//otaam.com/root/SharedFiles/
GlobeOp/Risk/Cal Projects/temp/')
  File "C:\temp\ReadGoldmanExcelFiles.py", line 36, in excelTocsv
    book = xlrd.open_workbook(infile)
  File "C:\Python25\lib\site-packages\xlrd\__init__.py", line 362, in
open_workbook
    formatting_info=formatting_info,
  File "C:\Python25\lib\site-packages\xlrd\__init__.py", line 791, in
__init__
    cd = compdoc.CompDoc(filestr)
  File "C:\Python25\lib\site-packages\xlrd\compdoc.py", line 122, in
__init__
    "MSAT extension: accessing sector %d but only %d in file" % (sid,
mem_data_secs)
CompDocError: MSAT extension: accessing sector 1717046 but only 2887
in file

I am not sure what this means at all, can anyone help here?  Thanks
alot




More information about the Python-list mailing list