paris-ci / CloudBot

CloudBot - The simple, fast, expandable, open-source Python IRC Bot!
GNU General Public License v3.0
6 stars 1 forks source link

Error in hook log:console_log #54

Closed paris-ci closed 9 years ago

paris-ci commented 9 years ago
[15:53:20] [INFO] [harmony:nickserv] -NickServ- You have 5 seconds to identify to your nickname before it is changed.
[15:53:20] [ERROR] Error in hook log:console_log
Traceback (most recent call last):
  File "/home/cloudbot/CloudBot/cloudbot/plugin.py", line 376, in _execute_hook
    out = yield from self.bot.loop.run_in_executor(None, self._execute_hook_threaded, hook, event)
  File "/usr/lib/python3.4/asyncio/futures.py", line 388, in __iter__
    yield self  # This tells Task to wait for completion.
  File "/usr/lib/python3.4/asyncio/tasks.py", line 286, in _wakeup
    value = future.result()
  File "/usr/lib/python3.4/asyncio/futures.py", line 277, in result
    raise self._exception
  File "/usr/lib/python3.4/concurrent/futures/thread.py", line 54, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/home/cloudbot/CloudBot/cloudbot/plugin.py", line 340, in _execute_hook_threaded
    return hook.function(*parameters)
  File "/home/cloudbot/CloudBot/plugins/log.py", line 248, in console_log
    text = format_event(event)
  File "/home/cloudbot/CloudBot/plugins/log.py", line 82, in format_event
    return format_irc_event(event, args)
  File "/home/cloudbot/CloudBot/plugins/log.py", line 106, in format_irc_event
    ctcp_command, ctcp_message = event.irc_ctcp_text.split(None, 1)
ValueError: need more than 1 value to unpack
paris-ci commented 9 years ago
[15:55:14] [INFO] [harmony] >> JOIN :#♯
[15:55:14] [ERROR] Error in hook log:log
Traceback (most recent call last):
  File "/home/cloudbot/CloudBot/cloudbot/plugin.py", line 376, in _execute_hook
    out = yield from self.bot.loop.run_in_executor(None, self._execute_hook_threaded, hook, event)
  File "/usr/lib/python3.4/asyncio/futures.py", line 388, in __iter__
    yield self  # This tells Task to wait for completion.
  File "/usr/lib/python3.4/asyncio/tasks.py", line 286, in _wakeup
    value = future.result()
  File "/usr/lib/python3.4/asyncio/futures.py", line 277, in result
    raise self._exception
  File "/usr/lib/python3.4/concurrent/futures/thread.py", line 54, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/home/cloudbot/CloudBot/cloudbot/plugin.py", line 340, in _execute_hook_threaded
    return hook.function(*parameters)
  File "/home/cloudbot/CloudBot/plugins/log.py", line 231, in log
    text = format_event(event)
  File "/home/cloudbot/CloudBot/plugins/log.py", line 82, in format_event
    return format_irc_event(event, args)
  File "/home/cloudbot/CloudBot/plugins/log.py", line 101, in format_irc_event
    return irc_formats[event.irc_command].format(**args)
KeyError: 'chan'
[15:55:14] [ERROR] Error in hook log:console_log
Traceback (most recent call last):
  File "/home/cloudbot/CloudBot/cloudbot/plugin.py", line 376, in _execute_hook
    out = yield from self.bot.loop.run_in_executor(None, self._execute_hook_threaded, hook, event)
  File "/usr/lib/python3.4/asyncio/futures.py", line 388, in __iter__
    yield self  # This tells Task to wait for completion.
  File "/usr/lib/python3.4/asyncio/tasks.py", line 286, in _wakeup
    value = future.result()
  File "/usr/lib/python3.4/asyncio/futures.py", line 277, in result
    raise self._exception
  File "/usr/lib/python3.4/concurrent/futures/thread.py", line 54, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/home/cloudbot/CloudBot/cloudbot/plugin.py", line 340, in _execute_hook_threaded
    return hook.function(*parameters)
  File "/home/cloudbot/CloudBot/plugins/log.py", line 248, in console_log
    text = format_event(event)
  File "/home/cloudbot/CloudBot/plugins/log.py", line 82, in format_event
    return format_irc_event(event, args)
  File "/home/cloudbot/CloudBot/plugins/log.py", line 101, in format_irc_event
    return irc_formats[event.irc_command].format(**args)
KeyError: 'chan'
[15:55:14] [INFO] [harmony] >> PRIVMSG #♯ :Hello ! I'm an IRC bot. WayToDoor!milk.bottle@my.milk.bottle invited me here! Check what I can do with !help.
Afootpluto commented 9 years ago

I am getting this issue with vanilla cloudbot too. Maybe something we should tell luke.

paris-ci commented 9 years ago

CloudBotIRC/CloudBot/issues/177

paris-ci commented 9 years ago

This fix CloudBotIRC/CloudBot#177 works. Closing the issue. Tl;Dr = Set your linux server locatle to UTF8