Hi,
I found the error below on the terminal shortly after starting PyMSNt 0.9.5.
I haven't been able to duplicate the problem yet.
Exception occured! Check the log!
Traceback (most recent call last):
File "/usr/lib/python2.3/site-packages/twisted/internet/default.py", line
526, in doSelect
_logrun(selectable, _drdw, selectable, method, dict)
File "/usr/lib/python2.3/site-packages/twisted/python/log.py", line 65, in
callWithLogger
callWithContext({"system": lp}, func, *args, **kw)
File "/usr/lib/python2.3/site-packages/twisted/python/log.py", line 52, in
callWithContext
return context.call({ILogContext: newCtx}, func, *args, **kw)
File "/usr/lib/python2.3/site-packages/twisted/python/context.py", line
43, in callWithContext
return func(*args,**kw)
--- <exception caught here> ---
File "/usr/lib/python2.3/site-packages/twisted/internet/default.py", line
535, in _doReadOrWrite
why = getattr(selectable, method)()
File "/usr/lib/python2.3/site-packages/twisted/internet/tcp.py", line 255,
in doRead
return self.protocol.dataReceived(data)
File "/opt/jabber-transports/PyMSNt/src/tlib/xmlstream.py", line 159, in
dataReceived
self.stream.parse(buf)
File "/opt/jabber-transports/PyMSNt/src/tlib/domish.py", line 598, in
parse
self.parser.Parse(buffer)
File "/opt/jabber-transports/PyMSNt/src/tlib/domish.py", line 635, in
_onEndElement
self.ElementEvent(self.currElem)
File "/opt/jabber-transports/PyMSNt/src/tlib/xmlstream.py", line 180, in
onElement
self.dispatch(element)
File "/usr/lib/python2.3/site-packages/twisted/xish/utility.py", line 139,
in dispatch
callbacklist.callback(object)
File "/usr/lib/python2.3/site-packages/twisted/xish/utility.py", line 50,
in callback
methodwrapper(*args, **kwargs)
File "/usr/lib/python2.3/site-packages/twisted/xish/utility.py", line 34,
in __call__
self.method(*nargs, **nkwargs)
File "/opt/jabber-transports/PyMSNt/src/disco.py", line 92, in onIq
handler(el)
File "/opt/jabber-transports/PyMSNt/src/register.py", line 72, in
incomingRegisterIq
self.updateRegistration(incoming)
File "/opt/jabber-transports/PyMSNt/src/register.py", line 158, in
updateRegistration
self.badRequestReply(incoming)
File "/opt/jabber-transports/PyMSNt/src/register.py", line 170, in
badRequestReply
self.pytrans.send(reply)
File "/opt/jabber-transports/PyMSNt/src/tlib/jabber/component.py", line
96, in send
self.parent.send(obj)
File "/opt/jabber-transports/PyMSNt/src/tlib/jabber/component.py", line
162, in send
self.xmlstream.send(obj)
File "/opt/jabber-transports/PyMSNt/src/tlib/xmlstream.py", line 193, in
send
obj = obj.toXml()
File "/opt/jabber-transports/PyMSNt/src/tlib/domish.py", line 399, in
toXml
s.serialize(self, closeElement)
File "/opt/jabber-transports/PyMSNt/src/tlib/domish.py", line 90, in
serialize
write(" %s:%s='%s'" % (self.getPrefix(k[0]), k[1], escapeToXml(v,
1)).encode("utf-8"))
exceptions.AttributeError: 'tuple' object has no attribute 'encode'
It looks to me like line 90 of domish.py is unchanged in the latest source.
I don't speak Python well enough to contribute a patch, my apologies.
Best Regards,
Matt