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

Description

Bug description

Traceback (most recent call last):
  File "gajim/src/common/xmpp/idlequeue.py", line 528, in _process_events
    return IdleQueue._process_events(self, fd, flags)
  File "gajim/src/common/xmpp/idlequeue.py", line 393, in _process_events
    obj.pollin()
  File "gajim/src/common/xmpp/transports_nb.py", line 414, in pollin
    self._do_receive()
  File "gajim/src/common/xmpp/transports_nb.py", line 600, in _do_receive
    self._on_receive(received)
  File "gajim/src/common/xmpp/transports_nb.py", line 614, in _on_receive
    self.on_receive(data)
  File "gajim/src/common/xmpp/dispatcher_nb.py", line 452, in dispatch
    handler['func'](session, stanza)
  File "gajim/src/common/connection_handlers.py", line 1746, in _presenceCB
    conn=self, iq_obj=prs))
  File "gajim/src/common/nec.py", line 62, in push_incoming_event
    self._generate_events_based_on_incoming_event(event_object)
  File "gajim/src/common/nec.py", line 80, in _generate_events_based_on_incoming_event
    if new_event_object.generate():
  File "gajim/src/common/connection_handlers_events.py", line 679, in generate
    h = hmac.new(self.conn.secret_hmac, 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.