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

module 'olefile' has no attribute 'OleFileIO' #152

Open
hildeb opened this issue Jun 14, 2023 · 3 comments
Open

module 'olefile' has no attribute 'OleFileIO' #152

hildeb opened this issue Jun 14, 2023 · 3 comments
Assignees
Labels

Comments

@hildeb
Copy link

hildeb commented Jun 14, 2023

I'm using olevba from within olefy and I'm getting this error:

olefy ERROR oletools <308750> olevba returned <30 chars - rc: 1, response: '', error: '
Traceback (most recent call last):
File "/usr/local/bin/olevba", line 5, in
from oletools.olevba import main
File "/usr/local/lib/python3.10/dist-packages/oletools/olevba.py", line 342, in
from oletools import rtfobj
File "/usr/local/lib/python3.10/dist-packages/oletools/rtfobj.py", line 133, in
from oletools import oleobj, ftguess
File "/usr/local/lib/python3.10/dist-packages/oletools/oleobj.py", line 71, in
from oletools.ppt_record_parser import (is_ppt, PptFile,
File "/usr/local/lib/python3.10/dist-packages/oletools/ppt_record_parser.py", line 57, in
from oletools import record_base
File "/usr/local/lib/python3.10/dist-packages/oletools/record_base.py", line 84, in
OleFileIO = olefile.OleFileIO\nAttributeError: module 'olefile' has no attribute 'OleFileIO'

I wonder if this is an error in olevba

@decalage2 decalage2 self-assigned this Jun 15, 2023
@decalage2
Copy link
Owner

Hi @hildeb, have you checked if olefile is properly installed, and which version it is? You can use pip list, and the olefile version should be 0.46.

@hildeb
Copy link
Author

hildeb commented Jun 15, 2023

# pip list |fgrep ole
olefile                0.46
oletools               0.60.1

@decalage2
Copy link
Owner

This is really strange, olevba does not trigger that error on my Linux with Python 3.10. I really wonder what would trigger this error if olefile is installed properly. 🤔

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

No branches or pull requests

2 participants