/<my_absolute_path>/bin/python3 /<my_absolute_path>/test.py
could not fast parse; falling back
Traceback (most recent call last):
File "/<my_absolute_path>/lib/python3.9/site-packages/construct/core.py", line 2784, in _parse
return self.subcon._parse(stream, context, path)
File "/<my_absolute_path>/lib/python3.9/site-packages/construct/core.py", line 867, in _parse
subobj = sc._parse(stream, context, path)
File "/<my_absolute_path>/lib/python3.9/site-packages/construct/core.py", line 867, in _parse
subobj = sc._parse(stream, context, path)
File "/<my_absolute_path>/lib/python3.9/site-packages/construct/core.py", line 1936, in _parse
raise ConstError("expected %r but parsed %r" % (self.value, obj))
construct.core.ConstError: expected b'`\n' but parsed b'\x00\x00'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/<my_absolute_path>/lib/python3.9/site-packages/mgz/summary/full.py", line 73, in __init__
self._header = mgz.header.parse_stream(self._handle)
File "/<my_absolute_path>/lib/python3.9/site-packages/construct/core.py", line 171, in parse_stream
return self._parse(stream, context2, "(parsing)")
File "/<my_absolute_path>/lib/python3.9/site-packages/construct/core.py", line 867, in _parse
subobj = sc._parse(stream, context, path)
File "/<my_absolute_path>/lib/python3.9/site-packages/construct/core.py", line 295, in _parse
return self.subcon._parse(stream, context, path)
File "/<my_absolute_path>/lib/python3.9/site-packages/construct/core.py", line 867, in _parse
subobj = sc._parse(stream, context, path)
File "/<my_absolute_path>/lib/python3.9/site-packages/construct/core.py", line 295, in _parse
return self.subcon._parse(stream, context, path)
File "/<my_absolute_path>/lib/python3.9/site-packages/mgz/util.py", line 58, in _parse
return self.subcon._parse(new_stream, context, path)
File "/<my_absolute_path>/lib/python3.9/site-packages/construct/core.py", line 357, in _parse
return self.subcon.parse(data, context)
File "/<my_absolute_path>/lib/python3.9/site-packages/construct/core.py", line 158, in parse
return self.parse_stream(BytesIO(data), context, **kw)
File "/<my_absolute_path>/lib/python3.9/site-packages/construct/core.py", line 171, in parse_stream
return self._parse(stream, context2, "(parsing)")
File "/<my_absolute_path>/lib/python3.9/site-packages/construct/core.py", line 867, in _parse
subobj = sc._parse(stream, context, path)
File "/<my_absolute_path>/lib/python3.9/site-packages/construct/core.py", line 2784, in _parse
return self.subcon._parse(stream, context, path)
File "/<my_absolute_path>/lib/python3.9/site-packages/construct/core.py", line 1594, in _parse
obj = self.cases.get(key, self.default)._parse(stream, context, path)
File "/<my_absolute_path>/lib/python3.9/site-packages/construct/core.py", line 2788, in _parse
raise e.__class__("%s\n %s" % (e, path))
construct.core.ConstError: expected b'`\n' but parsed b'\x00\x00'
(parsing) -> de -> de
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/<my_absolute_path>/test.py", line 4, in <module>
s = Summary(data)
File "/<my_absolute_path>/lib/python3.9/site-packages/mgz/summary/__init__.py", line 22, in __call__
return FullSummary(data, playback)
File "/<my_absolute_path>/lib/python3.9/site-packages/mgz/summary/full.py", line 85, in __init__
raise RuntimeError("invalid mgz file: {}".format(e))
RuntimeError: invalid mgz file: expected b'`\n' but parsed b'\x00\x00'
(parsing) -> de -> de
I've removed my actual path to make it a bit more readable.
I don't know what could be causing this, I made a fresh venv for this on Python 3.9.7. I'm using Ubuntu 20.04, in case that might be making a difference. My pip list is pretty bare because this is a new venv but here it is anyway, in case it helps:
The full error I'm getting is:
I've removed my actual path to make it a bit more readable.
I don't know what could be causing this, I made a fresh venv for this on Python 3.9.7. I'm using Ubuntu 20.04, in case that might be making a difference. My pip list is pretty bare because this is a new venv but here it is anyway, in case it helps:
Do you know what might be causing this strange byte parsing error? I would really appreciate the help!