XLRDError: Can't find workbook in OLE2 compound document

K

kath

Hi....

XLRDError: Can't find workbook in OLE2 compound document

What does this error means?

When I try to open some excel files using XLRD, I encounter this error.
Not with every excel, but with some file.
Can anybody help me know, what is this error trying say and what I
should do to avoid this.


Traceback (most recent call last):
File
"D:\PYTHON23\lib\site-packages\Pythonwin\pywin\framework\scriptutils.py",
line 310, in RunScript
exec codeObject in __main__.__dict__
File "D:\Python23\Testing area\Python and Excel\read_map.py", line
71, in ?
workbook=xlrd.open_workbook(_file[kfp])
File "D:\PYTHON23\Lib\site-packages\xlrd\__init__.py", line 121, in
open_workbook
logfile=logfile, verbosity=verbosity, pickleable=pickleable,
use_mmap=use_mmap,
File "D:\PYTHON23\Lib\site-packages\xlrd\__init__.py", line 304, in
__init__
raise XLRDError("Can't find workbook in OLE2 compound document")
XLRDError: Can't find workbook in OLE2 compound document


Thank you.
Regards,
sudhir.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,262
Messages
2,571,052
Members
48,769
Latest member
Clifft

Latest Threads

Top