gae 间歇性导入错误(SignedSerializer)

gae intermittent import error (SignedSerializer)

我在 GAE 上 运行 有一个 Pyramid 应用程序。它在大多数时候都很好用,但有时当我部署 (appcfg.py update ...) 时,事情就坏了。当我尝试访问该应用程序时,我开始收到 500s。然后,如果我绝对不对我的代码进行任何更改并再次部署它,它就会起作用。我希望部署每次都能正常工作。

这是回溯:

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

有人遇到过这种情况吗?有已知的修复方法吗?

问题是我在部署应用程序时将 webob 1.6.1 推送到应用引擎。同时我的 app.yaml:

libraries:
- name: webob
version: latest

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