On 02/01/2006, at 6:35 AM, Lars T. Mikkelsen wrote: > On Sun, Jan 01, 2006 at 02:42:34PM +0200, Norman Rasmussen wrote: >> Some debugging gems: >> >> 2006/01/01 14:33 SAST [XmlStream,client] Traceback (most recent call >> last): > [snip] >> File "/home/norman/src/svn/PyMSNt.trunk/src/misciq.py", line 132, >> in incomingIq >> froj = jid.intern(fro) >> exceptions.AttributeError: 'module' object has no attribute >> 'intern' >> >> and I also get quite a few of these: >> >> 2006/01/01 14:33 SAST [XmlStream,client] WARN :: :: Dropping IQ >> because of stringprep error :: onIq :: <disco.ServerDiscovery instance >> at 0xb76fc44c> :: {'el': <twisted.xish.domish.Element object at >> 0xb76d4b6c>, 'e': <exceptions.AttributeError instance at 0xb76d49ec>, >> 'fro': u'darkskies.za.net', 'self': <disco.ServerDiscovery instance at >> 0xb76fc44c>, 'iqType': u'get', 'ulang': None, 'to': >> u'msn.jabber.darkskies.za.net', 'ID': u'mydhc4mg'} > > I think the exception and the warning are due to the same issue. It > seems that newer versions of Twisted Words has had the intern() > function > in twisted.words.protocols.jabber.jid renamed to internJID(). > > To fix this issue, run the following command: > find src/ -iname '*.py' -exec sed -i 's/jid.intern/jid.internJID/' {} > \; > > Best regards, > Lars
Thanks for that :) Fixed in SVN trunk 78. --- James