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