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 07-09-2015, 12:47 PM   #331
awmiller
Junior Member
awmiller began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Jul 2015
Device: Kindle Fire
Quote:
Originally Posted by DiapDealer View Post
Also ... if the original Kindlebook is huge, you may want to make sure you're using a 64-bit version of calibre on a 64-bit machine -- or even using the stand alone KindleUnpack tool.
The text book was about 160 Mb, I assume that's too big for the Calibri plugin.

From the plugin Zip I was able to use the python script, thanks for the hint!

For anyone else who has the same problem, the script is easy to use, just follow install for python as mentioned in any of the tutorials for DeDRM or KindleUnpack standalone. You dont need the stand alone however, from the latest package this script brings up a gui:
<plugin dir>\core_subtree\KindleUnpack.pyw
it will give you the op type epub but you get a pdf in the end.


Last edited by awmiller; 07-09-2015 at 12:54 PM.
awmiller is offline   Reply With Quote
Old 09-06-2015, 05:01 PM   #332
kbaerwald
BioReader
kbaerwald understands when you whisper 'The dog barks at midnight.'kbaerwald understands when you whisper 'The dog barks at midnight.'kbaerwald understands when you whisper 'The dog barks at midnight.'kbaerwald understands when you whisper 'The dog barks at midnight.'kbaerwald understands when you whisper 'The dog barks at midnight.'kbaerwald understands when you whisper 'The dog barks at midnight.'kbaerwald understands when you whisper 'The dog barks at midnight.'kbaerwald understands when you whisper 'The dog barks at midnight.'kbaerwald understands when you whisper 'The dog barks at midnight.'kbaerwald understands when you whisper 'The dog barks at midnight.'kbaerwald understands when you whisper 'The dog barks at midnight.'
 
kbaerwald's Avatar
 
Posts: 292
Karma: 42568
Join Date: Apr 2009
Location: Germany
Device: Various
No "KindleUnpack" icon shows up in calibre

I have setup a completely new calibre environment after installing Win 10. The "KindleUnpack" plugin had been installed on my previous computer and ran flawlessly for some years.

When installing the "KindleUnpack" plugin in my new calibre environment several things happen:

- Installation via preferences places <KindleUnpack - The Plugin.zip> in "C:\Users\myname\AppData\Roaming\calibre\plugi ns"
- there is no icon in the main toolbar nor is the icon available at all for choice
- trying to customize the plugin (yes - it is visible in the list of installed plugins) results in the request to restart calibre first etc. After this the same request pops up every time I try to customize.

All other plugins for calibre installed without problems.

Is there any prerequisite which I overlooked?

Klaus
kbaerwald is offline   Reply With Quote
Advert
Old 09-07-2015, 06:03 AM   #333
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: 27,548
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Did you truly restart calibre? Or is it set to "close" to the system tray?
DiapDealer is offline   Reply With Quote
Old 09-07-2015, 06:13 AM   #334
kbaerwald
BioReader
kbaerwald understands when you whisper 'The dog barks at midnight.'kbaerwald understands when you whisper 'The dog barks at midnight.'kbaerwald understands when you whisper 'The dog barks at midnight.'kbaerwald understands when you whisper 'The dog barks at midnight.'kbaerwald understands when you whisper 'The dog barks at midnight.'kbaerwald understands when you whisper 'The dog barks at midnight.'kbaerwald understands when you whisper 'The dog barks at midnight.'kbaerwald understands when you whisper 'The dog barks at midnight.'kbaerwald understands when you whisper 'The dog barks at midnight.'kbaerwald understands when you whisper 'The dog barks at midnight.'kbaerwald understands when you whisper 'The dog barks at midnight.'
 
kbaerwald's Avatar
 
Posts: 292
Karma: 42568
Join Date: Apr 2009
Location: Germany
Device: Various
Sure - even after restart of my laptop it does not appear in the icon list of calibre. Here some snapshots.

I believe that there is something fundamentally wrong in my setup - but what?

Klaus

P.S. Just found out that the corresponding java file (json) is missing in the "C:\Users\MyName\AppData\Roaming\calibre\plugi ns" directory. I have no clue with Java scripts ...
Attached Thumbnails
Click image for larger version

Name:	Plugininstalled.jpg
Views:	366
Size:	253.9 KB
ID:	141791   Click image for larger version

Name:	plugincustomize.jpg
Views:	328
Size:	162.4 KB
ID:	141792   Click image for larger version

Name:	plugin_icon_missing.jpg
Views:	346
Size:	182.8 KB
ID:	141793   Click image for larger version

Name:	json_missing.jpg
Views:	349
Size:	124.5 KB
ID:	141794  

Last edited by kbaerwald; 09-07-2015 at 06:37 AM. Reason: Add-on
kbaerwald is offline   Reply With Quote
Old 09-07-2015, 08:12 AM   #335
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: 27,548
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Try launching calibre in debug mode from a command-line "calibre-debug -g" (without the quotes). If the plugin isn't initializing properly, there should be some kind of message printed there that might give a clue.

Quote:
I believe that there is something fundamentally wrong in my setup - but what?
Don't dismiss the possibility that there's something wrong with the plugin. It's been a very, very long time since I've installed the plugin fresh. I, and most others likely, have been only upgrading our KindleUnpack plugins for quite a while.

Quote:
P.S. Just found out that the corresponding java file (json) is missing in the "C:\Users\MyName\AppData\Roaming\calibre\plugi ns" directory. I have no clue with Java scripts ...
That's not a java file it's a JSON file. That's where the preferences for plugins are stored/retained. It's normal for it not to exist until the plugin is run/configured for the first time (which yours hasn't).

EDIT: OK, well it doesn't seem to be anything inherently wrong with the plugin, as I just installed it to a virgin installation of calibre (v2.37.1) and everything showed up on the toolbars selected as expected (and configuration worked) after a calibre restart. That debug output should prove enlightening when you get it. Also it looks like you are you running Windows, but I can't be sure. Nevermind, you said Windows 10-duh That info (and whether you're using an x86 or x64 flavor of calibre would be handy). Your icons look different, so I assume your using a new custom theme? If you could direct me to the one you're using, I'd like to install it and rule out the possibility that new theming functionality is somehow playing a role in this (since the plugin does supply its own icon resource. Thanks.

EDIT2: I matched the icon theme you had that doesn't seem to have any effect on a fresh install either. Unfortunately, I can't test on Windows 10 quite yet. I only have that on my employers PCs.

Last edited by DiapDealer; 09-07-2015 at 09:00 AM.
DiapDealer is offline   Reply With Quote
Advert
Old 09-07-2015, 11:09 AM   #336
kbaerwald
BioReader
kbaerwald understands when you whisper 'The dog barks at midnight.'kbaerwald understands when you whisper 'The dog barks at midnight.'kbaerwald understands when you whisper 'The dog barks at midnight.'kbaerwald understands when you whisper 'The dog barks at midnight.'kbaerwald understands when you whisper 'The dog barks at midnight.'kbaerwald understands when you whisper 'The dog barks at midnight.'kbaerwald understands when you whisper 'The dog barks at midnight.'kbaerwald understands when you whisper 'The dog barks at midnight.'kbaerwald understands when you whisper 'The dog barks at midnight.'kbaerwald understands when you whisper 'The dog barks at midnight.'kbaerwald understands when you whisper 'The dog barks at midnight.'
 
kbaerwald's Avatar
 
Posts: 292
Karma: 42568
Join Date: Apr 2009
Location: Germany
Device: Various
Please find the content of the command window in the attached text file - I anonymized some parts (hope you understand this). There are some errors with the unpack plugin but I do not understand the basics of it.

Hope it gives you some information.

Klaus
Attached Files
File Type: txt Calibre-Prob_Hide.txt (3.1 KB, 213 views)
kbaerwald is offline   Reply With Quote
Old 09-07-2015, 11:23 AM   #337
kbaerwald
BioReader
kbaerwald understands when you whisper 'The dog barks at midnight.'kbaerwald understands when you whisper 'The dog barks at midnight.'kbaerwald understands when you whisper 'The dog barks at midnight.'kbaerwald understands when you whisper 'The dog barks at midnight.'kbaerwald understands when you whisper 'The dog barks at midnight.'kbaerwald understands when you whisper 'The dog barks at midnight.'kbaerwald understands when you whisper 'The dog barks at midnight.'kbaerwald understands when you whisper 'The dog barks at midnight.'kbaerwald understands when you whisper 'The dog barks at midnight.'kbaerwald understands when you whisper 'The dog barks at midnight.'kbaerwald understands when you whisper 'The dog barks at midnight.'
 
kbaerwald's Avatar
 
Posts: 292
Karma: 42568
Join Date: Apr 2009
Location: Germany
Device: Various
One more thought: the path name of the ...\AppData\Roaming\calibre contains a non-ASCII character (coming from my German first name) "Rüdiger". This ASCII decimal 252 - does this matter?

Klaus-Rüdiger
kbaerwald is offline   Reply With Quote
Old 09-07-2015, 11:37 AM   #338
DoctorOhh
US Navy, Retired
DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.
 
DoctorOhh's Avatar
 
Posts: 9,864
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
Quote:
Originally Posted by kbaerwald View Post
One more thought: the path name of the ...\AppData\Roaming\calibre contains a non-ASCII character (coming from my German first name) "Rüdiger". This ASCII decimal 252 - does this matter?

Klaus-Rüdiger
I have no firsthand knowledge, but since the error says it "can't decode byte 0xfc in position 16:" and 0xfc is ASCII code for ü which is in the 16th position in the path, I'm guessing the odds are good that you just pointed out the problem.
DoctorOhh is offline   Reply With Quote
Old 09-07-2015, 11:40 AM   #339
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: 27,548
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by kbaerwald View Post
Please find the content of the command window in the attached text file - I anonymized some parts (hope you understand this). There are some errors with the unpack plugin but I do not understand the basics of it.

Hope it gives you some information.

Klaus
Hmmm... yes. That info places the problem squarely on a portion of my plugin that allows it work with user directories containing non-ascii characters ... on EARLIER Windows platforms. Perhaps something there is now incompatible on Windows 10.

Off to investigate. Thanks!
DiapDealer is offline   Reply With Quote
Old 09-07-2015, 11:51 AM   #340
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: 27,548
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by DoctorOhh View Post
I have no firsthand knowledge, but since the error says it "can't decode byte 0xfc in position 16:" and 0xfc is ASCII code for ü which is in the 16th position in the path, I'm guessing the odds are good that you just pointed out the problem.
You are correct.

I found the problem.
There's a call to os.path.expanduser("~") that contains a known bug that affects non-asciii usernames on the Windows platform. I thought I had fixed this once before, but perhaps it has crept back in (or maybe I fixed it in something else--I don't know), but the short answer is: it's an easy fix. Kovid has a workaround method within calibre itself I need to use in place of os.path.expanduser. Now if I can only track down what it was!
DiapDealer is offline   Reply With Quote
Old 09-07-2015, 11:54 AM   #341
kbaerwald
BioReader
kbaerwald understands when you whisper 'The dog barks at midnight.'kbaerwald understands when you whisper 'The dog barks at midnight.'kbaerwald understands when you whisper 'The dog barks at midnight.'kbaerwald understands when you whisper 'The dog barks at midnight.'kbaerwald understands when you whisper 'The dog barks at midnight.'kbaerwald understands when you whisper 'The dog barks at midnight.'kbaerwald understands when you whisper 'The dog barks at midnight.'kbaerwald understands when you whisper 'The dog barks at midnight.'kbaerwald understands when you whisper 'The dog barks at midnight.'kbaerwald understands when you whisper 'The dog barks at midnight.'kbaerwald understands when you whisper 'The dog barks at midnight.'
 
kbaerwald's Avatar
 
Posts: 292
Karma: 42568
Join Date: Apr 2009
Location: Germany
Device: Various
@DoctorOhh: that all makes sense. Here is the complete path:

<C:\Users\Klaus-Rüdiger\AppData\Roaming\calibre>

@DiapDealer: looks very promising - thanks so far!

Klaus
kbaerwald is offline   Reply With Quote
Old 09-07-2015, 11:57 AM   #342
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,851
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
from calibre.utils.filenames import expanduser
kovidgoyal is offline   Reply With Quote
Old 09-07-2015, 12:36 PM   #343
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: 27,548
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by kovidgoyal View Post
from calibre.utils.filenames import expanduser
Thanks Kovid! I knew it was in utils, but I never seem to be able to remember the "filenames" part.

Anyway @kbaerwald:

See if this attached version works for you. If so, I'll update the first post with v0.81.2.

EDIT: removed attachment and updated the first post with version 0.81.2.

Last edited by DiapDealer; 09-07-2015 at 03:36 PM.
DiapDealer is offline   Reply With Quote
Old 09-07-2015, 12:48 PM   #344
kbaerwald
BioReader
kbaerwald understands when you whisper 'The dog barks at midnight.'kbaerwald understands when you whisper 'The dog barks at midnight.'kbaerwald understands when you whisper 'The dog barks at midnight.'kbaerwald understands when you whisper 'The dog barks at midnight.'kbaerwald understands when you whisper 'The dog barks at midnight.'kbaerwald understands when you whisper 'The dog barks at midnight.'kbaerwald understands when you whisper 'The dog barks at midnight.'kbaerwald understands when you whisper 'The dog barks at midnight.'kbaerwald understands when you whisper 'The dog barks at midnight.'kbaerwald understands when you whisper 'The dog barks at midnight.'kbaerwald understands when you whisper 'The dog barks at midnight.'
 
kbaerwald's Avatar
 
Posts: 292
Karma: 42568
Join Date: Apr 2009
Location: Germany
Device: Various
Quote:
Originally Posted by DiapDealer View Post
Thanks Kovid! I knew it was in utils, but I never seem to be able to remember the "filenames" part.

Anyway @kbaerwald:

See if this attached version works for you. If so, I'll update the first post with v0.81.2.
One of the fastest intercontinental bug fixes I have ever seen !

Works like a charm! Thanks to all.

Klaus-Rüdiger
kbaerwald is offline   Reply With Quote
Old 09-07-2015, 03:18 PM   #345
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: 27,548
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
We aim to please!

This is such a basic fix (and it's working for you), that I'm going to go ahead and update the first post with the new version.

Thanks for the report and the supplied data for tracking it down.

EDIT: for the record, this is where I fixed this same bug once already. I'm guessing it slipped back in during the complete overhaul that was v0.80.0.

Last edited by DiapDealer; 09-07-2015 at 03:25 PM.
DiapDealer is offline   Reply With Quote
Reply

Tags
mobi2mobi


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[GUI Plugin] EpubSplit JimmXinu Plugins 422 04-07-2024 04:10 PM
[GUI Plugin] EpubMerge JimmXinu Plugins 522 04-01-2024 10:25 AM
[GUI Plugin] Open With kiwidude Plugins 403 04-01-2024 08:39 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 11:11 PM.


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