Thanks for your reply. I am rather new to Python so please excuse my
newbbie questions. I have rolled back to 1.59. Today PyYIMt dropped
offline and I have the following messages in the error log. Can you tell me
what I need to do now?
Mon 30 Oct 2006 06:45:45 - CVS 1.59
Traceback (most recent call last):
File "./yahoo.py", line 1296, in ?
connection.Process(1)
File "/usr/lib/python2.3/site-packages/xmpp/dispatcher.py", line 302, in
dispatch
handler['func'](session,stanza)
File "./yahoo.py", line 685, in xmpp_iq_register_get
m.setQueryPayload([Node('instructions', payload = 'Please provide your
Yahoo! username and password'),Node('username',payload=
username),Node('password',payload=password),Node('registered')])
File "/usr/lib/python2.3/site-packages/xmpp/simplexml.py", line 75, in
__init__
for i in payload:
TypeError: iteration over non-sequence
Mon 30 Oct 2006 12:04:34 - CVS 1.59
Traceback (most recent call last):
File "./yahoo.py", line 1296, in ?
connection.Process(1)
File "/usr/lib/python2.3/site-packages/xmpp/dispatcher.py", line 302, in
dispatch
handler['func'](session,stanza)
File "./yahoo.py", line 685, in xmpp_iq_register_get
m.setQueryPayload([Node('instructions', payload = 'Please provide your
Yahoo! username and password'),Node('username',payload=
username),Node('password',payload=password),Node('registered')])
File "/usr/lib/python2.3/site-packages/xmpp/simplexml.py", line 75, in
__init__
for i in payload:
TypeError: iteration over non-sequence
Mon 30 Oct 2006 15:09:33 - CVS 1.59
Traceback (most recent call last):
File "./yahoo.py", line 1296, in ?
connection.Process(1)
File "/usr/lib/python2.3/site-packages/xmpp/dispatcher.py", line 302, in
dispatch
handler['func'](session,stanza)
File "./yahoo.py", line 344, in xmpp_presence
yobj =
ylib.YahooCon(conf['username'].encode('utf-8'),conf['password'].encode('utf-
8'), fromstripped,config.host,config.dumpPr
otocol)
AttributeError: 'NoneType' object has no attribute 'encode'
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Norman
Rasmussen
Sent: Wednesday, October 11, 2006 5:04 PM
To: PyTransports Discussion
Subject: Re: [py-transports] PyYIMt Traceback errors
doh, rsplit is only in python 2.4.
For now either upgrade to pyothn 2.4, rollback to 1.59 (it was broken in
1.60), or replace the YIDDecode function (line 38) with the old
copy:
def YIDDecode(yid):
return yid.replace('%','@')
On 10/11/06, Les Seigneur <[EMAIL PROTECTED]> wrote:
> I am using the CVS version of PyYIMt with Jabberd2.0s10 on Red Hat
> Enterprise Linux 4.. I am seeing the following error messages when I
> register with PyYIMT and when I try to add a Yahoo! user. I have been
> running PyYIMt for a couple of weeks and have not seen this error
> before. I was able to add a Yahoo user and chat but now I can't. It
> seems to have started after the last CVS update. Can anyone tell me
> what might be going wrong?
>
> CVS version from yahoo.py:
> # $Id: yahoo.py,v 1.61 2006/10/08 21:01:51 normanr Exp $ version =
> 'CVS ' + '$Revision: 1.61 $'.split()[1]
>
>
>
> Wed 11 Oct 2006 14:39:56 - CVS 1.61 Traceback (most recent call last):
> File "./yahoo.py", line 1303, in ?
> connection.Process(1)
> File "/usr/lib/python2.3/site-packages/xmpp/dispatcher.py", line
> 302, in dispatch
> handler['func'](session,stanza)
> File "./yahoo.py", line 241, in xmpp_presence
> yid = YIDDecode(event.getTo().getNode())
> File "./yahoo.py", line 39, in YIDDecode
> return '@'.join(yid.rsplit('%',1))
> AttributeError: 'str' object has no attribute 'rsplit'
> Wed 11 Oct 2006 14:39:56 - CVS 1.61
> Traceback (most recent call last):
> File "./yahoo.py", line 1303, in ?
> connection.Process(1)
> File "/usr/lib/python2.3/site-packages/xmpp/dispatcher.py", line
> 302, in dispatch
> handler['func'](session,stanza)
> File "./yahoo.py", line 241, in xmpp_presence
> yid = YIDDecode(event.getTo().getNode())
> File "./yahoo.py", line 39, in YIDDecode
> return '@'.join(yid.rsplit('%',1))
> AttributeError: 'str' object has no attribute 'rsplit'
>
> Les Seigneur
> [EMAIL PROTECTED]
> [EMAIL PROTECTED]
>
>
> _______________________________________________
> py-transports mailing list
> [email protected]
> http://www.modevia.com/cgi-bin/mailman/listinfo/py-transports
>
--
- Norman Rasmussen
- Email: [EMAIL PROTECTED]
- Home page: http://norman.rasmussen.co.za/
_______________________________________________
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