【问题标题】:"ImportError: No module named smtpapi" for SendGrid in Google App EngineGoogle App Engine 中 SendGrid 的“ImportError:没有名为 smtpapi 的模块”
【发布时间】:2014-10-30 16:44:43
【问题描述】:

我正在尝试使用 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 google app engine python DistributionNotFound

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

但得到了错误:

"ImportError: cannot import name Sendgrid" 

【问题讨论】:

    标签: python google-app-engine sendgrid


    【解决方案1】:

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

    【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2015-01-25
    • 2017-11-12
    • 2019-05-24
    • 1970-01-01
    • 2013-03-06
    • 2018-07-19
    • 2013-04-18
    • 2015-04-24
    相关资源
    最近更新 更多