Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#1 Problem in 64-bit systems

open
nobody
None
5
2006-04-25
2006-04-25
Daniel Holbach
No

Forwarded from:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1416544&group_id=5470
(which got filed errorenously at
http://sourceforge.net/tracker/index.php?func=detail&aid=1417352&group_id=26590&atid=387667
as well)

Problem with SOAPpy on 64-bit systems
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 :)

Discussion