GraylinKim / sc2reader

A python library that extracts data from various Starcraft II resources to power tools and services for the SC2 community. Who doesn't want to hack on the games they play?
http://sc2reader.readthedocs.org
MIT License
413 stars 85 forks source link

struct.error: unpack requires a buffer of 4 bytes #207

Open junmoxiaoyexiu opened 4 years ago

junmoxiaoyexiu commented 4 years ago

Traceback (most recent call last): File "C:\Users\RAINGM\AppData\Local\Programs\Python\Python38-32\lib\site-packages\jishaku\cog_base.py", line 489, in jsk_python async for send, result in AsyncSender(executor): File "C:\Users\RAINGM\AppData\Local\Programs\Python\Python38-32\lib\site-packages\jishaku\functools.py", line 109, in _internal value = await base.asend(self.send_value) File "C:\Users\RAINGM\AppData\Local\Programs\Python\Python38-32\lib\site-packages\jishaku\repl\compilation.py", line 137, in traverse async for send, result in AsyncSender(func(*self.args)): File "C:\Users\RAINGM\AppData\Local\Programs\Python\Python38-32\lib\site-packages\jishaku\functools.py", line 109, in _internal value = await base.asend(self.send_value) File "", line 14, in _repl_coroutine File "C:\Users\RAINGM\AppData\Local\Programs\Python\Python38-32\lib\site-packages\sc2reader\factories\sc2factory.py", line 85, in load_replay return self.load(Replay, source, options, new_options) File "C:\Users\RAINGM\AppData\Local\Programs\Python\Python38-32\lib\site-packages\sc2reader\factories\sc2factory.py", line 143, in load return self._load(cls, resource, filename=filename, options=options) File "C:\Users\RAINGM\AppData\Local\Programs\Python\Python38-32\lib\site-packages\sc2reader\factories\sc2factory.py", line 152, in _load obj = cls(resource, filename=filename, factory=self, options) struct.error: unpack requires a buffer of 4 bytes

this error is not in all replays