Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from xlrd import open_workbook
- import os.path
- wb = open_workbook('C:UsersxxxxDesktopa.xlsx')
- Error:Traceback (most recent call last):
- File "C:Python271.py", line 3, in <module>
- wb = open_workbook('C:UsersxxxxDesktopa.xlsx')
- File "C:Python27libsite-packagesxlrd__init__.py", line 429, in open_workbook
- biff_version = bk.getbof(XL_WORKBOOK_GLOBALS)
- File "C:Python27libsite-packagesxlrd__init__.py", line 1545, in getbof
- bof_error('Expected BOF record; found %r' % self.mem[savpos:savpos+8])
- File "C:Python27libsite-packagesxlrd__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 'PKx03x04x14x00x06x00'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement