eastein / mediorc

mediocre irc bot library
2 stars 0 forks source link

python-irclib and irc module compatibility problems #4

Open eastein opened 9 years ago

eastein commented 9 years ago

Traceback (most recent call last): File "/usr/lib/python2.7/threading.py", line 808, in bootstrap_inner self.run() File "/home/eastein/venv/local/lib/python2.7/site-packages/mediorc/__init.py", line 101, in run self.client.ircobj.process_once(0.2) File "/home/eastein/venv/local/lib/python2.7/site-packages/irc/client.py", line 261, in process_once self.process_data(i) File "/home/eastein/venv/local/lib/python2.7/site-packages/irc/client.py", line 218, in process_data c.process_data() File "/home/eastein/venv/local/lib/python2.7/site-packages/irc/client.py", line 578, in process_data self._process_line(line) File "/home/eastein/venv/local/lib/python2.7/site-packages/irc/client.py", line 649, in _process_line self._handle_event(event) File "/home/eastein/venv/local/lib/python2.7/site-packages/irc/client.py", line 672, in _handle_event self.irclibobj._handle_event(self, event) File "/home/eastein/venv/local/lib/python2.7/site-packages/irc/client.py", line 400, in _handle_event result = handler.callback(connection, event) File "/home/eastein/venv/local/lib/python2.7/site-packages/irc/client.py", line 1226, in _dispatcher method(connection, event) File "/home/eastein/git/lidless/lidlessirc.py", line 41, in on_pubmsg chan = e.target() TypeError: 'unicode' object is not callable

https://github.com/eastein/floyd/issues/9

Basically, the old API that python-irclib used to have doesn't quite work out. I want to make it compatible with either, but right now that's not really working.

eastein commented 9 years ago

The newer version at https://pypi.python.org/pypi/irc causes these issues. Not totally backward compatible.