Linux to Windows porting question

SHELTRAW, DANIEL sheltraw at
Tue Sep 6 20:14:09 CEST 2005

Hello Pyhton Listees

I am trying to port some code to Windows that works fine under Linux. The offending line

    blk = fromstring(, num_type).byteswapped().astype(Float32).tostring()

The error I get is:

    ValueError: string size must be a multiple of element size

Does anyone have an idea where the problem might be? BLOCK_LEN is specified in bytes
and num_type is Int32.


More information about the Python-list mailing list