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

ppt_parser seems broken on Py3 #177

Closed
Th4nat0s opened this issue Jun 26, 2017 · 1 comment · Fixed by #450
Closed

ppt_parser seems broken on Py3 #177

Th4nat0s opened this issue Jun 26, 2017 · 1 comment · Fixed by #450

Comments

@Th4nat0s
Copy link

DEBUG    closing stream 'PowerPoint Document' after iter_vba_data
ERROR    Unhandled exception in main: Can't convert 'bytes' object to str implicitly

real issue is : 

Traceback (most recent call last):
  File "./olevba3.py", line 3370, in main
    relaxed=options.relaxed)
  File "./olevba3.py", line 2982, in __init__
    super(VBA_Parser_CLI, self).__init__(*args, **kwargs)
  File "./olevba3.py", line 2286, in __init__
    self.open_ppt()
  File "./olevba3.py", line 2531, in open_ppt
    for vba_data in ppt.iter_vba_data():
  File "/usr/local/lib/python3.4/dist-packages/oletools-0.51.dev8-py3.4.egg/oletools/ppt_parser.py", line 1107, in wrapped
    for result in func(self, self._open_main_stream, *args, **kwargs):
  File "/usr/local/lib/python3.4/dist-packages/oletools-0.51.dev8-py3.4.egg/oletools/ppt_parser.py", line 1564, in iter_vba_data
    yield self.decompress_vba_storage(storage)
  File "/usr/local/lib/python3.4/dist-packages/oletools-0.51.dev8-py3.4.egg/oletools/ppt_parser.py", line 1074, in wrapped
    return func(self, self._open_main_stream, *args, **kwargs)
  File "/usr/local/lib/python3.4/dist-packages/oletools-0.51.dev8-py3.4.egg/oletools/ppt_parser.py", line 1515, in decompress_vba_storage
    iterative_decompress(stream, storage.data_size)
  File "/usr/local/lib/python3.4/dist-packages/oletools-0.51.dev8-py3.4.egg/oletools/ppt_parser.py", line 1584, in iterative_decompress
    decomp += decompressor.decompress(stream.read(n_new))
TypeError: Can't convert 'bytes' object to str implicitly

@GoNzCiD
Copy link

GoNzCiD commented Oct 16, 2019

I still have this exception on ppt_parser.py version 0.54 with python 3.4.

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

Successfully merging a pull request may close this issue.

3 participants