473,698 Members | 2,392 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

XLRDError: Can't find workbook in OLE2 compound document

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\li b\site-packages\Python win\pywin\frame work\scriptutil s.py",
line 310, in RunScript
exec codeObject in __main__.__dict __
File "D:\Python23\Te sting area\Python and Excel\read_map. py", line
71, in ?
workbook=xlrd.o pen_workbook(_f ile[kfp])
File "D:\PYTHON23\Li b\site-packages\xlrd\_ _init__.py", line 121, in
open_workbook
logfile=logfile , verbosity=verbo sity, pickleable=pick leable,
use_mmap=use_mm ap,
File "D:\PYTHON23\Li b\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.

Oct 16 '06 #1
0 3857

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

20
4887
by: Andy | last post by:
Hi All! General statement: FK should not be nullabe to avoid orphans in DB. Real life: Business rule says that not every record will have a parent. It is implemented as a child record has FK that is null.
0
282
by: Martin123 | last post by:
I am attempting to open, change, save, and then redirect to the changed Excel workbook in VB.NET on the intranet site.. It works fine in debug, but after putting it on server I get a ‘Document not saved' error message when attempting to save the workbook. The xls file I am opening is not read only, I am setting the ReadOnly parameter of open method of the workbook to False(even though it is that by default), and I gave ASPNET user Full...
1
1354
by: George1776 | last post by:
Background: I have taken an excel spreadsheet with the formatting I want, saved it as XML, then converted it to an XSL document to use it as a sort of template. Added some for-each select functionality and am able to populate it with data from good old Northwind. Everything is working great except one exasperating problem: the final XML document does not include an xml declaration (i.e. <?xml version="1.0"?>). It seems that the...
2
2083
by: nsd | last post by:
HI ALL, HERE I HAVE MADE USE OF SAME CURSOR DECLARATIONS AND USAGE IN THE FOLLOWING TWO DB2 CODES . BUT I AM GETTING AN ERROR IN THE FIRST CASE i.e CURSOR IN A SIMPLE BLOCK. SO I HAVE A QUESTION... CAN WE MAKE USE OF CURSORS IN A SIMPLE BLOCK?
3
3613
by: Polo | last post by:
Hi, We developped an application that save files as a compound document. Now we developp a new version in net and we would like to import old file format. What is the best way. A sample or a link is welcome Thank's in advance Polo
16
4548
by: LP | last post by:
Hello, I am trying to use .NET with Excel. I installed Office 2003 and selected ..NET programming suport option, so it installed all those PIA, as MS sugests. But I can not find a way to destroy Excel process, it still hangs in the taks manager' Processes as running. I am trying very simple code (see below), but Excel wont go away, I tried just about anything I could find on MSDN or by Google. Even calling WIN32 API to destroy Excel. But...
4
5838
by: Marco Aschwanden | last post by:
Hi I would like to 1. import an existing Excel-sheet (a template) 2. and add some data to it 3. and save it under a different name afterwards. To me it seems, that pyExcelerator does not support the reading for modification of an Excel-sheet. It allows only the "parse_xls" but I would like to keep the "formatting" in the template.
1
4307
by: kath | last post by:
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
8
11056
by: curious2007 | last post by:
Hello, I am getting the following error: 1>main.cpp 1>c:\program files\microsoft visual studio 8\vc\include\comdef.h(24) : fatal error C1083: Cannot open include file: 'ole2.h': No such file or directory 1> This error occurred in injected text: 1> 1>//+++ Start Injected Code 1>#injected_line 12 "c:\\users\\admin\\documents\\visual studio 2005\\projects\\vec\\vec\\exceldriver.hpp"
0
8678
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8609
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9166
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9030
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8899
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7737
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6525
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5861
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
3052
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.