Re: Mod Difficulties
Posted: Wed Nov 14, 2012 5:52 pm
I would suspect that without admin priviledges that maybe GMM wouldn't have permission to unpack the .dat files or rewrite it later. It's just a precaution though and might not be the cause of the issue.
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.
Code: Select all
size, l_filename = struct.unpack('<LL', self.f.read(8))
struct.error: unpack requires a string argument of length 8
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.