Just upgraded from 1.5.2 to 1.6 and I'm getting some errors while running the twitterbot. The bot will be running on IRC with no problems and then dies off and here is what I see in the console:
Traceback (most recent call last):
File "/usr/local/bin/twitterbot", line 9, in
load_entry_point('twitter==1.6', 'console_scripts', 'twitterbot')()
File "/usr/local/lib/python2.7/dist-packages/twitter/ircbot.py", line 349, in main
return bot.run()
File "/usr/local/lib/python2.7/dist-packages/twitter/ircbot.py", line 292, in run
self.sched.run_forever()
File "/usr/local/lib/python2.7/dist-packages/twitter/ircbot.py", line 132, in run_forever
self.next_task()
File "/usr/local/lib/python2.7/dist-packages/twitter/ircbot.py", line 127, in next_task
task()
File "/usr/local/lib/python2.7/dist-packages/twitter/ircbot.py", line 111, in call
return self.task()
File "/usr/local/lib/python2.7/dist-packages/twitter/ircbot.py", line 189, in check_statuses
IRC_BOLD, text.decode('utf-8')))
File "/usr/local/lib/python2.7/dist-packages/twitter/ircbot.py", line 236, in privmsg_channels
return self.ircServer.privmsg_many(channels, msg)
File "/usr/local/lib/python2.7/dist-packages/irclib.py", line 761, in privmsg_many
self.send_raw("PRIVMSG %s :%s" % (",".join(targets), text))
File "/usr/local/lib/python2.7/dist-packages/irclib.py", line 783, in send_raw
self.socket.send(string + "\r\n")
UnicodeEncodeError: 'ascii' codec can't encode character u'\u2019' in position 51: ordinal not in range(128)
Just upgraded from 1.5.2 to 1.6 and I'm getting some errors while running the twitterbot. The bot will be running on IRC with no problems and then dies off and here is what I see in the console:
Traceback (most recent call last): File "/usr/local/bin/twitterbot", line 9, in
load_entry_point('twitter==1.6', 'console_scripts', 'twitterbot')()
File "/usr/local/lib/python2.7/dist-packages/twitter/ircbot.py", line 349, in main
return bot.run()
File "/usr/local/lib/python2.7/dist-packages/twitter/ircbot.py", line 292, in run
self.sched.run_forever()
File "/usr/local/lib/python2.7/dist-packages/twitter/ircbot.py", line 132, in run_forever
self.next_task()
File "/usr/local/lib/python2.7/dist-packages/twitter/ircbot.py", line 127, in next_task
task()
File "/usr/local/lib/python2.7/dist-packages/twitter/ircbot.py", line 111, in call
return self.task()
File "/usr/local/lib/python2.7/dist-packages/twitter/ircbot.py", line 189, in check_statuses
IRC_BOLD, text.decode('utf-8')))
File "/usr/local/lib/python2.7/dist-packages/twitter/ircbot.py", line 236, in privmsg_channels
return self.ircServer.privmsg_many(channels, msg)
File "/usr/local/lib/python2.7/dist-packages/irclib.py", line 761, in privmsg_many
self.send_raw("PRIVMSG %s :%s" % (",".join(targets), text))
File "/usr/local/lib/python2.7/dist-packages/irclib.py", line 783, in send_raw
self.socket.send(string + "\r\n")
UnicodeEncodeError: 'ascii' codec can't encode character u'\u2019' in position 51: ordinal not in range(128)