Code: Select all
size, l_filename = struct.unpack('<LL', self.f.read(8))
struct.error: unpack requires a string argument of length 8
This is the real cause of the issue. I don't really know python enough to help you here but it seems like the call to struct.unpack() expects a .. well, string of length 8. It's getting '<LL' and self.f.read(8) ... seeing how I don't know python, this might even be a legitimate call (if we presume that read(8) reads 8 characters) and you might just be using a very old version of python and should update it?
Did you try that? argparse was the first hint of this because they say it's included in the standard library, and is missing on very old distros.