Web Images Videos Maps News Groups Gmail more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Status of XLRD reading .xlsx (Excel 2007)
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  6 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Darryl Wallace  
View profile  
 More options Jun 25, 6:51 am
From: Darryl Wallace <walla...@gmail.com>
Date: Wed, 24 Jun 2009 13:51:51 -0700 (PDT)
Local: Thurs, Jun 25 2009 6:51 am
Subject: Status of XLRD reading .xlsx (Excel 2007)
I know this has been asked in the past, but is support for
reading .xlsx (Excel 2007) format closer to being complete?

The reason I ask is because the included README.html mentions that
support is scheduled for v0.7.1 which is the current version.  I tried
to read a simple excel 2007 (under ubuntu linux, python 2.5.4) file
and was greeted with the following error:
---

>>> book = xlrd.open_workbook("myexcel2007book.xlsx")

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "xlrd/__init__.py", line 429, in open_workbook
    biff_version = bk.getbof(XL_WORKBOOK_GLOBALS)
  File "xlrd/__init__.py", line 1545, in getbof
    bof_error('Expected BOF record; found %r' % self.mem[savpos:savpos
+8])
  File "xlrd/__init__.py", line 1539, in bof_error
    raise XLRDError('Unsupported format, or corrupt file: ' + msg)
xlrd.biffh.XLRDError: Unsupported format, or corrupt file: Expected
BOF record; found 'PK\x03\x04\x14\x00\x06\x00'
---
So my guess is that it's not ready and that's fine.  I was just
interested in the status.

Regards,
Darryl


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Daniel Burke  
View profile  
 More options Jun 25, 11:16 am
From: Daniel Burke <dan.p.bu...@gmail.com>
Date: Thu, 25 Jun 2009 10:46:12 +0930
Local: Thurs, Jun 25 2009 11:16 am
Subject: Re: [pyxl] Status of XLRD reading .xlsx (Excel 2007)
xlsx files are zip archives with xml files in them, you can read them
with your favorite DOM parser if you're impatient.

regards,

dan
--
"It's your privilege as an artist to inflict the pain of creativity on
yourself." --Programming Perl 3rd Edition, end of first chapter.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
John Machin  
View profile  
 More options Jun 25, 12:29 pm
From: John Machin <sjmac...@lexicon.net>
Date: Thu, 25 Jun 2009 12:29:39 +1000
Local: Thurs, Jun 25 2009 12:29 pm
Subject: Re: [pyxl] Status of XLRD reading .xlsx (Excel 2007)
On 25/06/2009 6:51 AM, Darryl Wallace wrote:

Hi Darryl,

> I know this has been asked in the past, but is support for
> reading .xlsx (Excel 2007) format closer to being complete?

The current intention is this:
Basic support will be in the next release, whenever that is, unless
something happens that causes it not to be. It is intended to support
on_demand=True but not formatting_info=True. Support for *any* version
of Excel is unlikely ever to be "complete".

> The reason I ask is because the included README.html mentions that
> support is scheduled for v0.7.1 which is the current version.

s/is/was/

I apologise for the slackness of the documentation team :-)

If you have some non-simple XLSX files that you think may test the
capabilities of the development team, please send them. Of particular
interest would be files created by software other than Excel itself. As
with previous Excel versions, Microsoft documentation will say "you must
do X" but Excel will support reading non-X. This has already occurred
with the docs saying you must use the shared string table; C# code
supplied by an MS write-your-own-XLSX workshop doesn't comply but Excel
accepts the resultant file silently.

Cheers,
John


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
John Machin  
View profile  
 More options Jun 25, 12:32 pm
From: John Machin <sjmac...@lexicon.net>
Date: Thu, 25 Jun 2009 12:32:52 +1000
Local: Thurs, Jun 25 2009 12:32 pm
Subject: Re: [pyxl] Re: Status of XLRD reading .xlsx (Excel 2007)
On 25/06/2009 11:16 AM, Daniel Burke wrote:

> xlsx files are zip archives with xml files in them, you can read them
> with your favorite DOM parser if you're impatient.

Yes, dead easy, might want to have a quick flick through the docs though:

http://www.ecma-international.org/publications/standards/Ecma-376.htm

BTW, you need 1st edition (2006) for Excel 2007, not 2nd edition (2008)


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Darryl Wallace  
View profile  
 More options Jun 26, 2:54 am
From: Darryl Wallace <walla...@gmail.com>
Date: Thu, 25 Jun 2009 09:54:35 -0700 (PDT)
Local: Fri, Jun 26 2009 2:54 am
Subject: Re: Status of XLRD reading .xlsx (Excel 2007)
On Jun 24, 9:16 pm, Daniel Burke <dan.p.bu...@gmail.com> wrote:

> xlsx files are zip archives with xml files in them, you can read them
> with your favorite DOM parser if you're impatient.

Well.. thanks for the tip and your interesting contribution to this
thread?  I understand they are zip archives with xml files in them.  I
am, however, not impatient.  I was simply asking for clarification.

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Darryl Wallace  
View profile  
 More options Jun 26, 2:58 am
From: Darryl Wallace <walla...@gmail.com>
Date: Thu, 25 Jun 2009 09:58:54 -0700 (PDT)
Local: Fri, Jun 26 2009 2:58 am
Subject: Re: Status of XLRD reading .xlsx (Excel 2007)

> The current intention is this:
> Basic support will be in the next release, whenever that is, unless
> something happens that causes it not to be. It is intended to support
> on_demand=True but not formatting_info=True. Support for *any* version
> of Excel is unlikely ever to be "complete".

Thanks for the update!

> > The reason I ask is because the included README.html mentions that
> > support is scheduled for v0.7.1 which is the current version.

> s/is/was/

> I apologise for the slackness of the documentation team :-)

No problem.

> If you have some non-simple XLSX files that you think may test the
> capabilities of the development team, please send them. Of particular
> interest would be files created by software other than Excel itself. As
> with previous Excel versions, Microsoft documentation will say "you must
> do X" but Excel will support reading non-X. This has already occurred
> with the docs saying you must use the shared string table; C# code
> supplied by an MS write-your-own-XLSX workshop doesn't comply but Excel
> accepts the resultant file silently.

Most excel files I need to read in are simple, basic, data tables.
The main thing I'm interested in is simply the ability to have larger
data tables (>256 columns, etc.)

Thanks for your work on this library.  It's proven to be extremely
useful.

Darryl


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google