Opened 6 years ago

Closed 6 years ago

#5948 closed defect (fixed)

TB: NameError: global name 'hmac' is not defined

Reported by: Zash Owned by:
Priority: normal Milestone: 0.15
Component: None Version: hg
Severity: normal Keywords:
Cc: Blocked By:
Blocking: OS: All


Bug description

Traceback (most recent call last):
  File "gajim/src/common/xmpp/", line 528, in _process_events
    return IdleQueue._process_events(self, fd, flags)
  File "gajim/src/common/xmpp/", line 393, in _process_events
  File "gajim/src/common/xmpp/", line 414, in pollin
  File "gajim/src/common/xmpp/", line 600, in _do_receive
  File "gajim/src/common/xmpp/", line 614, in _on_receive
  File "gajim/src/common/xmpp/", line 452, in dispatch
    handler['func'](session, stanza)
  File "gajim/src/common/", line 1746, in _presenceCB
    conn=self, iq_obj=prs))
  File "gajim/src/common/", line 62, in push_incoming_event
  File "gajim/src/common/", line 80, in _generate_events_based_on_incoming_event
    if new_event_object.generate():
  File "gajim/src/common/", line 679, in generate
    h =, self.jid).hexdigest()[:6]
NameError: global name 'hmac' is not defined

Steps to reproduce

Don't know, appears randomly.

Software versions

  • OS version: Ubuntu 9.10
  • GTK+ Version: 2.18.3
  • PyGTK Version: 2.16.0

Change History (1)

comment:1 Changed 6 years ago by Yann Leboulanger <asterix@…>

  • Milestone set to 0.15
  • Resolution set to fixed
  • Status changed from new to closed

(In [4ed2ec3f80fc]) import hmac where it needs to be. Fixes #5948

Note: See TracTickets for help on using tickets.