繁体   English   中英

Google App Engine中用于SendGrid的“ ImportError:没有名为smtpapi的模块”

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

我正在尝试按照此处的说明使用python使用Google App Engine设置SendGrid: https : //developers.google.com/appengine/docs/python/mail/sendgrid

我可以成功使用示例应用程序发送邮件: https : //github.com/sendgrid/google-python-sample-app

但这是基于旧的sendgrid python代码的,我想使用最新版本: https : //github.com/sendgrid/sendgrid-python/tree/master/sendgrid

我尝试按照此处的指导进行操作: sendgrid谷歌应用程序引擎python DistributionNotFound

...手动安装sendgrid和smtpapi,然后将文件夹复制到我的gae目录,然后将smtpapi移到sendgrid目录...

但是得到了错误:

"ImportError: cannot import name Sendgrid" 

我认为错误消息中可能有线索,我认为您引用的是Sendgrid (大写S )而不是sendgrid (小写)?

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM