0

我有一个在 GAE 上运行的 Pyramid 应用程序。它在大多数情况下都很好用,但有时当我部署 ( appcfg.py update ...) 时,事情就会中断。当我尝试访问该应用程序时,我开始获得 500 秒。然后,如果我完全不更改我的代码并再次部署它,它就可以工作。我希望每次部署都能正常工作。

这是回溯:

Traceback (most recent call last):
  File "/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/runtime/wsgi.py", line 240, in Handle
    handler = _config_handle.add_wsgi_middleware(self._LoadHandler())
  File "/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/runtime/wsgi.py", line 299, in _LoadHandler
    handler, path, err = LoadObject(self._handler)
  File "/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/runtime/wsgi.py", line 85, in LoadObject
    obj = __import__(path[0])
  File "/base/data/home/apps/s~projectwaxed/1.395098752063981059/waxed_backend/__init__.py", line 11, in <module>
    from pyramid.config import Configurator
  File "libs/pyramid/config/__init__.py", line 73, in <module>
    from pyramid.config.routes import RoutesConfiguratorMixin
  File "libs/pyramid/config/routes.py", line 21, in <module>
    import pyramid.config.predicates
  File "libs/pyramid/config/predicates.py", line 15, in <module>
    from pyramid.session import check_csrf_token
  File "libs/pyramid/session.py", line 11, in <module>
    from webob.cookies import SignedSerializer
ImportError: cannot import name SignedSerializer

有没有人经历过这个?有已知的修复方法吗?

4

1 回答 1

0

问题是我在部署我的应用程序时将 webob 1.6.1 推送到 appengine。同时我的 app.yaml 中有这个:

libraries:
- name: webob
version: latest

最终的工作只是从 app.yaml 中删除 webob (我尝试了 gae 支持的不同版本,但没有骰子......)

于 2016-08-23T10:59:19.673 回答