tjvr / kurt

Python library for reading/writing MIT's Scratch file format.
https://kurt.tjvr.org
GNU General Public License v3.0
86 stars 24 forks source link

Parsing on Windows #1

Closed tjvr closed 12 years ago

tjvr commented 12 years ago

Seems to be Windows-specific.

Traceback (most recent call last):
  File "<pyshell#6>", line 1, in <module>
    project = ScratchProjectFile('ciao.sb')
... long error, related to length of InfoSize Dictionary...
    raise ArrayError("expected %d, found %d" % (count, c), ex)
ArrayError: ('expected 34, found 16', ArrayError('expected 256, found 8', FieldError(FieldError('expected 2, found 1',),)))
tjvr commented 12 years ago

Turns out I wasn't opening the files in binary mode ("rb", "wb") -_-