Comments (11)
@medoix could you paste in the full output? Can't replicate on my machine.
from hippybot.
@medoix also your full hippybot.conf might be handy too, ta!
from hippybot.
Error:
(hippybot)steven@server:/data/programs/hippybot/hippybot$ hippybot -c hippybot.conf ERROR: No module named hello_world Traceback (most recent call last): File "/data/programs/hippybot/local/lib/python2.7/site-packages/hippybot-1.0.0-py2.7.egg/hippybot/bot.py", line 256, in run bot = HippyBot(self.config._sections) File "/data/programs/hippybot/local/lib/python2.7/site-packages/hippybot-1.0.0-py2.7.egg/hippybot/bot.py", line 69, in __init__ self.load_plugins() File "/data/programs/hippybot/local/lib/python2.7/site-packages/hippybot-1.0.0-py2.7.egg/hippybot/bot.py", line 190, in load_plugins module = do_import(path) File "/data/programs/hippybot/local/lib/python2.7/site-packages/hippybot-1.0.0-py2.7.egg/hippybot/bot.py", line 26, in do_import mod = __import__(name) File "/data/programs/hippybot/local/lib/python2.7/site-packages/lazy_reload.py", line 83, in _lazy_reload_import m = _real_import(name, globals, locals, fromlist, level) ImportError: No module named hello_world
from hippybot.
Conf:
[connection] username = 22974_157931 password = PASSWORD nickname = HC Bot channels = Test Infrastructure [plugins] load = hcbot.plugins.hello_world hcbot.plugins.mexican_wave [hipchat] api_auth_token = xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx respond_to_all = true
from hippybot.
Might be worth noting that i am running this using virtualenv on ubuntu it works if i change hello_world to rot13 so im really confused.
from hippybot.
@medoix the only thing I can see that might be iffy is the fact your namespace paths in plugins.load config point to hcbot
rather than hippybot
if you're putting them in hippybot/plugins/
rather than in an importable module named hcbot
in your PYTHON_PATH
.
from hippybot.
ahh sorry i posted the wrong config (trying different things) the correct config says hippybot in the plugin path.
from hippybot.
Aha. That makes sense. Can you post the contents of hello_world.py? Only other thing the module might fail to load is if it fails to compile. I know you said it was just the contents of the example from the readme, but I just copied it in tried it myself and it was fine.
from hippybot.
hello_world.py located in /data/programs/hippbot/hippybot/hippybot/plugins
# hello_world.py from hippybot.decorators import botcmd, directcmd class Plugin(object): global_commands = ['hello_world'] command_aliases = {'hi!': 'hello'} @botcmd def hello_world(self, mess, args): return u'Hello world!' @directcmd def hello(self, mess, args): return u'Well hello there..'
from hippybot.
Ah, I'd actually re-tested the class based example, however changing "hcbot" back to "hippybot":
from hippybot.decorators import directcmd
@directcmd
def hello_world(bot, mess, args):
return u'Hello world!'
It still works. :-/
from hippybot.
It is all hippybot now, i actually deleted everything and just started fresh, i did have it working at one point but now im testing again and it just fails to load the hello_world plugin. I have it running (not really running) on an EC2 instance if you like i can give you access but im at a loss as to what is actually happening.
from hippybot.
Related Issues (17)
- Rooms with spaces in their names give malformed jid error on bot startup HOT 3
- Hippybot fails to run HOT 1
- Use mention_name instead of name when sending a direct message
- Hippybot not joining rooms/channels HOT 13
- plusplusbot doesn't handle unicode usernames HOT 1
- Hippybot is broken under Python 2.7.9 HOT 2
- Need to support HipChat server
- Bot hits the 150s timeout while running in foreground HOT 19
- command_aliases description in readme is wrong
- Full documentation
- Multiple replies
- Does hippybot support HipChat's v2 API? HOT 1
- Not able to find modules HOT 2
- HipChat API wrapper instructions and @all missing from readme HOT 1
- Add "bot" resource to JID HOT 5
- global_commands and command_aliases not functioning HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hippybot.