(Aug-27-2022, 04:50 PM)Linh_lee Wrote: I named my script DeleteEmailFiles.py, not imap_tools.pyOhh sorry i did read a little fast.
Do you have file named
mailbox.py
?Search the only one you should have is in folder
...site-packages\imap_tools
.Rename or delete if you have an other
mailbox.py
Test import as i said for command line.
>>> from imap_tools import MailBox, A >>> # no error here # Can access attributes of MailBox >>> MailBox.email_message_class <class 'imap_tools.message.MailMessage'>