On Sun, Apr 12, 2009 at 5:58 AM, hectoraka <[email protected]> wrote: > > Hello, > I am getting an error similar to skatja's > ('builtin_function_or_method' object has no attribute 'new'), when > trying to use authentication: > http://paste.turbogears.org/paste/52136 > > I found a post in a ML (not from TG, but from another software based > on python), that I think gives the cause of the error (differences in > the syntax of module hmac between python 2.4 and 2.5): > http://code.google.com/p/boto/issues/detail?id=172 > > I am using python 2.4 on centOS 5, and from the above it seems python > 2.5 would be required for TG2. The obvious thing to do would be to try > to upgrade to python 2.5, but I heard that you risk breaking many > things when changing the python version installed by default on your > distro. Any tips? >
The solution to this problem is to get an "hmac.py" from python 2.5 and place it in beaker site-package folder in your virtualenv. This way when beaker calls the hmac it will use the file in beaker folder and you application will work with no problems. There is no known issues with this fix, it should just work. Lucas --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TurboGears" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/turbogears?hl=en -~----------~----~----~----~------~----~------~--~---

