Unpacking the structures

Dan Stromberg drsalists at gmail.com
Thu Dec 19 01:15:53 EST 2013


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?



More information about the Python-list mailing list