TypeError: data type '>u16' not understood #93
Replies: 2 comments
-
Hi @nischayn99, Your "Time" field is defined as a 128 bit unsigned, which would require a 16-byte integer to represent. There is no native type in x86/x86_64 large enough to support this, which is why you are seeing it fail to respond to the '>u16' data type. What I recommend you do is decode this field as an array of bytes, and then use a custom converter to convert them to an instance of a class that supports unlimited length integers. I believe in Python 3.x the Some more info on unlimited length integers in python: |
Beta Was this translation helpful? Give feedback.
-
Thank you, @ddasilva |
Beta Was this translation helpful? Give feedback.
-
Hi @ddasilva ,
I'm getting this error 'TypeError: data type '>u16' not understood' when I try to parse for one Packet Structure. I've attached the code and testfile for your reference. Please change the filename in Line 6 accordingly.
Thanks,
Nischay
MISE TEST.zip
Beta Was this translation helpful? Give feedback.
All reactions