Hi all,
I'm messing around with XLRD. I've got some Excel 2003 files but xlrd
refused to read them. (Note: atleast one of them was previously read
on xlrd in Linux).
All the files I have, when opened in an HEX editor start with: "d0 cf
11 e0 a1 b1 1a e1" and as far as I know this is correct, but it seems
it isn't.
When I call open_workbook() I get:
37. book = xlrd.open_workbook(file_contents=data.read(),
verbosity=5)
File "...\xlrd\__init__.py" in open_workbook
429. biff_version = bk.getbof(XL_WORKBOOK_GLOBALS)
File "...\xlrd\__init__.py" in getbof
1545. bof_error('Expected BOF record; found %r' %
self.mem[savpos:savpos+8])
File "...\xlrd\__init__.py" in bof_error
1539. raise XLRDError('Unsupported format, or corrupt
file: ' + msg)
Exception Type: XLRDError at /.../
Exception Value: Unsupported format, or corrupt file: Expected BOF
record; found '\xd0\xcf\x11\xe0\xa1\xb1'
I'am using 0.7.1, over python 2.6 on Windows 7. The last time I tried
(and worked) I was on Linux with Python 2.5 (maybe there's the
problem?)
Thanks,
Marc
--
You received this message because you are subscribed to the Google Groups "python-excel" group.
To post to this group, send an email to
python...@googlegroups.com.
To unsubscribe from this group, send email to
python-excel...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/python-excel?hl=en-GB.