Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when opening xls file - IOError: incorrect end of DIFAT #117

Open
prasanna-sk opened this issue Apr 18, 2019 · 2 comments
Open

Error when opening xls file - IOError: incorrect end of DIFAT #117

prasanna-sk opened this issue Apr 18, 2019 · 2 comments
Assignees
Milestone

Comments

@prasanna-sk
Copy link

Not sure if this is a bug. I am not sure if this is a bug. I am trying to extract the data from excel workbook and it seems to open file in MS Office 365.

But, I do get an error when opening an xls file -

IOError: incorrect end of DIFAT

I am not in a position to send the file as it has some confidential info. If there are other diagnostic commands I need to run, I can run them.

It seems to be an old xls (97-2003) file with hidden sheet & a vb macro.

To Reproduce - xls variable has the filename

>>> olefile.isOleFile(xls)
True
>>> ole = olefile.OleFileIO(xls)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.7/site-packages/olefile/olefile.py", line 1075, in __init__
    self.open(filename, write_mode=write_mode)
  File "/usr/lib/python2.7/site-packages/olefile/olefile.py", line 1348, in open
    self.loadfat(header)
  File "/usr/lib/python2.7/site-packages/olefile/olefile.py", line 1562, in loadfat
    raise IOError('incorrect end of DIFAT')
IOError: incorrect end of DIFAT

Version information:

  • OS: Rhel Linux
  • OS version: 7.2 - 64 bits
  • Python version: 2.7.5
  • olefile version: 0.46 (latest)
@decalage2
Copy link
Owner

OK, could you please run olefile.py from the command line, adding options -c and -d to get more debug information? Thanks.

@decalage2 decalage2 self-assigned this Apr 20, 2019
@decalage2 decalage2 added this to the olefile 0.47 milestone Apr 20, 2019
@prasanna-sk
Copy link
Author

Here you go. Thanks.
olefile_debug.txt
olefile_console_debug.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants