python - ImportError: cannot import name IRCBot -


i'm importing module , done in same file:

from irc import ircbot, run_bot  class greeterbot(ircbot):     def greet(self, nick, messege, channel):         return 'hi %s' % nick      def command_patterns(self):         return (             self.ping('^hello', self.greet),             ) host = "coolwhizserver" port = 6667 nick = 'alfred'  run_bot(greeterbot, host, port, nick ['#randomchannel']) 

this code, i'll print output below:

traceback (most recent call last): file "greeter.py", line 1, in <module> irc import ircbot, run_bot importerror: cannot import name ircbot

please check version have - if have 32-bits version of package , 64-bits version of python (or reverse situation) import never running .


Popular posts from this blog

php - How should I create my API for mobile applications (Needs Authentication) -

5 Reasons to Blog Anonymously (and 5 Reasons Not To)

Google AdWords and AdSense - A Dynamic Small Business Marketing Duo