Looks like this might be an issue with Python 2.6 hmac library: http://bugs.python.org/issue5285
Now question is - am I totally screwed with Python 2.6 or there is a hope to get some workaround in Trac? Victor > Hi Remy, >> Victor Star wrote: >>> I'm trying to turn on the email notifications and having some problems. >>> Notifications are not sent and here is what I see in the log: >>> >>> ====- 8< -=================================================== >>> ... >>> 2009-02-19 22:27:16,620 Trac[web_ui] ERROR: Failure sending notification on >>> change to ticket #39: TypeError: character mapping must return integer, >>> None or unicode >> The associated traceback would be very helpful, but unfortunately it is >> not logged. Did you install from sources? Could you patch your >> installation? The file to change is trac/ticket/web_ui.py, at line 990, >> change: >> "ticket #%s: %s", ticket.id, exception_to_unicode(e)) >> to: >> "ticket #%s: %s", ticket.id, exception_to_unicode(e, traceback=True)) >> Then change a ticket so that it triggers a notification. > Here is a traceback: > 2009-02-20 20:29:35,839 Trac[web_ui] ERROR: Failure sending notification on > change to ticket #39: > Traceback (most recent call last): > File "/usr/lib64/python2.6/site-packages/trac/ticket/web_ui.py", line 1017, > in _do_save > tn.notify(ticket, newticket=False, modtime=now) > File "/usr/lib64/python2.6/site-packages/trac/ticket/notification.py", line > 151, in notify > NotifyEmail.notify(self, ticket.id, subject) > File "/usr/lib64/python2.6/site-packages/trac/notification.py", line 246, > in notify > Notify.notify(self, resid) > File "/usr/lib64/python2.6/site-packages/trac/notification.py", line 134, > in notify > self.begin_send() > File "/usr/lib64/python2.6/site-packages/trac/notification.py", line 328, > in begin_send > self.server.login(self.user_name, self.password) > File "/usr/lib64/python2.6/smtplib.py", line 574, in login > (code, resp) = self.docmd(encode_cram_md5(resp, user, password)) > File "/usr/lib64/python2.6/smtplib.py", line 538, in encode_cram_md5 > response = user + " " + hmac.HMAC(password, challenge).hexdigest() > File "/usr/lib64/python2.6/hmac.py", line 72, in __init__ > self.outer.update(key.translate(trans_5C)) > TypeError: character mapping must return integer, None or unicode > Victor --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Trac Users" 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/trac-users?hl=en -~----------~----~----~----~------~----~------~--~---
