I am using Python 3.7 (x64) on a Windows 7 machine. I'm recieving the error message below, but when I did research on similar issues, none of the solutions appeared to relevant. The script is named master_pdf_email.py, and is inside a folder with no other .py files. This is on a newly reset computer and is the only other Py script installed, so there is no capacity for any email.py scripts to come into conflict with my current Python runtime.
- I checked to make sure that this is running on a new, cleanly installed Python distribution.
- I installed exchangelib 2.0.1 from pip on the same Python instance I'm using to run this.
Code up to when the error is thrown:
import pdfkit, mysql.connector, pprint, json, csv, datetime
from exchangelib import Credentials, Account, FileAttachment
from exchangelib.folders import Message, Mailbox
The traceback for the error message:
Traceback (most recent call last):
File "master_email_pdf.py", line 3, in <module>
from exchangelib.folders import Message, Mailbox
ImportError: cannot import name 'Message' from 'exchangelib.folders'
(C:\Users\user\AppData\Local\Programs\Python\Python37\lib\site-packages\exchangelib\folders\__init__.py)