* John O'Hagan <[email protected]>, 2012-05-09, 16:41:
Traceback (most recent call last):
File "/usr/bin/songwrite", line 134, in <module>
import main
File "/usr/bin/../share/songwrite/main.py", line 21, in <module>
import globdef, song, player, ui
File "/usr/bin/../share/songwrite/song.py", line 1352, in <module>
END_TRACK = struct.pack(">bbb", 0xFF, 0x2F, 0x00)
struct.error: byte format requires -128 <= number <= 127
Right, it should be "B" (unsigned byte, 0..255) not "b" (signed byte,
-128..+127). Python 2.6 tolerated overflows in struct.pack (with
deprecation warnings), but Python 2.7 throws an exception instead.
--
Jakub Wilk
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]