Issue 63: Debian Etch & PyICQt
Status:  Invalid
Owner:
Closed:  Jan 2008
Reported by jadest...@gmail.com, Dec 9, 2007
 Posted by Z_God at 2007-04-13 00:19:33

I just upgraded to Debian Etch. It seems PyICQt didn't survive. I can't connect
& get this exception:

[2007-01-23 16:03:34] Main loop terminated.
[2007-04-13 02:04:26] Traceback (most recent call last):
          File
"/usr/lib/python2.4/site-packages/twisted/internet/defer.py", line
267, in unpause
            self._runCallbacks()
          File
"/usr/lib/python2.4/site-packages/twisted/internet/defer.py", line
307, in _runCallbacks
            self.result = callback(self.result, *args, **kw)
          File
"/usr/lib/python2.4/site-packages/twisted/internet/defer.py", line
271, in _continue
            self.unpause()
          File
"/usr/lib/python2.4/site-packages/twisted/internet/defer.py", line
267, in unpause
            self._runCallbacks()
        --- <exception caught here> ---
          File
"/usr/lib/python2.4/site-packages/twisted/internet/defer.py", line
307, in _runCallbacks
            self.result = callback(self.result, *args, **kw)
          File "/usr/share/jabber-pyicq/src/legacy/icqt.py", line 400,
in gotBuddyList
            self.readGroup(l[0])
          File "/usr/share/jabber-pyicq/src/legacy/icqt.py", line 379,
in readGroup
            self.readGroup(member.users, parent=member)
          File "/usr/share/jabber-pyicq/src/legacy/icqt.py", line 389,
in readGroup
            self.oscarcon.legacyList.updateSSIContact(member.name, nick=unick)
          File "/usr/share/jabber-pyicq/src/legacy/buddies.py", line
230, in updateSSIContact
            self.session.pytrans.xdb.setListEntry("roster",
self.session.jabberID, contact.lower(),
payload=self.xdbcontacts[contact.lower()])
          File "/usr/share/jabber-pyicq/src/xdb/mysql.py", line 173,
in setListEntry
            c.execute("INSERT INTO
list_attributes(owner,type,jid,attribute,value)
VALUES('%s','%s','%s','%s','%s')" % (jabberID, type, legacyID, p,
payload[p].replace("'", "\\'")))
          File "/usr/lib/python2.4/site-packages/MySQLdb/cursors.py",
line 146, in execute
            query = query.encode(charset)
        exceptions.UnicodeEncodeError: 'latin-1' codec can't encode character
u'\u2605' in position 133: ordinal not in range(256)

Posted by Z_God at 2007-04-14 21:23:53

Seems I hacked things at one point.

Adding charset="utf8", to /usr/share/jabber-pyicq/src/xdb/mysql.py for
the connection like it's done in Subversion will fix this.

Sorry for the spam, this bug should be closed.


Jan 19, 2008
Project Member #1 d...@jabber.fsinf.de
(No comment was entered for this change.)
Status: Invalid