“ImportError: No module named smtpapi” for SendGrid in Google App Engine

心不动则不痛 提交于 2019-12-23 02:30:44

问题


I'm trying to setup SendGrid with Google App Engine using python, following the instructions here: https://developers.google.com/appengine/docs/python/mail/sendgrid

I can successfully use the sample app to send mail: https://github.com/sendgrid/google-python-sample-app

but this is based on older sendgrid python code, and I'd like to use the latest version: https://github.com/sendgrid/sendgrid-python/tree/master/sendgrid

I tried following the guidance here: sendgrid google app engine python DistributionNotFound

...manually installing sendgrid and smtpapi, and then copying the folders to my gae directory, and then moving smtpapi to the sendgrid directory...

but got the error:

"ImportError: cannot import name Sendgrid" 

回答1:


I think there may be a clue in the error message, I think you have referenced Sendgrid (with a capital S) rather than sendgrid (lowercase)?



来源:https://stackoverflow.com/questions/25690799/importerror-no-module-named-smtpapi-for-sendgrid-in-google-app-engine

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!