[PyPy-issue] [issue579] werkzeug securecookie / hmac crashes

Thomas Waldmann pypy-dev-issue at codespeak.net
Mon Nov 29 23:25:00 CET 2010

New submission from Thomas Waldmann <tw-public at gmx.de>:

File "/home/tw/w/mm20dev/MoinMoin/support/flask/app.py", line 430, in open_session
  File "/home/tw/w/mm20dev/MoinMoin/support/werkzeug/contrib/securecookie.py",
line 308, in load_cookie
    return cls.unserialize(data, secret_key)
  File "/home/tw/w/mm20dev/MoinMoin/support/werkzeug/contrib/securecookie.py",
line 255, in unserialize
    mac = hmac(secret_key, None, cls.hash_method)
  File "/home/tw/w/pypy-1.4/lib-python/2.5.2/hmac.py", line 121, in new
    return HMAC(key, msg, digestmod)
  File "/home/tw/w/pypy-1.4/lib-python/2.5.2/hmac.py", line 48, in __init__
    self.outer = self.digest_cons()
TypeError: unbound method openssl_sha1() must be called with Session instance as
first argument (got nothing instead)

got this when trying to run moin/2.0-dev with pypy 1.4, but looks generic.

effort: ???
messages: 1891
nosy: ThomasWaldmann, pypy-issue
priority: bug
release: 1.4
status: unread
title: werkzeug securecookie / hmac crashes

PyPy development tracker <pypy-dev-issue at codespeak.net>

More information about the Pypy-issue mailing list