468,288 Members | 1,978 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,288 developers. It's quick & easy.

what are XLRDError and CompDocError?

Hi,
i am facing some problems with opening an excel file. I am using XLRD
module.
I am getting

XLRDError: Can't find workbook in OLE2 compound document

and

CompDocError: Not a whole number of sectors

exceptions in seperate try on different files.

1.Does any one know anout these exceptions? what is the cause?

2. what I should do to resolve these problems.?

Thank you,
regards,
sudhir.

Oct 17 '06 #1
1 3172

kath wrote:
Hi,
i am facing some problems with opening an excel file. I am using XLRD
module.
I am getting

XLRDError: Can't find workbook in OLE2 compound document

and

CompDocError: Not a whole number of sectors

exceptions in seperate try on different files.

1.Does any one know anout these exceptions? what is the cause?
a. "XLRDError: Can't find workbook in OLE2 compound document" -- would
indicate that the OLE internal directory is broken. Can't find an entry
named Workbook or Book.

b. "CompDocError: Not a whole number of sectors" -- would indicate that
the file is truncated or otherwise malformed.
>
2. what I should do to resolve these problems.?
Send an e-mail message to the package author, providing in each case
(1) the versions of Python and xlrd that you are using, on what
platform
(2) a full copy/paste of the error message *AND* the traceback
(3) a copy of the file
(4) what software (with version info, if possible) was used to create
the file
(5) what results you get when you try to open it with OpenOffice.org's
calc, Gnumeric, Excel, Excel Viewer, ...

Cheers

Oct 30 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

8 posts views Thread by Randell D. | last post: by
52 posts views Thread by Tony Marston | last post: by
5 posts views Thread by Richie | last post: by
15 posts views Thread by lkrubner | last post: by
121 posts views Thread by typingcat | last post: by
8 posts views Thread by Midnight Java Junkie | last post: by
reply views Thread by NPC403 | last post: by
2 posts views Thread by MrBee | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.