Unpacking the structures

smilesonisamal at gmail.com smilesonisamal at gmail.com
Thu Dec 19 05:32:52 CET 2013


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?

I checked the following link:
http://docs.python.org/2/library/xdrlib.html
But there is no way to packing/unpacking the structure data type.

Regards
Pradeep



More information about the Python-list mailing list