Linux to Windows porting question
__peter__ at web.de
Tue Sep 6 20:57:12 CEST 2005
SHELTRAW, DANIEL wrote:
> I am trying to port some code to Windows that works fine under Linux. The
> offending line is:
> blk = fromstring(f_fid.read(BLOCK_LEN),
> 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.
Is the file f_fid opened in binary mode?
More information about the Python-list