#2133: AttributeError in beaker in tg2.0b2 python2.4
------------------------+---------------------------------------------------
Reporter: lszyba1 | Owner: faide
Type: defect | Status: reopened
Priority: high | Milestone: 2.0b5
Component: TurboGears | Version: trunk
Severity: normal | Resolution:
Keywords: |
------------------------+---------------------------------------------------
Comment (by pjenvey):
lszyba1 your attempt was incorrect, you mistakenly passed the string
'beaker.session.sha1' to hmac instead of the actual variable
beaker.session.sha1
This output tells me that Beaker was able to import the hashlib module --
and that beaker.session.sha1 is hashlib.sha1. However hashlib wasn't
present in Python until version 2.5 (and the hmac module wasn't changed to
handle the new hashlib APIs until 2.5)
So is there indeed a hashlib module present on your environments? If so,
why, if you're using Python 2.4? Do you have the hashlib module from pypi
installed? http://pypi.python.org/pypi/hashlib
Maybe Beaker needs to hardcode the Python version number instead of
attempting checking for the availability of hashlib (which would suck,
because various other Pylons/TG related dependencies would need to be
changed to do this as well)
--
Ticket URL: <http://trac.turbogears.org/ticket/2133#comment:12>
TurboGears <http://www.turbogears.org/>
TurboGears front-to-back web development
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "TurboGears Tickets" group.
This group is read-only. No posting by normal members allowed.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/turbogears-tickets?hl=en?hl=en
-~----------~----~----~----~------~----~------~--~---