Bug 946922 - [abrt] fedmsg-notify-0.5.0-1.fc18: hub.py:367:__init_consumers:UnboundLocalError: local variable 'consumer' referenced before assignment
Summary: [abrt] fedmsg-notify-0.5.0-1.fc18: hub.py:367:__init_consumers:UnboundLocalEr...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: fedmsg-notify
Version: 18
Hardware: i686
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Luke Macken
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:bfbb202aad58ed51a2164baf873...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-04-01 01:30 UTC by liam
Modified: 2016-09-20 02:44 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2013-05-22 03:59:49 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (1.18 KB, text/plain)
2013-04-01 01:30 UTC, liam
no flags Details
File: core_backtrace (536 bytes, text/plain)
2013-04-01 01:31 UTC, liam
no flags Details
File: environ (2.22 KB, text/plain)
2013-04-01 01:31 UTC, liam
no flags Details

Description liam 2013-04-01 01:30:56 UTC
Description of problem:
dnf installed gnome-extension-fedmsg and immediately received the error

Version-Release number of selected component:
fedmsg-notify-0.5.0-1.fc18

Additional info:
cmdline:        /usr/bin/python /usr/bin/fedmsg-notify-daemon
dso_list:       python-moksha-hub-1.2.0-1.fc18.noarch
executable:     /usr/bin/fedmsg-notify-daemon
kernel:         3.8.4-202.fc18.i686
uid:            1000
ureports_counter: 2

Truncated backtrace:
hub.py:367:__init_consumers:UnboundLocalError: local variable 'consumer' referenced before assignment

Traceback (most recent call last):
  File "/usr/bin/fedmsg-notify-daemon", line 9, in <module>
    load_entry_point('fedmsg-notify==0.5.0', 'console_scripts', 'fedmsg-notify-daemon')()
  File "/usr/lib/python2.7/site-packages/fedmsg_notify/daemon.py", line 282, in main
    service = FedmsgNotifyService()
  File "/usr/lib/python2.7/site-packages/fedmsg_notify/daemon.py", line 117, in __init__
    prods)
  File "/usr/lib/python2.7/site-packages/moksha/hub/hub.py", line 230, in __init__
    self.__init_consumers()
  File "/usr/lib/python2.7/site-packages/moksha/hub/hub.py", line 367, in __init_consumers
    log.warn("Failed to init %r consumer." % consumer)
UnboundLocalError: local variable 'consumer' referenced before assignment

Local variables in innermost frame:
c_class: <fedmsg_notify.daemon.FedmsgNotifyService at /org/fedoraproject/fedmsg/notify at 0x873060c>
c: <fedmsg_notify.daemon.FedmsgNotifyService at /org/fedoraproject/fedmsg/notify at 0x873060c>
e: UnboundLocalError("local variable 'consumer' referenced before assignment",)
self: <moksha.hub.hub.CentralMokshaHub object at 0x95bbe2c>

Comment 1 liam 2013-04-01 01:30:59 UTC
Created attachment 730120 [details]
File: backtrace

Comment 2 liam 2013-04-01 01:31:01 UTC
Created attachment 730121 [details]
File: core_backtrace

Comment 3 liam 2013-04-01 01:31:03 UTC
Created attachment 730122 [details]
File: environ

Comment 4 Luke Macken 2013-04-09 04:02:46 UTC
Ralph fixed this upstream a few days ago: https://github.com/mokshaproject/moksha/commit/b75ecbf600179e20ece8a84bca2e09d32b6b6d0e

Comment 5 liam 2013-04-09 19:33:14 UTC
Fantastic. Thanks for the update.

Comment 6 Ankur Sinha (FranciscoD) 2013-04-11 13:14:26 UTC
Waiting to see if in the repos. Thanks Luke. 

/me thought he had mucked up some configuration initially.

thanks,
Warm regards,
Ankur

Comment 7 Ralph Bean 2013-05-22 03:59:49 UTC
This should be fixed by python-moksha-hub-1.2.1

https://admin.fedoraproject.org/updates/FEDORA-2013-5843/python-moksha-hub-1.2.1-1.fc18


Note You need to log in before you can comment on or make changes to this bug.