Quote:
Originally Posted by KevinH
Hi Nick,
Bug was ...
Code:
dataout = dataout[:first_pdb_record+i*8]+\
struct.pack('>L',ofs)+struct.pack('L',it)+\
dataout[first_pdb_record+i*8+8:]
needs a '>L', not an plain 'L' to keep things properly big endian
Code:
dataout = dataout[:first_pdb_record+i*8]+\
struct.pack('>L',ofs)+struct.pack('>L',it)+\
dataout[first_pdb_record+i*8+8:]
once I made those changes then my earlier error message goes away.
Take care,
KevinH
|
Yes, I just discovered that, plus another issue so get the new mobi_split.py from my previous msg, both issues fixed as well as the others you mentioned