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

Not able to find modules #27

Open
wuk519 opened this issue Apr 13, 2016 · 2 comments
Open

Not able to find modules #27

wuk519 opened this issue Apr 13, 2016 · 2 comments

Comments

@wuk519
Copy link

wuk519 commented Apr 13, 2016

Hi,

After the config, I ran the bot but got the following errors:

23:27 $ hippybot -c hippybot.conf
ERROR: <slot wrapper 'init' of 'object' objects> is not a Python function
Traceback (most recent call last):
File "/Users/kanwu/Documents/workspace/itsi_bot/lib/python2.7/site-packages/hippybot-1.2.7-py2.7.egg/hippybot/bot.py", line 325, in run
bot = HippyBot(self.config._sections)
File "/Users/kanwu/Documents/workspace/itsi_bot/lib/python2.7/site-packages/hippybot-1.2.7-py2.7.egg/hippybot/bot.py", line 89, in init
self.load_plugins()
File "/Users/kanwu/Documents/workspace/itsi_bot/lib/python2.7/site-packages/hippybot-1.2.7-py2.7.egg/hippybot/bot.py", line 235, in load_plugins
getattr(module, 'Plugin').init)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/inspect.py", line 816, in getargspec
raise TypeError('{!r} is not a Python function'.format(func))
TypeError: <slot wrapper 'init' of 'object' objects> is not a Python function

Here is what my conf file looks like:
[plugins]
load_path = /Users/kanwu/Documents/workspace/itsi_bot/hippybot-1.2.7/hippybot/plugins/
load = rot13

If I change my config file to the following:
[plugins]
load_path = /Users/kanwu/Documents/workspace/itsi_bot/hippybot-1.2.7
load = hippybot.plugins.rot13

I got the following errors
_3:29 $ hippybot -c hippybot.conf
ERROR: No module named rot13
Traceback (most recent call last):
File "/Users/kanwu/Documents/workspace/itsi_bot/lib/python2.7/site-packages/hippybot-1.2.7-py2.7.egg/hippybot/bot.py", line 325, in run
bot = HippyBot(self.config._sections)
File "/Users/kanwu/Documents/workspace/itsi_bot/lib/python2.7/site-packages/hippybot-1.2.7-py2.7.egg/hippybot/bot.py", line 89, in init
self.load_plugins()
File "/Users/kanwu/Documents/workspace/itsi_bot/lib/python2.7/site-packages/hippybot-1.2.7-py2.7.egg/hippybot/bot.py", line 222, in load_plugins
(file, filename, data) = imp.find_module(name, self._load_path)
ImportError: No module named rot13

Is it because my python path was not set properly?

@arnauorriols
Copy link

This is an issue with version 1.2.7, which apparently should not yet be released [1] although it has made it into pypi [2]. I suggest you and anybody else to stick with 1.2.6

[1] https://github.com/1stvamp/hippybot/blob/master/CHANGELOG
[2] https://pypi.python.org/pypi/hippybot/1.2.7

@1stvamp
Copy link
Owner

1stvamp commented Jun 21, 2016

Yes this is entirely true, seems I had a total brainfart and accidentally pushed this to pypi as part of a release script (now scrapped), I'll pull 1.2.7 from pypi and look at fixing with a further 1.2.8 release (so anyone can easily upgrade a broken 1.2.7 installation).

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

No branches or pull requests

3 participants