Closed aarontgit closed 3 years ago
Is your python filename along the lines email.py
or sendgrid.py
? Try changing it to something else.
Is your python filename along the lines
email.py
orsendgrid.py
? Try changing it to something else. That worked. However, I am now receiving a 'UnauthorizedError: HTTP Error 401: Unauthorized'
Thanks for helping out @rlSimonLi!
@aarontgit please check that your environment variable SENDGRID_API_KEY
is set correctly and that os.environ.get('SENDGRID_API_KEY')
is returning the right value. If so, then there may be an issue with your account (in that case, please reach out to https://support.sendgrid.com). Thank you!
Issue Summary
I am trying to integrate SendGrid using the WebAPI with Python, however I keep getting this error message: 'cannot import name 'SendGridAPIClient' from partially initialized module 'sendgrid' (most likely due to a circular import)'
Steps to Reproduce
Code Snippet
Exception/Log
Technical details: