View Single Post
Old 07-07-2020, 01:31 AM   #433
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 47,038
Karma: 169810634
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by DiapDealer View Post
Give this version a whirl on that book (same version number as the last test version ... sorry).
This version unpacked the .mobi file without giving me a visible error. The same 40 images in the Images directory. Then I tried debug mode. Sheesh, it generated a mass of errors.

Spoiler:
Code:
stdout+stderr from file dialog helper: ['', '']
piped data from file dialog helper: ['O\xcc\x93Y\xfe\x9b\xf1l\xa4+\x02-\x98)q\xf4\x14P\x82\x9e2\x80\xe8b\x0e\x01\xbcA\xe4%\x96o', 'C:\\Users\\David\\Desktop\\Outies']
Palm DB type: BOOKMOBI, 91 sections.
Warning: Bad key, size, value combination detected in EXTH  406 16 0000000000000000
Unpacking a Mobipocket 7 book...
Processing Mobipocket 7 section of book...
Mobi Version: 7
Codec: utf-8
Title: His Holiness the Dalai Lama (Enhanced Edition)
EXTH Title: His Holiness The Dalai Lama (Enhanced Edition): A Message of Spiritual Wisdom
Palmdoc compression
Unpacking images, resources, fonts, etc
Failed to extract font: font00030 from section 30
Failed to extract font: font00031 from section 31
Failed to extract font: font00032 from section 32
Failed to extract font: font00033 from section 33
Failed to extract font: font00034 from section 34
Failed to extract font: font00035 from section 35
Failed to extract font: font00036 from section 36
Failed to extract font: font00037 from section 37
Extracting image: image00038.gif from section 38
Warning: Section 39 does not contain a recognised resource
Extracting image: image00040.jpeg from section 40
Extracting image: image00041.jpeg from section 41
Extracting image: image00042.jpeg from section 42
Warning: Section 43 does not contain a recognised resource
Extracting image: image00044.jpeg from section 44
Extracting image: image00045.gif from section 45
Extracting image: image00046.jpeg from section 46
Extracting image: image00047.jpeg from section 47
Extracting image: image00048.jpeg from section 48
Extracting image: image00049.jpeg from section 49
Extracting image: image00050.jpeg from section 50
Extracting image: image00051.jpeg from section 51
Extracting image: image00052.jpeg from section 52
Extracting image: image00053.jpeg from section 53
Extracting image: image00054.jpeg from section 54
Warning: Section 55 does not contain a recognised resource
Extracting image: image00056.jpeg from section 56
Extracting image: image00057.jpeg from section 57
Extracting image: image00058.jpeg from section 58
Extracting image: image00059.jpeg from section 59
Extracting image: image00060.jpeg from section 60
Extracting image: image00061.jpeg from section 61
Extracting image: image00062.jpeg from section 62
Extracting image: image00063.jpeg from section 63
Extracting image: image00064.gif from section 64
Warning: Section 65 does not contain a recognised resource
Extracting image: image00066.jpeg from section 66
Warning: Section 67 does not contain a recognised resource
Extracting image: image00068.jpeg from section 68
Warning: Section 69 does not contain a recognised resource
Extracting image: image00070.jpeg from section 70
Warning: Section 71 does not contain a recognised resource
Extracting image: image00072.jpeg from section 72
Extracting image: image00073.jpeg from section 73
Extracting image: image00074.jpeg from section 74
Warning: Section 75 does not contain a recognised resource
Extracting image: image00076.jpeg from section 76
Warning: Section 77 does not contain a recognised resource
Extracting image: image00078.jpeg from section 78
Extracting image: image00079.gif from section 79
Extracting image: cover00080.jpeg from section 80
Extracting image: image00081.jpeg from section 81
Extracting image: image00082.jpeg from section 82
Extracting image: image00083.jpeg from section 83
Extracting image: image00084.jpeg from section 84
Extracting image: image00085.jpeg from section 85
Extracting image: image00087.jpeg from section 87
Unpacking raw markup language
Write ncx
Find link anchors
Insert data into html
Insert hrefs into html
Remove empty anchors from html
Insert image references into html
Error: Referenced image 18 was not recognized as a valid image
Error: Referenced image 28 was not recognized as a valid image
Error: Referenced image 30 was not recognized as a valid image
Error: Referenced image 32 was not recognized as a valid image
Error: Referenced image 34 was not recognized as a valid image
Building an opf for mobi7/azw4.
Error: Cover image 50 was not recognized as a valid image
Number given for Cover Thumbnail is out of range: 57
Error: Cover Thumbnail image 57 was not recognized as a valid image
stdout+stderr from file dialog helper: ['', '']
piped data from file dialog helper: ['\xc7\xd5\x9fj\xaa\xbf\xae\xd3\x99{/,\xc6C\xa9\x90\xbb\xacG{3\xefoR@\xb1\x12N_\xd3n\xa9', 'C:\\Users\\David\\Desktop\\Outies']
Palm DB type: BOOKMOBI, 91 sections.
Warning: Bad key, size, value combination detected in EXTH  406 16 0000000000000000


Also I modified line 35 in action.py from:
Code:
    dont_add_to = frozenset(['menubar-device', 'toolbar-device', 'context-menu-device'])
to:
Code:
    dont_add_to = frozenset(['context-menu-device'])
and I can add it to the main toolbar with device connected. Thanks again for that bit of advice.
DNSB is online now   Reply With Quote