dockers icon indicating copy to clipboard operation
dockers copied to clipboard

AttributeError: 'module' object has no attribute 'message_from_bytes'

Open dbsmsc opened this issue 3 years ago • 1 comments

I am getting this error: essage_from_bytes(message) AttributeError: 'module' object has no attribute 'message_from_bytes'

Any pointers?

Thank you.

Full: [WARNING]: Both case template and tasks are defined. Template (thehive_template) will be used. [INFO]: Processing REDACTED:993/Inbox [INFO]: Connected to IMAP server. [INFO]: 1 unread messages to process Traceback (most recent call last): File "imap2thehive.py", line 548, in main() File "imap2thehive.py", line 544, in main readMail(mailConnect()) File "imap2thehive.py", line 417, in readMail if submitTheHive(message) == True: File "imap2thehive.py", line 195, in submitTheHive msg = email.message_from_bytes(message) AttributeError: 'module' object has no attribute 'message_from_bytes'

dbsmsc avatar Mar 08 '21 20:03 dbsmsc

Resolved: Not using Python 3.

dbsmsc avatar Mar 09 '21 16:03 dbsmsc