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

unpack_from requires a buffer of at least #51

Open
Edwina920 opened this issue Oct 18, 2024 · 0 comments
Open

unpack_from requires a buffer of at least #51

Edwina920 opened this issue Oct 18, 2024 · 0 comments

Comments

@Edwina920
Copy link

Conversion log:

Error: unpack_from requires a buffer of at least 199606 bytes for unpacking 199528 bytes at offset 78 (actual buffer size is 13749)
Traceback (most recent call last):
File "E:\KindleUnpack-083\KindleUnpack.pyw", line 370, in unpackEbook
kindleunpack.unpackBook(infile, outdir, apnxfile, epubversion, use_hd, dodump=dump, dowriteraw=writeraw, dosplitcombos=splitcombos)
File "E:\KindleUnpack-083\lib\kindleunpack.py", line 880, in unpackBook
sect = Sectionizer(infile)
^^^^^^^^^^^^^^^^^^^
File "E:\KindleUnpack-083\lib\mobi_sectioner.py", line 56, in init
sectionsdata = struct.unpack_from(bstr('>%dL' % (self.num_sections*2)), self.data, 78) + (self.filelength, 0)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
struct.error: unpack_from requires a buffer of at least 199606 bytes for unpacking 199528 bytes at offset 78 (actual buffer size is 13749)

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