Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Plugins

Notices

Reply
 
Thread Tools Search this Thread
Old 09-17-2020, 11:54 PM   #436
bballuk
Member
bballuk began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Feb 2015
Device: Kindle Paperwhite
Error

So I was getting this error on a book.

Code:
TypeError: unicode argument expected, got 'str'
So I tried version 82.2 you posted above and now I'm getting this error. Do you need to know name of book or any other information to help with solving error please let me know.

Code:
calibre, version 4.23.0
ERROR: KindleUnpack - The Plugin v0.82.2: list index out of range

Traceback (most recent call last):
  File "calibre_plugins.kindleunpack_plugin.action", line 282, in extract_element
  File "calibre_plugins.kindleunpack_plugin.mobi_stuff", line 126, in unpackEPUB
  File "calibre_plugins.kindleunpack_plugin.kindleunpackcore.kindleunpack", line 925, in unpackBook
  File "calibre_plugins.kindleunpack_plugin.kindleunpackcore.kindleunpack", line 842, in process_all_mobi_headers
  File "calibre_plugins.kindleunpack_plugin.kindleunpackcore.kindleunpack", line 484, in processMobi8
  File "calibre_plugins.kindleunpack_plugin.kindleunpackcore.mobi_k8proc", line 443, in getGuideText
IndexError: list index out of range
bballuk is offline   Reply With Quote
Old 09-18-2020, 09:01 AM   #437
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 28,664
Karma: 205039118
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by bballuk View Post
So I tried version 82.2 you posted above and now I'm getting this error. Do you need to know name of book or any other information to help with solving error please let me know.

Code:
calibre, version 4.23.0
ERROR: KindleUnpack - The Plugin v0.82.2: list index out of range

Traceback (most recent call last):
  File "calibre_plugins.kindleunpack_plugin.action", line 282, in extract_element
  File "calibre_plugins.kindleunpack_plugin.mobi_stuff", line 126, in unpackEPUB
  File "calibre_plugins.kindleunpack_plugin.kindleunpackcore.kindleunpack", line 925, in unpackBook
  File "calibre_plugins.kindleunpack_plugin.kindleunpackcore.kindleunpack", line 842, in process_all_mobi_headers
  File "calibre_plugins.kindleunpack_plugin.kindleunpackcore.kindleunpack", line 484, in processMobi8
  File "calibre_plugins.kindleunpack_plugin.kindleunpackcore.mobi_k8proc", line 443, in getGuideText
IndexError: list index out of range
It's not a KFX book, is it? KindleUnpack can't deconstruct those. You can PM me the title/author if you like, but if it's got DRM, it may take a while. I'm transitioning to a new computer and I don't have the ability (nor much of a desire anymore, quite frankly) to remove DRM from Kindlebooks. So if it's not available to purchase without DRM, I might not get to it for quite a while.

If you know it's not a KFX book, and you're not using the Calibre beta, Try dropping back to the KindleUnpack version before the latest official one. That would be v 0.81.5 available from my github repository: https://github.com/dougmassay/kindle...es/tag/v0.81.5
DiapDealer is online now   Reply With Quote
Old 09-25-2020, 03:54 AM   #438
bballuk
Member
bballuk began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Feb 2015
Device: Kindle Paperwhite
media

I've kind of fixed it. I ended up just converting it using Calibre instead of using KindleUnpack. The book had some kind of media elements, like built in audio clips. Once converted they were removed but actually ebook it's self was all there so that works for me.
bballuk is offline   Reply With Quote
Old 09-25-2020, 08:01 AM   #439
shotsky
Enthusiast
shotsky began at the beginning.
 
Posts: 39
Karma: 10
Join Date: Jul 2012
Device: none
KFX solution

For those that do get kfx ebooks, there is a fairly simple solution. Download the 1.24 version of Kindle4pc or mac and turn off automatic updates. When you download from Amazon, they will be in the azw format. I've been doing this for about 2 years now. Version 1.25 or later are the versions that support kfx.
shotsky is offline   Reply With Quote
Old 09-25-2020, 04:31 PM   #440
jhowell
Grand Sorcerer
jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.
 
jhowell's Avatar
 
Posts: 7,099
Karma: 92190113
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
I received an error using the "Split FK8/MOBI..." function in version 0.82.2 of the plugin running under calibre 5.0.1.

This function works properly under calibre 4.23.

Quote:
calibre, version 5.0.1
ERROR: KindleUnpack - The Plugin v0.82.2: name 'file' is not defined

Traceback (most recent call last):
File "calibre_plugins.kindleunpack_plugin.action", line 324, in combo_split
File "calibre_plugins.kindleunpack_plugin.mobi_stuf f", line 138, in writeSplitCombo
NameError: name 'file' is not defined
jhowell is offline   Reply With Quote
Old 09-25-2020, 04:50 PM   #441
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 28,664
Karma: 205039118
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
I'll check it out. Thanks!
DiapDealer is online now   Reply With Quote
Old 09-25-2020, 05:38 PM   #442
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 28,664
Karma: 205039118
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by jhowell View Post
I received an error using the "Split FK8/MOBI..." function in version 0.82.2 of the plugin running under calibre 5.0.1.

This function works properly under calibre 4.23.
Give this version a try. It works for me on both the new calibre and older versions. I had a tacky Python2 only builtin that got overlooked. Fact is, I shouldn't have been using it for python 2 either!

If all seems well, I'll update the official first-post release.


EDIT: Fix incorporated into the official 0.82.3 release available in the first post of this thread. Thanks.

Last edited by DiapDealer; 09-26-2020 at 01:39 PM. Reason: Remove test attachment after incorporating fix in new release
DiapDealer is online now   Reply With Quote
Old 09-25-2020, 05:52 PM   #443
jhowell
Grand Sorcerer
jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.
 
jhowell's Avatar
 
Posts: 7,099
Karma: 92190113
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
Quote:
Originally Posted by DiapDealer View Post
Give this version a try. It works for me on both the new calibre and older versions. I had a tacky Python2 only builtin that got overlooked. Fact is, I shouldn't have been using it for python 2 either!

If all seems well, I'll update the official first-post release.
That fixed it for me.
jhowell is offline   Reply With Quote
Old 09-25-2020, 06:17 PM   #444
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 28,664
Karma: 205039118
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by jhowell View Post
That fixed it for me.
Thanks for reporting back. It was pretty-much a no-brainer fix, so unless I hear of any more problems, I'll make it official soon.
DiapDealer is online now   Reply With Quote
Old 09-26-2020, 09:07 PM   #445
sebaxtianrg
Junior Member
sebaxtianrg began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Sep 2020
Device: Kindle Paperwhite 2
Since Calibre 5.0, the plugin is no longer able to de-DRM .AZW books. I had to downgrade to Calibre 4.23 in order to keep using the plugin.
sebaxtianrg is offline   Reply With Quote
Old 09-26-2020, 09:11 PM   #446
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 28,664
Karma: 205039118
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by sebaxtianrg View Post
Since Calibre 5.0, the plugin is no longer able to de-DRM .AZW books. I had to downgrade to Calibre 4.23 in order to keep using the plugin.
You're in the wrong place. This plugin is not intended to remove drm. There are no plugins hosted at MobileRead that remove drm.
DiapDealer is online now   Reply With Quote
Old 10-22-2020, 06:05 PM   #447
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: 46,737
Karma: 169712580
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Just got a forced update to K4PC 1.30 however the book I downloaded removed the DRM when imported to calibre. When I attempted to use KF8 => Epub, I got the following error:

Spoiler:
Code:
calibre, version 5.3.0
ERROR: Unhandled exception: <b>TypeError</b>:a bytes-like object is required, not 'str'

calibre 5.3 [64bit]  embedded-python: True is64bit: True
Windows-10-10.0.19041-SP0 Windows ('64bit', 'WindowsPE')
('Windows', '10', '10.0.19041')
Python 3.8.5
Windows: ('10', '10.0.19041', 'SP0', 'Multiprocessor Free')
Interface language: None
Successfully initialized third party plugins: DeDRM (7, 0, 0) && Annotations (1, 13, 0) && Baen (1, 2, 0) && Barnes & Noble (1, 2, 16) && Calibre Power Search Plugin (1, 6, 0) && Count Pages (1, 10, 0) && Diaps Editing Toolbag (0, 3, 7) && EpubCheck (0, 2, 3) && EpubMerge (2, 11, 0) && EpubSplit (2, 9, 0) && FanFicFare (3, 24, 0) && Fantastic Fiction (1, 4, 0) && Find Duplicates (1, 8, 3) && Goodreads (1, 5, 1) && Hyphenate This! (0, 1, 3) && Job Spy (1, 0, 187) && Kindle hi-res covers (0, 5, 0) && KindleUnpack - The Plugin (0, 82, 3) && Kobo Books (1, 8, 0) && Kobo Utilities (2, 11, 8) && KoboTouchExtended (3, 4, 1) && Modify ePub (1, 6, 1) && Obok DeDRM (6, 7, 0) && Open With (1, 5, 12) && Quality Check (1, 10, 1) && Resize Cover (1, 1, 0) && ScrambleEbook (0, 4, 5) && SmartEject (2, 3, 0) && Smashwords Metadata (1, 0, 2)
Traceback (most recent call last):
  File "calibre_plugins.kindleunpack_plugin.action", line 283, in extract_element
  File "calibre_plugins.kindleunpack_plugin.mobi_stuff", line 127, in unpackEPUB
  File "calibre_plugins.kindleunpack_plugin.kindleunpackcore.kindleunpack", line 925, in unpackBook
  File "calibre_plugins.kindleunpack_plugin.kindleunpackcore.kindleunpack", line 842, in process_all_mobi_headers
  File "calibre_plugins.kindleunpack_plugin.kindleunpackcore.kindleunpack", line 559, in processMobi8
AttributeError: 'NoneType' object has no attribute 'find'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "calibre_plugins.kindleunpack_plugin.action", line 287, in extract_element
  File "calibre_plugins.kindleunpack_plugin.utilities", line 102, in showErrorDlg
  File "traceback.py", line 163, in print_exc
  File "traceback.py", line 105, in print_exception
TypeError: a bytes-like object is required, not 'str'


The results from trying this in Calibre 4.23 portable was similar:
Spoiler:
Code:
calibre, version 4.23.0
ERROR: KindleUnpack - The Plugin v0.82.3: 'NoneType' object has no attribute 'find'

Traceback (most recent call last):
  File "calibre_plugins.kindleunpack_plugin.action", line 283, in extract_element
  File "calibre_plugins.kindleunpack_plugin.mobi_stuff", line 127, in unpackEPUB
  File "calibre_plugins.kindleunpack_plugin.kindleunpackcore.kindleunpack", line 925, in unpackBook
  File "calibre_plugins.kindleunpack_plugin.kindleunpackcore.kindleunpack", line 842, in process_all_mobi_headers
  File "calibre_plugins.kindleunpack_plugin.kindleunpackcore.kindleunpack", line 559, in processMobi8
AttributeError: 'NoneType' object has no attribute 'find'


Uninstalling 1.30 and reverting back to 1.29 made no difference in either version of calibre. For what it's worth, attemping to unpack the KF8 also abended in line 559.

One item that I forgot to add is this book is a sample.

Last edited by DNSB; 10-22-2020 at 06:23 PM. Reason: Added comment about book being a sample
DNSB is offline   Reply With Quote
Old 10-22-2020, 06:24 PM   #448
jhowell
Grand Sorcerer
jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.
 
jhowell's Avatar
 
Posts: 7,099
Karma: 92190113
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
Quote:
Originally Posted by DNSB View Post
Just got a forced update to K4PC 1.30 however the book I downloaded removed the DRM when imported to calibre. When I attempted to use KF8 => Epub, I got the following error: ...
I am curious. Would you mind sharing the ASIN of the book.
jhowell is offline   Reply With Quote
Old 10-22-2020, 06:34 PM   #449
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: 46,737
Karma: 169712580
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by jhowell View Post
I am curious. Would you mind sharing the ASIN of the book.
The ASIN is B00OV9D9P4 (if I didn't screw up the copy and paste).
DNSB is offline   Reply With Quote
Old 10-22-2020, 06:42 PM   #450
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,897
Karma: 146918083
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by DNSB View Post
The ASIN is B00OV9D9P4 (if I didn't screw up the copy and paste).
Downloading this book using the download option on Amazon and then using KindleUnpack to convert to ePub worked with no error.

Same success using KindleforPC 1.17.

Last edited by JSWolf; 10-22-2020 at 06:51 PM.
JSWolf is offline   Reply With Quote
Reply

Tags
mobi2mobi


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[GUI Plugin] EpubSplit JimmXinu Plugins 459 07-31-2025 09:32 AM
[GUI Plugin] EpubMerge JimmXinu Plugins 560 06-09-2025 03:46 PM
[GUI Plugin] Open With kiwidude Plugins 404 02-21-2025 05:42 AM
[GUI Plugin] Ex Libris AlPe Plugins 87 10-10-2020 03:10 PM
[GUI Plugin] Plugin Updater **Deprecated** kiwidude Plugins 159 06-19-2011 12:27 PM


All times are GMT -4. The time now is 10:04 AM.


MobileRead.com is a privately owned, operated and funded community.