Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

some classes for the twitter/irc consume are loaded even when not needed #274

Closed
tyll opened this issue Aug 9, 2014 · 1 comment · Fixed by #293
Closed

some classes for the twitter/irc consume are loaded even when not needed #274

tyll opened this issue Aug 9, 2014 · 1 comment · Fixed by #293

Comments

@tyll
Copy link
Contributor

tyll commented Aug 9, 2014

Running fedmsg-hub with no consumes results in tracebacks:

$ fedmsg-hub
[2014-08-09 17:52:11][moksha.hub   ERROR] Failed to load 'fedmsg-tweet' consumer.
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/moksha/hub/hub.py", line 342, in __init_consumers
    c = consumer.load()
  File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2087, in load
    entry = __import__(self.module_name, globals(),globals(), ['__name__'])
  File "/usr/lib/python2.7/site-packages/fedmsg/consumers/tweet.py", line 21, in <module>
    import twitter as twitter_api
ImportError: No module named twitter
[2014-08-09 17:52:11][moksha.hub   ERROR] Failed to load 'fedmsg-ircbot' consumer.
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/moksha/hub/hub.py", line 342, in __init_consumers
    c = consumer.load()
  File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2087, in load
    entry = __import__(self.module_name, globals(),globals(), ['__name__'])
  File "/usr/lib/python2.7/site-packages/fedmsg/consumers/ircbot.py", line 40, in <module>
    from twisted.words.protocols import irc
ImportError: No module named words.protocols
@ralphbean
Copy link
Contributor

Even with other consumers installed this still happens every time you start it. It is harmless. I've just grown accustomed to it, but it is in fact a bug and should be fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants