| Issue 176: | user disconnect with error: <type 'exceptions.ZeroDivisionError'>: float division | |
| 2 people starred this issue and may be notified of changes. | Back to list |
What steps will reproduce the problem? 1. ejabberd 2.0.1_p2 2. pyicqt 0.8.1.1 3. gentoo 2008 registered user - 154 online user - 64 One user when connected to pyicqt receive offline messages from aol server, but after - receiving error and disconnecting: ICQ connection lost! Reason: [Failure instance: Traceback (failure with no frames): <type 'exceptions.ZeroDivisionError'>: float division Other users work with pyicqt without errors.
May 6, 2009
#1
jp.kura...@gmail.com
May 6, 2009
I've got this traceback:
Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/twisted/python/log.py", line 48, in
callWithLogger
return callWithContext({"system": lp}, func, *args, **kw)
File "/usr/lib/python2.5/site-packages/twisted/python/log.py", line 33, in
callWithContext
return context.call({ILogContext: newCtx}, func, *args, **kw)
File "/usr/lib/python2.5/site-packages/twisted/python/context.py", line 59, in
callWithContext
return self.currentContext().callWithContext(ctx, func, *args, **kw)
File "/usr/lib/python2.5/site-packages/twisted/python/context.py", line 37, in
callWithContext
return func(*args,**kw)
--- <exception caught here> ---
File "/usr/lib/python2.5/site-packages/twisted/internet/epollreactor.py", line 197,
in _doReadOrWrite
why = selectable.doRead()
File "/usr/lib/python2.5/site-packages/twisted/internet/tcp.py", line 362, in doRead
return self.protocol.dataReceived(data)
File "/opt/pyicqt-0.8.1.3/src/tlib/oscar.py", line 663, in dataReceived
state=func(flap)
File "/opt/pyicqt-0.8.1.3/src/tlib/oscar.py", line 798, in oscar_Data
func(snac)
File "/opt/pyicqt-0.8.1.3/src/tlib/oscar.py", line 2005, in oscar_15_03
umessage, encoding =
utils.guess_encoding(v[24:24+messagelen-1],self.defaultEncoding, mode=1)
File "/opt/pyicqt-0.8.1.3/src/utils.py", line 459, in guess_encoding
return detect_encoding(data, defaultencoding)
File "/opt/pyicqt-0.8.1.3/src/utils.py", line 492, in detect_encoding
encoding = chardet_utf.detect(data)['encoding']
File "/opt/pyicqt-0.8.1.3/src/chardet_utf/__init__.py", line 24, in detect
u.feed(aBuf)
File "/opt/pyicqt-0.8.1.3/src/chardet_utf/universaldetector.py", line 98, in feed
coeff_e = float(odd)/float(even)
exceptions.ZeroDivisionError: float division
May 8, 2009
Please, check with http://py-transports.googlegroups.com/web/pyicqt-080509.tar.gz
May 29, 2009
(No comment was entered for this change.)
Status:
Fixed
|