On 3/14/06, James Bunton <[EMAIL PROTECTED]> wrote: > On 14/03/2006, at 10:32 PM, Norman Rasmussen wrote: > > > These errors are happening during the execution of the transport: > > > > i.e. The transport has sucessfully started, and then several hours > > later, there could be a problem connecting to the MSN servers, and > > then the error is sent to the user trying to login to MSN. > > > > I will keep tracking this issue, it's very hard to reproduce, but all > > (4) of the transport's users have been experiencing it. > > Thanks. > > You're not running with twistd are you? >
nope, this is /usr/sbin/pymsnt: cd /home/norman/src/svn/PyMSNt.trunk exec -a PyMSNt python src/main.py I'm pretty sure that this error only occurs when the transport fails to connect to MSN for some reason. Today I restarted my pc, and on reconnect I got: 'Disconnected from MSN servers: [Failure instance: Traceback (failure with no frames): twisted.internet.error.ConnectionLost: Connection to the other side was lost in a non-clean fashion. ]' , then when I tried to reconnect I got the: 'Failed to connect to MSN servers: [Failure instance: Traceback: exceptions.ImportError: No module named kqsyscall --- <exception caught here> --- src/main.py:15:? /usr/lib/python2.3/site-packages/twisted/internet/kqreactor.py:69:? ]' I'm pretty sure that this error is 'left over' from the startup, so there's no real stack trace at all. I think a few sys.exc_clear()'s might be in order. I've found that python doesn't keep track of where the exception applies to so well. I've added the exc_clear's in main.py, and we'll see how it goes. -- - Norman Rasmussen - Email: [EMAIL PROTECTED] - Home page: http://norman.rasmussen.co.za/ From [EMAIL PROTECTED] Tue Mar 14 12:32:25 2006 From: [EMAIL PROTECTED] (Norman Rasmussen) Date: Tue Mar 14 12:32:32 2006 Subject: [py-transports] PyMSNt Screenname for Google Talk users In-Reply-To: <[EMAIL PROTECTED]> References: <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> Message-ID: <[EMAIL PROTECTED]> On 3/14/06, Alexey Nezhdanov <[EMAIL PROTECTED]> wrote: > ? ????????? ?? ??????? 14 ???? 2006 14:57 Maarten Fonville ???????(a): > > I already talked with James about the functionality to fall back on the > > first part of the VCARD Full Name when there is no Nickname available to > > use as screen name on MSN. > > I promised it to write a little patch for it, and so here it is. > You attached not patch but not unified diff output. > Re-do the same with -u key to get a patch: > diff -u >somefile.diff also it looks like you've done a reverse patch. The 'old file' should be the first file, and the 'new file' should be the second file on the command line. -- - Norman Rasmussen - Email: [EMAIL PROTECTED] - Home page: http://norman.rasmussen.co.za/ From [EMAIL PROTECTED] Tue Mar 14 12:35:58 2006 From: [EMAIL PROTECTED] (Renato Botelho) Date: Tue Mar 14 12:36:03 2006 Subject: [py-transports] Problems with PyMSNt + ejabberd-1.0.0 In-Reply-To: <[EMAIL PROTECTED]> References: <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> Message-ID: <[EMAIL PROTECTED]> On 3/14/06, James Bunton <[EMAIL PROTECTED]> wrote: > On 14/03/2006, at 10:43 PM, Renato Botelho wrote: > > Here are my python and related versions: > > > > python-2.4.2 > > py-imaging-1.1.5 > > py-openssl-0.6 > > py-tkinter-2.4.2 > > py-twisted-1.3.0 > > > > Are you using something different? > > -- > > Renato Botelho > > I have Python 2.4.1, but it shouldn't be segfaulting! :| > > What happens if you run this command? > > trial /usr/lib/python2.4/site-packages/twisted/test/test_ssl.py I just saw now that trial generate a_trial_temp dir with python.core inside. I ran a gdb and saw the problem is related to libssl and/or libcrypto, so, I noted a difference between this machine and another one where pymsnt works fine. The box that works fine, uses openssl from FreeBSD base-system, OpenSSL 0.9.7e-p1 25 Oct 2004 The box where i'm having problems, uses Openssl from ports, so, newer version, OpenSSL 0.9.8a 11 Oct 2005 Could it be the problem? -- Renato Botelho From [EMAIL PROTECTED] Tue Mar 14 12:40:52 2006 From: [EMAIL PROTECTED] (James Bunton) Date: Tue Mar 14 12:40:51 2006 Subject: [py-transports] Problems with PyMSNt + ejabberd-1.0.0 In-Reply-To: <[EMAIL PROTECTED]> References: <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> Message-ID: <[EMAIL PROTECTED]> On 14/03/2006, at 11:08 PM, Renato Botelho wrote: > On 3/14/06, James Bunton <[EMAIL PROTECTED]> wrote: >> On 14/03/2006, at 10:43 PM, Renato Botelho wrote: >>> Here are my python and related versions: >>> >>> python-2.4.2 >>> py-imaging-1.1.5 >>> py-openssl-0.6 >>> py-tkinter-2.4.2 >>> py-twisted-1.3.0 >>> >>> Are you using something different? >>> -- >>> Renato Botelho >> >> I have Python 2.4.1, but it shouldn't be segfaulting! :| >> >> What happens if you run this command? >> >> trial /usr/lib/python2.4/site-packages/twisted/test/test_ssl.py > > Bingo!! > > [EMAIL PROTECTED]:/home/garga# trial > /usr/local/lib/python2.4/site-packages/twisted/test/test_ssl.py > Segmentation fault (core dumped) > > I don't know why it happens, but the problem is here > -- > Renato Botelho Its most likely a problem with either pyopenssl or pycrypto. Try using different or newer packages, if possible. You can also try running this trial --spew /usr/lib/python2.4/site-packages/twisted/test/test_ssl.py That will print lots of junk to the screen, which might help you to figure it out. Its most likely a packaging problem, but if you compile it from source and have the same trouble, then consider talking to the pyopenssl/pycrypto authors to see if they can help. Good luck! --- James
