Red Hat Bugzilla – Bug 601212
Python 2.4 + hashlib causes AttributeError calling hmac.new()
Last modified: 2010-06-09 15:11:37 EDT
Django 1.2 running on python2.4 & python-hashlib on el5 requires following patch:
I've applied the patch and verified it really works.
Thanks for the patch. I'll verify it works fine on F12+ as well before applying it.
I've applied it and built it locally and it seems to work on Fedora fine. I tried doing a raw hide build but there is some dep issues at the moment (unrelated to the package itself). Once that gets fixed I'll send it back through and make sure it builds.
I've included the patch but 1.2.x will not be released for EPEL-5. I've been reminded that since this release breaks some backwards compatibility it is considered a major release. If you are in need of 1.2.x on EPEL-5 you can rebuild a Fedora package, but be warned that this will break current EPEL-5 Django applications (such as ReviewBoard). I'll leave the patch in for those who do have a need to rebuild.
Thanks again for the bug report!