Issue 1416544: Problem with SOAPpy on 64-bit systems (original) (raw)

Python 2.4.2 (#2, Sep 30 2005, 22:19:27) [GCC 4.0.2 20050808 (prerelease) (Ubuntu 4.0.1-4ubuntu8)] on linux2

I get a traceback in SOAPpy:

File "/usr/lib/python2.4/site-packages/SOAPpy/Parser.py", line 852, in convertToBasicTypes if fpconst.isNaN(d): File "/usr/lib/python2.4/site-packages/SOAPpy/fpconst.py", line 90, in isNaN return (_exponent(value)==0x7ff and _mantissa(value)!=0) File "/usr/lib/python2.4/site-packages/SOAPpy/fpconst.py", line 72, in _exponent ll = _double_as_longs(dval) File "/usr/lib/python2.4/site-packages/SOAPpy/fpconst.py", line 51, in _double_as_longs tmp = struct.unpack('ll',struct.pack('d', dval)) error: unpack str size does not match format

I'm on a AMD64 system. Thus 'l', which long, is 64-bits wide, that's why this fails.

Changing 'll' to 'ii' seems to fix the problem, but I'm not expert on SOAP :)