I have been unpacking binary using python 2.7 on windows for months, but when I transferred to linux python 2.7 I get a value error.
I am using the standard struct.unpack_from function, with the option "L" for unsigned long structure. (https://docs.python.org/2/library/struct.html)
When I change the structure to "I" for unsigned integer I don't get the value error, but I'm wary of using this. The closest problem I could find similar to mine: Problems with python 2.4 and 2.4.4 in struct.unpack and win/lin
Is there a way to make sure I get the same implementation of data types between the windows and linux compilers?
EDIT: For future readers who have encountered a similar problem. If you are using long on windows and switch to Linux, the data types consist of a different number of bytes between the two operating systems. Long (unsigned) on windows is 4 bytes, but 8 on linux. Switching to unsigned int worked for me.