【问题标题】:Zappa Deployment Error for Alexa Skill: Object 'NoneType' not callable?Alexa Skill 的 Zappa 部署错误:对象“NoneType”不可调用?
【发布时间】:2017-12-12 18:37:41
【问题描述】:

每当我尝试部署我的 Alexa Skill(用于亚马逊促销)时,当我转到终端节点的网址时都会看到此错误:

"{'message': 'An uncaught exception happened while servicing this request. You can investigate this with the `zappa tail` command.', 'traceback': ['Traceback (most recent call last):\\n', '  File \"/var/task/handler.py\", line 433, in handler\\n    response = Response.from_app(self.wsgi_app, environ)\\n', '  File \"/var/task/werkzeug/wrappers.py\", line 903, in from_app\\n    return cls(*_run_wsgi_app(app, environ, buffered))\\n', '  File \"/var/task/werkzeug/test.py\", line 884, in run_wsgi_app\\n    app_rv = app(environ, start_response)\\n', \"TypeError: 'NoneType' object is not callable\\n\"]}"

在进一步调查后,我运行zappa tail 来查看问题所在。

我向上滚动浏览尾部并注意到此错误消息:

[1499529414189] libssl.so.1.0.0: cannot open shared object file: No such file or directory: ImportError

这是什么意思?我该如何解决这个问题?我正在使用烧瓶询问在 Ubuntu 14.04、Python 3.6 上工作。

【问题讨论】:

    标签: python openssl amazon alexa zappa


    【解决方案1】:

    我只能根据https://developer.amazon.com/blogs/post/8e8ad73a-99e9-4c0f-a7b3-60f92287b0bf/new-alexa-tutorial-deploy-flask-ask-skills-to-aws-lambda-with-zappa 的说明从头开始安装所有内容来纠正这个问题。 venv 目录中的某些东西刚刚搞砸了。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-12-03
      • 2017-05-30
      • 1970-01-01
      • 1970-01-01
      • 2013-01-10
      • 2016-04-24
      • 2019-10-04
      • 1970-01-01
      相关资源
      最近更新 更多