On 8/11/06, Joe Moschetti <[EMAIL PROTECTED]> wrote: > CVS version gives me: > > Traceback (most recent call last): > File "yahoo.py", line 17, in ? > from xmpp.jep0106 import * > ImportError: No module named jep0106
You need to install the CVS version of the xmpp.py libs too. If I remember correctly you can do this by running `make install`. -- - Norman Rasmussen - Email: [EMAIL PROTECTED] - Home page: http://norman.rasmussen.co.za/ From [EMAIL PROTECTED] Fri Aug 11 08:19:45 2006 From: [EMAIL PROTECTED] (Rajnish Bhaskar) Date: Fri Aug 11 08:19:52 2006 Subject: [py-transports] parseFile in xmlconfig.py In-Reply-To: <[EMAIL PROTECTED]> References: <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> Message-ID: <[EMAIL PROTECTED]> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi Douglas, > Okay, for all those who had a similar problem, just uncommenting this in > twisted seems to work I'm not to happy with having to modify twisted, > but at least I'm working again... Would this have also caused my problem at http://modevia.com/pipermail/py-transports/2006-August/003168.html As someone who isn't familiar with Python/Twisted, where can I find the appropriate file (I installed Twisted [2.0.1]) using the enclosed setup.py in the TwistedSumo package. Raj. > Douglas Mayle wrote: > > The current version of xmlconfig.py (in trunk and the snapshot) > > imports parseFile from domish. Unfortunately, parseFile has existed > > in domish since it's very first appearance in twisted, but has always > > been commented out (and still is!). This means that the current dev > > snapshot is unusable, no matter what twisted version we use > > > > I've had to update because of the MSN disconnects, but now I'm left > > out in the cold... > > > > Thanks for any help... > > > > Douglas Mayle > > > > _______________________________________________ > > py-transports mailing list > > [email protected] > > http://www.modevia.com/cgi-bin/mailman/listinfo/py-transports > > > -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (MingW32) iD8DBQFE3D2iDbVaFRVZjKwRAkjuAJsGM26EXQgj0MkVXbQrhexmFMrEvACeNrfn PWHD2Q99mHxL/Uz3R/K7Mus= =Wkie -----END PGP SIGNATURE----- From [EMAIL PROTECTED] Fri Aug 11 08:45:05 2006 From: [EMAIL PROTECTED] (Stian B. Barmen) Date: Fri Aug 11 08:48:58 2006 Subject: [py-transports] Loosing messages In-Reply-To: <[EMAIL PROTECTED]> References: <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> Message-ID: <[EMAIL PROTECTED]> Hello James, thank you for replying. :) I changed the transport setting in ejabberd and have not been able to recreate the error since. The new problem I get now is that when I log on to the MSN network I get the following message and then a disconnect: Disconnected from MSN servers: [Failure instance: Traceback (failure with no frames): exceptions.TypeError: int() argument must be a string or a number ] The problem sometimes occurs at logon, and sometimes after a few minutes. Also I seem to have a memory leak somewhere in the MSN transport: top - 10:41:19 up 19 days, 20:36, 2 users, load average: 3.90, 2.51, 7.91 Tasks: 133 total, 1 running, 132 sleeping, 0 stopped, 0 zombie Cpu(s): 0.5% us, 0.0% sy, 0.0% ni, 0.0% id, 99.2% wa, 0.3% hi, 0.0% si Mem: 774964k total, 767648k used, 7316k free, 17408k buffers Swap: 1413712k total, 525984k used, 887728k free, 119948k cached PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 19735 jabber 18 0 792m 498m 1920 D 0 65.9 0:32.62 python 19741 root 16 0 2128 760 548 R 0 0.1 0:01.42 top Here you can see the transport using 65% of my memory after running for 4-5 minutes. Also my loadavg quickly goes to over 20 so there is something really wrong. Also se here: kermit pymsnt # ps aux |grep msn jabber 19735 7.2 68.5 1312228 531408 ? Dl 10:34 0:39 python /usr/local/pymsnt/PyMSNt.py My last debugs logs are: [2006-08-11 10:38:31] Traceback (most recent call last): File "/usr/lib/python2.4/site-packages/twisted/python/log.py", line 53, in callWithLogger return callWithContext({"system": lp}, func, *args, **kw) File "/usr/lib/python2.4/site-packages/twisted/python/log.py", line 38, in callWithContext return context.call({ILogContext: newCtx}, func, *args, **kw) File "/usr/lib/python2.4/site-packages/twisted/python/context.py", line 59, in callWithContext return self.currentContext().callWithContext(ctx, func, *args, **kw) File "/usr/lib/python2.4/site-packages/twisted/python/context.py", line 37, in callWithContext return func(*args,**kw) --- <exception caught here> --- File "/usr/lib/python2.4/site-packages/twisted/internet/epollreactor.py", line 199, in _doReadOrWrite why = selectable.doRead() File "/usr/lib/python2.4/site-packages/twisted/internet/tcp.py", line 349, in doRead return self.protocol.dataReceived(data) File "/usr/lib/python2.4/site-packages/twisted/protocols/basic.py", line 232, in dataReceived why = self.lineReceived(line) File "/usr/local/pymsnt/src/legacy/msn/msn.py", line 814, in lineReceived try: handler(params.split(' ')) File "/usr/local/pymsnt/src/legacy/msn/msn.py", line 2215, in handle_ANS self.loggedIn() File "/usr/local/pymsnt/src/legacy/msn/msnw.py", line 704, in loggedIn self._ready() File "/usr/local/pymsnt/src/legacy/msn/msnw.py", line 671, in _ready self.userJoined(user) File "/usr/local/pymsnt/src/legacy/msn/msnw.py", line 717, in userJoined self._switchToMulti(remoteUser) File "/usr/local/pymsnt/src/legacy/msn/msnw.py", line 679, in _switchToMulti del self.msncon.switchboardSessions[self.remoteUser] exceptions.KeyError: '[EMAIL PROTECTED]' [2006-08-11 10:39:50] Traceback (most recent call last): File "/usr/lib/python2.4/site-packages/twisted/python/log.py", line 53, in callWithLogger return callWithContext({"system": lp}, func, *args, **kw) File "/usr/lib/python2.4/site-packages/twisted/python/log.py", line 38, in callWithContext return context.call({ILogContext: newCtx}, func, *args, **kw) File "/usr/lib/python2.4/site-packages/twisted/python/context.py", line 59, in callWithContext return self.currentContext().callWithContext(ctx, func, *args, **kw) File "/usr/lib/python2.4/site-packages/twisted/python/context.py", line 37, in callWithContext return func(*args,**kw) --- <exception caught here> --- File "/usr/lib/python2.4/site-packages/twisted/internet/epollreactor.py", line 199, in _doReadOrWrite why = selectable.doRead() File "/usr/lib/python2.4/site-packages/twisted/internet/tcp.py", line 349, in doRead return self.protocol.dataReceived(data) File "/usr/lib/python2.4/site-packages/twisted/protocols/basic.py", line 232, in dataReceived why = self.lineReceived(line) File "/usr/local/pymsnt/src/legacy/msn/msn.py", line 814, in lineReceived try: handler(params.split(' ')) File "/usr/local/pymsnt/src/legacy/msn/msn.py", line 1170, in handle_NLN self.handleAvatarHelper(msnContact, params[4]) File "/usr/local/pymsnt/src/legacy/msn/msn.py", line 1146, in handleAvatarHelper msnobj = MSNObject(unquote(msnobjStr)) File "/usr/local/pymsnt/src/legacy/msn/msn.py", line 478, in __init__ self.parse(s) File "/usr/local/pymsnt/src/legacy/msn/msn.py", line 524, in parse self.size = int(e.getAttribute("Size")) exceptions.TypeError: int() argument must be a string or a number [2006-08-11 10:39:58] Traceback (most recent call last): File "/usr/lib/python2.4/site-packages/twisted/python/log.py", line 53, in callWithLogger return callWithContext({"system": lp}, func, *args, **kw) File "/usr/lib/python2.4/site-packages/twisted/python/log.py", line 38, in callWithContext return context.call({ILogContext: newCtx}, func, *args, **kw) File "/usr/lib/python2.4/site-packages/twisted/python/context.py", line 59, in callWithContext return self.currentContext().callWithContext(ctx, func, *args, **kw) File "/usr/lib/python2.4/site-packages/twisted/python/context.py", line 37, in callWithContext return func(*args,**kw) --- <exception caught here> --- File "/usr/lib/python2.4/site-packages/twisted/internet/epollreactor.py", line 199, in _doReadOrWrite why = selectable.doRead() File "/usr/lib/python2.4/site-packages/twisted/internet/tcp.py", line 349, in doRead return self.protocol.dataReceived(data) File "/usr/lib/python2.4/site-packages/twisted/words/xish/xmlstream.py", line 72, in dataReceived self.stream.parse(buf) File "/usr/lib/python2.4/site-packages/twisted/words/xish/domish.py", line 524, in parse self.parser.Parse(buffer) File "/usr/lib/python2.4/site-packages/twisted/words/xish/domish.py", line 564, in _onEndElement self.ElementEvent(self.currElem) File "/usr/lib/python2.4/site-packages/twisted/words/xish/xmlstream.py", line 104, in onElement self.dispatch(element) File "/usr/lib/python2.4/site-packages/twisted/words/xish/utility.py", line 233, in dispatch callbacklist.callback(object) File "/usr/lib/python2.4/site-packages/twisted/words/xish/utility.py", line 37, in callback methodwrapper(*args, **kwargs) File "/usr/lib/python2.4/site-packages/twisted/words/xish/utility.py", line 21, in __call__ self.method(*nargs, **nkwargs) File "/usr/local/pymsnt/src/disco.py", line 161, in onIq handler(el) File "/usr/local/pymsnt/src/register.py", line 67, in incomingRegisterIq self.updateRegistration(incoming) File "/usr/local/pymsnt/src/register.py", line 137, in updateRegistration (user, host, res) = internJID(incoming.getAttribute("from")) exceptions.TypeError: unpack non-sequence -stian -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of James Bunton Sent: 10. august 2006 14:25 To: PyTransports Discussion Subject: Re: [py-transports] Loosing messages The exception means that some client is sending an invalid MSNObject :| As for losing messages, are you using ejabberd? jabber.org.au had the same problem and solved it by increasing the shaping limit for the msn transport socket. See my post here http://modevia.com/pipermail/py-transports/2006-July/003002.html After making that change I can't reproduce the problem anymore. Please let me know how you go. --- James On 10/08/2006, at 9:18 PM, Stian B. Barmen wrote: > The latest problem I have noticed is that I loose messages out from > the transport, receiving is no problem. Here is what I did: > > Logged on MSN user (my wifes account) with the Windows Live Messenger > client. Used Psi and the Jabber transport (svn 0.11.2-dev rev 223) > with my own account. Then I (pretty quickly) sent single character > messages, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, and only 4 and 5 got trough. > Did the same test the other way, all got trough. Did the same test > with about 1 second between each message, then I got 1, 5, 7 and 0 > trough. > > Nothing much in the log, but this might be interesting? > > [2006-08-10 13:11:23] Traceback (most recent call last): > File "/usr/lib/python2.4/site-packages/twisted/python/ > log.py", line 53, in callWithLogger > return callWithContext({"system": lp}, func, *args, **kw) > File "/usr/lib/python2.4/site-packages/twisted/python/ > log.py", line 38, in callWithContext > return context.call({ILogContext: newCtx}, func, *args, > **kw) > File "/usr/lib/python2.4/site-packages/twisted/python/ > context.py", line 59, in callWithContext > return self.currentContext().callWithContext(ctx, func, > *args, **kw) > File "/usr/lib/python2.4/site-packages/twisted/python/ > context.py", line 37, in callWithContext > return func(*args,**kw) > --- <exception caught here> --- > File "/usr/lib/python2.4/site-packages/twisted/internet/ > epollreactor.py", line 199, in _doReadOrWrite > why = selectable.doRead() > File "/usr/lib/python2.4/site-packages/twisted/internet/ > tcp.py", line 349, in doRead > return self.protocol.dataReceived(data) > File "/usr/lib/python2.4/site-packages/twisted/protocols/ > basic.py", line 232, in dataReceived > why = self.lineReceived(line) > File "/usr/local/pymsnt/src/legacy/msn/msn.py", line 814, in > lineReceived > try: handler(params.split(' ')) > File "/usr/local/pymsnt/src/legacy/msn/msn.py", line 1170, > in handle_NLN > self.handleAvatarHelper(msnContact, params[4]) > File "/usr/local/pymsnt/src/legacy/msn/msn.py", line 1146, > in handleAvatarHelper > msnobj = MSNObject(unquote(msnobjStr)) > File "/usr/local/pymsnt/src/legacy/msn/msn.py", line 478, in > __init__ > self.parse(s) > File "/usr/local/pymsnt/src/legacy/msn/msn.py", line 524, in > parse > self.size = int(e.getAttribute("Size")) > exceptions.TypeError: int() argument must be a string or a > number > > > -stian > > _______________________________________________ > py-transports mailing list > [email protected] > http://www.modevia.com/cgi-bin/mailman/listinfo/py-transports _______________________________________________ py-transports mailing list [email protected] http://www.modevia.com/cgi-bin/mailman/listinfo/py-transports
