On Wed, Dec 18, 2013 at 8:32 PM, <smilesonisamal at gmail.com> wrote: > > Hi all, > While performing the packing/unpacking of xdr structures of rpc I get an error as following. > > > x = struct.unpack('>L', data)[0] struct.error: unpack requires a string argument of length 4. > > Can anybody help me in this regard? What does print(len(data)) say?