Doing a "ls" in the spool dir I have lots of xml files of the  users and 
several directories. One of the directory is called "aq" but there's no file 
name "aq" or "@aq"


I changed the code of housekeep.py in order to print he variables like you can 
see bellow:
-----
       for file in os.listdir(pre):
                try:
                        file = xdb.unmangle(file).decode("utf-8")
                        filej = xmlw.jid.intern(file).full()
                        if(file != filej):
                                print "#aFILE:",file
                                print "#aFILEj:",filej
                                file = xdb.mangle(file)
                                filej = xdb.mangle(filej)
                                print "#FILE:",file
                                print "#FILEj:",filej
                                if(os.path.exists(filej)):
                                        print "Need to move", file, "to", 
filej, "but the latter exists!\nAborting!"
                                        os.exit(1)
                                else:
                                        shutil.move(pre + file, pre + filej)
                except:
                        print "File: " + file
                        raise

----------


The results are these:

#aFILE: @aq
#aFILEj: aq
#FILE: %aq
#FILEj: aq
File: %aq
An error occurred during one of the automatic data update routines. Please 
report this bug.



Any ideas?


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of S?rgio Freire
Sent: Friday, June 02, 2006 1:53 PM
To: PyTransports Discussion
Subject: [py-transports] pymsnt problem with spool dir
Importance: High

Hi.
Im using latest revision from SVN and Im having this problem... it appeared 
after a restart to the transport/machine.


Checking spool files and stringprepping any if necessary... File: %             
                                aq
An error occurred during one of the automatic data update routines. Please 
repor                                             t this bug.
Traceback (most recent call last):
  File "/home/jabber/jabber/pymsnt/PyMSNt.py", line 12, in ?
    main.main()
  File "/home/jabber/jabber/pymsnt/src/main.py", line 391, in main
    app = App()
  File "/home/jabber/jabber/pymsnt/src/main.py", line 331, in __init__
    housekeep.init()
  File "/home/jabber/jabber/pymsnt/src/housekeep.py", line 25, in init
    noteListF[noteList.index(note)]()
  File "/home/jabber/jabber/pymsnt/src/housekeep.py", line 80, in 
doSpoolPrepChe                                             ck
    shutil.move(pre + file, pre + filej)
  File "/usr/lib/python2.3/shutil.py", line 170, in move
    copy2(src,dst)
  File "/usr/lib/python2.3/shutil.py", line 82, in copy2
    copyfile(src, dst)
  File "/usr/lib/python2.3/shutil.py", line 37, in copyfile
    fsrc = open(src, 'rb')
IOError: [Errno 2] No such file or directory: 
'/home/jabber/jabber-1.4.2/pymsnt-                                             
0.11/data/msn.localhost/%aq'


_______________________________________________
py-transports mailing list
[email protected]
http://www.modevia.com/cgi-bin/mailman/listinfo/py-transports
From [EMAIL PROTECTED]  Fri Jun  2 14:23:24 2006
From: [EMAIL PROTECTED] (=?iso-8859-1?Q?S=E9rgio_Freire?=)
Date: Fri Jun  2 14:23:37 2006
Subject: [py-transports] pymsnt problem with spool dir
Message-ID: <[EMAIL PROTECTED]>

Hi again,
I "fixed" this by adding a check to see if the file is a directory or not in 
housekeep.py" line 70. Is this correct? See lines bellow:



        for file in os.listdir(pre):
                try:
                        print "#0FILE:",file
                        if (os.path.isdir(pre+file)):
                                continue
                        else:
                                file = xdb.unmangle(file).decode("utf-8")
                                filej = xmlw.jid.intern(file).full()
                                if(file != filej):
                                        print "#aFILE:",file
                                        print "#aFILEj:",filej
                                        file = xdb.mangle(file)
                                        filej = xdb.mangle(filej)
                                        print "#FILE:",file
                                        print "#FILEj:",filej
                                        if(os.path.exists(filej)):
                                                print "Need to move", file, 
"to", filej, "but the latter exists!\nAborting!"
                                                os.exit(1)
                                        else:
                                                shutil.move(pre + file, pre + 
filej)




-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of S?rgio Freire
Sent: Friday, June 02, 2006 2:07 PM
To: PyTransports Discussion
Subject: RE: [py-transports] pymsnt problem with spool dir

Doing a "ls" in the spool dir I have lots of xml files of the  users and 
several directories. One of the directory is called "aq" but there's no file 
name "aq" or "@aq"


I changed the code of housekeep.py in order to print he variables like you can 
see bellow:
-----
       for file in os.listdir(pre):
                try:
                        file = xdb.unmangle(file).decode("utf-8")
                        filej = xmlw.jid.intern(file).full()
                        if(file != filej):
                                print "#aFILE:",file
                                print "#aFILEj:",filej
                                file = xdb.mangle(file)
                                filej = xdb.mangle(filej)
                                print "#FILE:",file
                                print "#FILEj:",filej
                                if(os.path.exists(filej)):
                                        print "Need to move", file, "to", 
filej, "but the latter exists!\nAborting!"
                                        os.exit(1)
                                else:
                                        shutil.move(pre + file, pre + filej)
                except:
                        print "File: " + file
                        raise

----------


The results are these:

#aFILE: @aq
#aFILEj: aq
#FILE: %aq
#FILEj: aq
File: %aq
An error occurred during one of the automatic data update routines. Please 
report this bug.



Any ideas?


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of S?rgio Freire
Sent: Friday, June 02, 2006 1:53 PM
To: PyTransports Discussion
Subject: [py-transports] pymsnt problem with spool dir
Importance: High

Hi.
Im using latest revision from SVN and Im having this problem... it appeared 
after a restart to the transport/machine.


Checking spool files and stringprepping any if necessary... File: %             
                                aq
An error occurred during one of the automatic data update routines. Please 
repor                                             t this bug.
Traceback (most recent call last):
  File "/home/jabber/jabber/pymsnt/PyMSNt.py", line 12, in ?
    main.main()
  File "/home/jabber/jabber/pymsnt/src/main.py", line 391, in main
    app = App()
  File "/home/jabber/jabber/pymsnt/src/main.py", line 331, in __init__
    housekeep.init()
  File "/home/jabber/jabber/pymsnt/src/housekeep.py", line 25, in init
    noteListF[noteList.index(note)]()
  File "/home/jabber/jabber/pymsnt/src/housekeep.py", line 80, in 
doSpoolPrepChe                                             ck
    shutil.move(pre + file, pre + filej)
  File "/usr/lib/python2.3/shutil.py", line 170, in move
    copy2(src,dst)
  File "/usr/lib/python2.3/shutil.py", line 82, in copy2
    copyfile(src, dst)
  File "/usr/lib/python2.3/shutil.py", line 37, in copyfile
    fsrc = open(src, 'rb')
IOError: [Errno 2] No such file or directory: 
'/home/jabber/jabber-1.4.2/pymsnt-                                             
0.11/data/msn.localhost/%aq'


_______________________________________________
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
From [EMAIL PROTECTED]  Sat Jun  3 01:09:57 2006
From: [EMAIL PROTECTED] (Phil Reynolds)
Date: Sat Jun  3 01:10:04 2006
Subject: [py-transports] Re: PyYIMt and Debian Testing
In-Reply-To: <[EMAIL PROTECTED]>
References: <[EMAIL PROTECTED]>
        <[EMAIL PROTECTED]>
        <[EMAIL PROTECTED]>
        <[EMAIL PROTECTED]>
        <[EMAIL PROTECTED]>
Message-ID: <[EMAIL PROTECTED]>

On Fri, Jun 02, 2006 at 01:14:39PM +0200, Norman Rasmussen wrote:
> On 6/2/06, Phil Reynolds <[EMAIL PROTECTED]> wrote:
> >I'm trying to install this, but getting problems due to missing
> >/etc/lsb-release.
> 
> not sure, maybe http://www.google.com/search?q=lsb-release

I've somehow managed to horse the thing on - not sure I've made a proper
fix for the problem but in the words of Stan Ogden, "It'll do."...

However, for some reason, the transport dies within a very short time of
being started.

How can I trace why and hopefully prevent it?
?

-- 
Phil Reynolds
 o  ____ mail: [EMAIL PROTECTED]
|L_ \  / Web: http://www.tinsleyviaduct.com/phil/
(_)- \/  Waltham 66, Emley Moor 69, Droitwich 79, Windows 95
From [EMAIL PROTECTED]  Sat Jun  3 10:58:29 2006
From: [EMAIL PROTECTED] (Norman Rasmussen)
Date: Sat Jun  3 10:58:34 2006
Subject: [py-transports] Re: PyYIMt and Debian Testing
In-Reply-To: <[EMAIL PROTECTED]>
References: <[EMAIL PROTECTED]>
        <[EMAIL PROTECTED]>
        <[EMAIL PROTECTED]>
        <[EMAIL PROTECTED]>
        <[EMAIL PROTECTED]>
        <[EMAIL PROTECTED]>
Message-ID: <[EMAIL PROTECTED]>

On 6/3/06, Phil Reynolds <[EMAIL PROTECTED]> wrote:
> However, for some reason, the transport dies within a very short time of
> being started.
how short is short?

> How can I trace why and hopefully prevent it?
Does anything get logged in the log file?  Which version are you
using? If you run the transport directly does it work? Try running it
via sudo too.  Maybe the user who you're running the transport as
doesn't have read access to the config file?

-- 
- Norman Rasmussen
 - Email: [EMAIL PROTECTED]
 - Home page: http://norman.rasmussen.co.za/
From [EMAIL PROTECTED]  Sat Jun  3 11:11:23 2006
From: [EMAIL PROTECTED] (Phil Reynolds)
Date: Sat Jun  3 11:11:30 2006
Subject: [py-transports] Re: PyYIMt and Debian Testing
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 Sat, Jun 03, 2006 at 12:58:29PM +0200, Norman Rasmussen wrote:
> On 6/3/06, Phil Reynolds <[EMAIL PROTECTED]> wrote:
> >However, for some reason, the transport dies within a very short time of
> >being started.
> how short is short?

Extremely - under a minute.

> >How can I trace why and hopefully prevent it?
> Does anything get logged in the log file?

Not even created.

> Which version are you using?

The one Fawzib packaged.

> If you run the transport directly does it work? Try running it
> via sudo too.  Maybe the user who you're running the transport as
> doesn't have read access to the config file?

Permissions are as per the other three.

Not yet tried running that version directly but will later.

--  
Phil Reynolds
 o  ____ mail: [EMAIL PROTECTED]
|L_ \  / Web: http://www.tinsleyviaduct.com/phil/
(_)- \/  Waltham 66, Emley Moor 69, Droitwich 79, Windows 95
From [EMAIL PROTECTED]  Sat Jun  3 11:33:35 2006
From: [EMAIL PROTECTED] (Norman Rasmussen)
Date: Sat Jun  3 11:33:41 2006
Subject: [py-transports] Re: PyYIMt and Debian Testing
In-Reply-To: <[EMAIL PROTECTED]>
References: <[EMAIL PROTECTED]>
        <[EMAIL PROTECTED]>
        <[EMAIL PROTECTED]>
        <[EMAIL PROTECTED]>
        <[EMAIL PROTECTED]>
        <[EMAIL PROTECTED]>
        <[EMAIL PROTECTED]>
        <[EMAIL PROTECTED]>
Message-ID: <[EMAIL PROTECTED]>

On 6/3/06, Phil Reynolds <[EMAIL PROTECTED]> wrote:
> On Sat, Jun 03, 2006 at 12:58:29PM +0200, Norman Rasmussen wrote:
> > On 6/3/06, Phil Reynolds <[EMAIL PROTECTED]> wrote:
> > >However, for some reason, the transport dies within a very short time of
> > >being started.
> > how short is short?
>
> Extremely - under a minute.
>
> > >How can I trace why and hopefully prevent it?
> > Does anything get logged in the log file?
>
> Not even created.

mmm, sounds like either the transport can't read the config file, or
it can't create the log or pid files.  If-I-Remeber-Correctly, the log
file is created before it attempts to login, so I don't think this is
being caused by an invalid username/password combination.

I couldn't find if you mentioned which server you're running with.
(You should only set 'serveruser' if the server is jabberd2 at the
moment).

The good news is that the next released version will have xml config
files that look almost identical to the other transports.  It should
also have better support for wildfire.

-- 
- Norman Rasmussen
 - Email: [EMAIL PROTECTED]
 - Home page: http://norman.rasmussen.co.za/
From [EMAIL PROTECTED]  Sat Jun  3 11:46:20 2006
From: [EMAIL PROTECTED] (Norman Rasmussen)
Date: Sat Jun  3 11:46:35 2006
Subject: [py-transports] Re: trouble with yahoo transport
In-Reply-To: <[EMAIL PROTECTED]>
References: <[EMAIL PROTECTED]>
Message-ID: <[EMAIL PROTECTED]>

On 6/2/06, jjensen <[EMAIL PROTECTED]> wrote:
> I am relatively new to jabber, and am trying to set up a server with a
> yahoo/aim/msn transports.  I am using ejabberd and am trying to
> xmpppy-yahoo, but I am not having much luck.  Is there any documentation
> on the transport.ini file?  What configuration changes to ejabberd do I
> need to make?

Hi Jim

(btw, the preferred place to ask for help is the py-transports mailing
list [email protected] and not emailing the developers
directly, I've cc'ed the list - you should probably subscribe if you
haven't already)

http://ejabberd.jabber.ru/yahoo-transport-2 is close, the instructions
for ejabberd are pretty much the same.
http://ejabberd.jabber.ru/pyaimt is also pretty close (obviously
substitute xmpppy for twisted)

The good news is that the next version will have xml config files like
the other transports.

-- 
- Norman Rasmussen
 - Email: [EMAIL PROTECTED]
 - Home page: http://norman.rasmussen.co.za/
From [EMAIL PROTECTED]  Sat Jun  3 11:48:15 2006
From: [EMAIL PROTECTED] (Phil Reynolds)
Date: Sat Jun  3 11:48:20 2006
Subject: [py-transports] Re: PyYIMt and Debian Testing
In-Reply-To: <[EMAIL PROTECTED]>
References: <[EMAIL PROTECTED]>
        <[EMAIL PROTECTED]>
        <[EMAIL PROTECTED]>
        <[EMAIL PROTECTED]>
        <[EMAIL PROTECTED]>
        <[EMAIL PROTECTED]>
        <[EMAIL PROTECTED]>
        <[EMAIL PROTECTED]>
        <[EMAIL PROTECTED]>
Message-ID: <[EMAIL PROTECTED]>

On Sat, Jun 03, 2006 at 01:33:35PM +0200, Norman Rasmussen wrote:
> >> >How can I trace why and hopefully prevent it?
> >> Does anything get logged in the log file?
> >
> >Not even created.
> 
> mmm, sounds like either the transport can't read the config file, or
> it can't create the log or pid files.  If-I-Remeber-Correctly, the log
> file is created before it attempts to login, so I don't think this is
> being caused by an invalid username/password combination.

I will check and see if making a log file manually helps - later,
though.

> I couldn't find if you mentioned which server you're running with.
> (You should only set 'serveruser' if the server is jabberd2 at the
> moment).

ejabberd.

> The good news is that the next released version will have xml config
> files that look almost identical to the other transports.  It should
> also have better support for wildfire.

Any improvement will be welcome :-)

-- 
Phil Reynolds
 o  ____ mail: [EMAIL PROTECTED]
|L_ \  / Web: http://www.tinsleyviaduct.com/phil/
(_)- \/  Waltham 66, Emley Moor 69, Droitwich 79, Windows 95
From [EMAIL PROTECTED]  Sat Jun  3 14:02:35 2006
From: [EMAIL PROTECTED] (Lars T. Mikkelsen)
Date: Sat Jun  3 14:02:41 2006
Subject: [py-transports] Imminent PyMSNt 0.11.1 release
In-Reply-To: <[EMAIL PROTECTED]>
References: <[EMAIL PROTECTED]>
        <[EMAIL PROTECTED]>
        <[EMAIL PROTECTED]>
        <[EMAIL PROTECTED]>
        <[EMAIL PROTECTED]>
        <[EMAIL PROTECTED]>
        <[EMAIL PROTECTED]>
        <[EMAIL PROTECTED]>
        <[EMAIL PROTECTED]>
        <[EMAIL PROTECTED]>
Message-ID: <[EMAIL PROTECTED]>

On Thu, Jun 01, 2006 at 01:29:28PM +0200, Lucas Nussbaum wrote:
> [2006-05-31 10:17:34] << PRP 7 MFN [...]
> [2006-05-31 10:17:35] >> 715 7
> [2006-05-31 10:17:35] Unhandled error in Deferred:
> [2006-05-31 10:17:35] Traceback (most recent call last):
>         Failure: <type 'int'>: 715

I'm pretty sure this happens because the e-mail address used for the MSN
Messenger account hasn't been verified yet. You can check the verified
status of an account by looking at the second last argument of the USR
command preceding the PRP command. If the line looks like this

>> USR 4 OK <passport> 0 0

then the e-mail address hasn't been verified yet (i.e. 0 = not verified,
1 = verified).

The MSN Messenger server will not allow you to change your nickname, if
the e-mail address hasn't been verified. PyMSNt, however, will always
attempt to change the nickname.

I think the attached patch will workaround the issue. I actually think
it will be better to do the check in msnw.MSNConnection.changeStatus()
and avoid calling changeScreenName(), however, this requires a bit more
work.

Best regards,
Lars
-------------- next part --------------
Index: src/tlib/msn/msn.py
===================================================================
--- src/tlib/msn/msn.py (revision 170)
+++ src/tlib/msn/msn.py (working copy)
@@ -957,6 +957,7 @@
         self.pingCounter = 0
         self.pingCheckTask = None
         self.msnobj = MSNObject()
+        self.verified = False
 
     def _setState(self, state):
         self._state[0] = state
@@ -1427,6 +1428,8 @@
                          (i'm not sure of the significace of this)
         @type verified: int
         """
+        if verified == 1:
+            self.verified = True
         d = self.syncList()
         d.addCallback(self.listSynchronized)
         d.addCallback(self.pingCheckerStart)
@@ -1921,7 +1924,8 @@
         """
 
         id, d = self._createIDMapping()
-        self.sendLine("PRP %s MFN %s" % (id, quote(newName)))
+        if self.verified:
+            self.sendLine("PRP %s MFN %s" % (id, quote(newName)))
         def _cb(r):
             self.factory.screenName = newName
             return r
From [EMAIL PROTECTED]  Sat Jun  3 14:29:06 2006
From: [EMAIL PROTECTED] (Lars T. Mikkelsen)
Date: Sat Jun  3 14:29:12 2006
Subject: [py-transports] Imminent PyMSNt 0.11.1 release
In-Reply-To: <[EMAIL PROTECTED]>
References: <[EMAIL PROTECTED]>
        <[EMAIL PROTECTED]>
        <[EMAIL PROTECTED]>
        <[EMAIL PROTECTED]>
        <[EMAIL PROTECTED]>
        <[EMAIL PROTECTED]>
        <[EMAIL PROTECTED]>
        <[EMAIL PROTECTED]>
        <[EMAIL PROTECTED]>
        <[EMAIL PROTECTED]>
Message-ID: <[EMAIL PROTECTED]>

On Wed, May 31, 2006 at 10:12:42AM +0200, Lucas Nussbaum wrote:
> [2006-05-31 01:03:23] >> 201 9
> [2006-05-31 01:03:23] Unhandled error in Deferred:
> [2006-05-31 01:03:23] Traceback (most recent call last):
>         Failure: <type 'int'>: 201

I also just got this one in my log. It happens because PyMSNt tries to
set the status to off-line (CHG FLN). I currently have no fix for this
though.

Best regards,
Lars
From [EMAIL PROTECTED]  Sun Jun  4 07:05:27 2006
From: [EMAIL PROTECTED] (Francois du Toit)
Date: Sun Jun  4 07:05:37 2006
Subject: [py-transports] skype transport
Message-ID: <[EMAIL PROTECTED]>

Does anyone know if there is a skype transport somewhere? I was 
surprised too find very little on google. But surely there must be some 
interest.
From [EMAIL PROTECTED]  Sun Jun  4 08:44:35 2006
From: [EMAIL PROTECTED] (Stian B. Barmen)
Date: Sun Jun  4 08:44:42 2006
Subject: [py-transports] Two more things :)
Message-ID: <[EMAIL PROTECTED]>

First thing is an issue that one of my users are reporting. 

"Sometimes when I use MSN transport on jabber.no I get a message like
this and It logs me off. (when I log in again it log me off and I've to
wait 30 min or longer to try log) On aMSN client or somewhere MSN works
correct. 

Disconnected from MSN servers: [Failure instance: Traceback (failure
with no frames): exceptions.UnicodeDecodeError: 'utf8' codec can't
decode byte 0xa9 in position 1: unexpected code byte
]"

I have enquired him for his passport name so I can search the log files
for more evidence but I thought maybe I would just send it to you, maybe
you already know what it is? Also I dont know which rev this was, but I
guess 166 or 170. 

Number two is something that I noticed yesterday. I have used the new
MSN Live beta messenger, and so has a few of my friends. One of these
sent me an offline message the 22 of may and I have not been online with
the MSN Live client in quite some time. Yesterday I logged on the Live
client and then I got the old offline message. So it seems the MSN
transport does not handle the MSN Live offline messages at all, it just
does not get delivered. 

My guess would be that the Live client does some kind of discovery of
these messages, and pymsnt just listens for incoming events. Support for
these offline messages would be good to implement before MS releases the
new client or else jabber users will loose a lot of offline messages
from their contacts. 

Sorry for the lengthy mail :)

Best regards
Stian B. Barmen

Reply via email to