Archives December 26, 2022

AttributeError: partially initialized module ‘smtplib’ has no attribute ‘SMTP_SSL’ (most likely due to a circular import)

Cause:

Issue is with the file name due to circular import of the smtplib module

AttributeError: partially initialized module 'smtplib' has no attribute 'SMTP_SSL' (most likely due to a circular import)

Solution:

File is saved with the name email.py. Refactor the code file name from email.py to different file name