Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error extracting #93

Open
markyy1991 opened this issue Feb 9, 2024 · 0 comments
Open

Error extracting #93

markyy1991 opened this issue Feb 9, 2024 · 0 comments

Comments

@markyy1991
Copy link

Hello all, im trying to unpack .ubi files and i get this error, any help? the ecc has previusly fixed.

Error description:

ubireader_extract_files file.ubi
Traceback (most recent call last):
File "/usr/bin/ubireader_extract_files", line 152, in
ubi_obj = ubi(ufile_obj)
^^^^^^^^^^^^^^
File "/home/kali/.local/lib/python3.11/site-packages/ubireader/ubi/init.py", line 146, in init
super(ubi, self).init(ubi_file)
File "/home/kali/.local/lib/python3.11/site-packages/ubireader/ubi/init.py", line 46, in init
self._blocks = extract_blocks(self)
^^^^^^^^^^^^^^^^^^^^
File "/home/kali/.local/lib/python3.11/site-packages/ubireader/ubi/block/init.py", line 131, in extract_blocks
blk.data_crc = (~crc32(buf[blk.ec_hdr.data_offset:blk.ec_hdr.data_offset+blk.vid_hdr.data_size]) & UBI_CRC32_INIT)
^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'data_size'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant