Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #62377

Re: Unpacking the structures

References <90e2b0ab-700a-4fe9-bc08-fa8fc21e292f@googlegroups.com>
Date 2013-12-18 22:15 -0800
Subject Re: Unpacking the structures
From Dan Stromberg <drsalists@gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.4401.1387433761.18130.python-list@python.org> (permalink)

Show all headers | View raw


On Wed, Dec 18, 2013 at 8:32 PM,  <smilesonisamal@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?

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Unpacking the structures smilesonisamal@gmail.com - 2013-12-18 20:32 -0800
  Re: Unpacking the structures Dan Stromberg <drsalists@gmail.com> - 2013-12-18 22:15 -0800

csiph-web