dutchcoders / dutchcoders/extract-riff
UnicodeDecodeError
- Dominant language
- Python
- Stars
- 11
- Forks
- 3
- PR merge metrics
- No merged PRs in 30d
Description
I'm currently trying to extract files from the ISLE.SI which gives me this error after a while:
```
7c0e000000000100a2926b000000000000000000000000000000000000000000000000000000000000000000989a63000000
4d784f66
Traceback (most recent call last):
File ".\test.py", line 207, in
extract(args.paths, args.output)
File ".\test.py", line 47, in extract
for subchunk in subchunk_iter:
File "D:\Downloads\LegoIslandRip\extract-riff-master\lego_extract\__init__.py", line 63, in subchunks
logger.debug ("{0} {1} {2}".format(subchunk.signature, subchunk.block_size, binascii.hexlify(subchunk.data[:50].encode('utf-8'))))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xa2 in position 8: ordinal not in range(128)
```
Commenting out this line goes to the next instance of binascii.hexlify. Other SI files seem to work.
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the failure while extracting the reported ISLE.SI file, then inspect lego_extract/__init__.py at line 63 and the logging around subchunk.data. Check why the non-ASCII byte causes the extraction to stop; done means extraction proceeds past this subchunk without the reported UnicodeDecodeError and other SI files still work.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100