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-2022, 01:01 PM   #886
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,447
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Moderator Notice
Two posts moved to this thread
chaley is offline   Reply With Quote
Old 07-09-2022, 01:07 PM   #887
Wiggo
Leftutti
Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.
 
Wiggo's Avatar
 
Posts: 549
Karma: 1717097
Join Date: Feb 2019
Location: Bavaria
Device: iPad Pro, Kobo Libra 2
I imported your chain

https://www.mobileread.com/forums/sh...20&postcount=6

After the error I deleted it but the error is still there.

Edit: I see there‘s a new update - you guys are very fast, thx.

Edit2: Even with AC 1.17.1 error is still there

Edit3: With AC 1.16.4 everything is fine

Last edited by Wiggo; 07-09-2022 at 01:55 PM.
Wiggo is offline   Reply With Quote
Old 07-09-2022, 02:08 PM   #888
capink
Wizard
capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.
 
Posts: 1,196
Karma: 1995558
Join Date: Aug 2015
Device: Kindle
Quote:
Originally Posted by chaley View Post
FYI: in the library_about_to_change event the old database can be None, which it probably is when check library is used because there isn't a previous database. That is why you are getting the exception. You should be able to avoid it by disabling any actions that depend on that event.
Thanks for pointing out the cause of the problem. A new version 1.17.2 is released. Should fix the problem.
capink is offline   Reply With Quote
Old 07-12-2022, 12:08 AM   #889
tamaracks
Connoisseur
tamaracks began at the beginning.
 
tamaracks's Avatar
 
Posts: 53
Karma: 10
Join Date: Jun 2021
Device: Onyx Boox Nova3
Crash using Save/Restore Formats action after updating to calibre 6.0

After updating to calibre 6.0, I tried to use a chain I have that deletes the EPUB format then copies another format to EPUB using the Save/Restore Formats action. (I've been copying the EPUB as it was when first imported to a "SOURCE_EPUB" format, in case I mess it up while editing I can copy the original back and try again.)

calibre crashes when it gets to the Save/Restore Format step. I've attached the crash log as a text file. calibre is (obviously) up to date, Action Chains is up to date, my OS is up to date.

Thanks.
Attached Files
File Type: txt save-restore-crash.txt (97.5 KB, 106 views)
tamaracks is offline   Reply With Quote
Old 07-12-2022, 12:15 AM   #890
tamaracks
Connoisseur
tamaracks began at the beginning.
 
tamaracks's Avatar
 
Posts: 53
Karma: 10
Join Date: Jun 2021
Device: Onyx Boox Nova3
Hmm, it may be something that's solely a calibre issue. I tried renaming the format externally and adding it back to the book record with the green button next to the formats box in the book details and got another crash. And attempting to import the file is giving me an error.
tamaracks is offline   Reply With Quote
Old 07-12-2022, 12:27 AM   #891
tamaracks
Connoisseur
tamaracks began at the beginning.
 
tamaracks's Avatar
 
Posts: 53
Karma: 10
Join Date: Jun 2021
Device: Onyx Boox Nova3
Phew. Found some posts in the issues thread for version 6 that pointed to the dedrm plugin being the problem. Disabling that plugin fixed it for me. (Fortunately I haven't been using it for a while, so that doesn't lose any functionality for me.)

https://www.mobileread.com/forums/sh...18#post4237918
tamaracks is offline   Reply With Quote
Old 07-12-2022, 12:28 AM   #892
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by tamaracks View Post
Hmm, it may be something that's solely a calibre issue. I tried renaming the format externally and adding it back to the book record with the green button next to the formats box in the book details and got another crash. And attempting to import the file is giving me an error.
It is the DRM plugin on the Mac. Look at the calibre 6 issues thread for a discussion of the problem. But, disabling the plugin will solve the problem.
davidfor is offline   Reply With Quote
Old 07-12-2022, 05:32 AM   #893
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,792
Karma: 146391129
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 davidfor View Post
It is the DRM plugin on the Mac. Look at the calibre 6 issues thread for a discussion of the problem. But, disabling the plugin will solve the problem.
Here is a possible solution.
https://www.mobileread.com/forums/sh...1&postcount=74
JSWolf is offline   Reply With Quote
Old 07-17-2022, 08:20 AM   #894
ackomb
Zealot
ackomb has a spectacular aura aboutackomb has a spectacular aura aboutackomb has a spectacular aura aboutackomb has a spectacular aura aboutackomb has a spectacular aura aboutackomb has a spectacular aura aboutackomb has a spectacular aura aboutackomb has a spectacular aura aboutackomb has a spectacular aura aboutackomb has a spectacular aura aboutackomb has a spectacular aura about
 
Posts: 106
Karma: 4486
Join Date: Mar 2020
Location: Netherlands
Device: i-pad
Chains Dialog Bug?

So for testing purposes I disabled all but the chain TEST as to not accidentally run the wrong one (I have this bad habit of pressing a wrong button by going to quickly )

Anyway, now I wanted to enable them again, but for some reason if I press the checkmark box nothing changes. Could this be because of the change to Calibre 6.0?
Attached Thumbnails
Click image for larger version

Name:	ScreenShot Action Chains.jpg
Views:	187
Size:	59.5 KB
ID:	195083  
ackomb is offline   Reply With Quote
Old 07-17-2022, 02:20 PM   #895
capink
Wizard
capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.
 
Posts: 1,196
Karma: 1995558
Join Date: Aug 2015
Device: Kindle
Quote:
Originally Posted by ackomb View Post
Could this be because of the change to Calibre 6.0?
Yes. I uploaded a new version that should fix this problem.
capink is offline   Reply With Quote
Old 07-17-2022, 03:45 PM   #896
ackomb
Zealot
ackomb has a spectacular aura aboutackomb has a spectacular aura aboutackomb has a spectacular aura aboutackomb has a spectacular aura aboutackomb has a spectacular aura aboutackomb has a spectacular aura aboutackomb has a spectacular aura aboutackomb has a spectacular aura aboutackomb has a spectacular aura aboutackomb has a spectacular aura aboutackomb has a spectacular aura about
 
Posts: 106
Karma: 4486
Join Date: Mar 2020
Location: Netherlands
Device: i-pad
Quote:
Originally Posted by capink View Post
Yes. I uploaded a new version that should fix this problem.
ackomb is offline   Reply With Quote
Old 07-25-2022, 08:08 PM   #897
tamaracks
Connoisseur
tamaracks began at the beginning.
 
tamaracks's Avatar
 
Posts: 53
Karma: 10
Join Date: Jun 2021
Device: Onyx Boox Nova3
Recently (definitely after the update to calibre 6.0, but I'm not sure if it was concurrent with that) I've lost the ability to choose from the usual default icons for Action Chains. The chains that already have icons still display them, but if I modify a chain, then the icon goes away.

Any ideas what might be causing this?
tamaracks is offline   Reply With Quote
Old 07-25-2022, 08:48 PM   #898
tamaracks
Connoisseur
tamaracks began at the beginning.
 
tamaracks's Avatar
 
Posts: 53
Karma: 10
Join Date: Jun 2021
Device: Onyx Boox Nova3
Is there a way in Action Chains to just copy a specific string to the clipboard? Not a value that comes from any selected books.

I'm hoping to streamline my EPUB tweaking and copy a string I need to paste into the TagMechanic plugin in Sigil as part of the chain I have for opening a book in Sigil.
tamaracks is offline   Reply With Quote
Old 07-27-2022, 12:07 AM   #899
capink
Wizard
capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.
 
Posts: 1,196
Karma: 1995558
Join Date: Aug 2015
Device: Kindle
Quote:
Originally Posted by tamaracks View Post
Recently (definitely after the update to calibre 6.0, but I'm not sure if it was concurrent with that) I've lost the ability to choose from the usual default icons for Action Chains. The chains that already have icons still display them, but if I modify a chain, then the icon goes away.

Any ideas what might be causing this?
Calibre6/PyQt6 has changed the way icons are stored. They are now stored in a resource file instead of a directory. As a result, Action Chains cannot support both default and custom icons by putting them in the same directory. Only custom icons will be supported for Cablire6. I don't think it is worth the effort to bring back support for calibre default icons.

Quote:
Originally Posted by tamaracks View Post
Is there a way in Action Chains to just copy a specific string to the clipboard? Not a value that comes from any selected books.
Calibre's template dialog supports text as well. Simply type whatever text you want (Using Copy To Clipboard template dialog) and it will be copied to the clipboard.

Quote:
Originally Posted by tamaracks View Post
I'm hoping to streamline my EPUB tweaking and copy a string I need to paste into the TagMechanic plugin in Sigil as part of the chain I have for opening a book in Sigil.
Have a look at Editor Chains and see if it helps. It can be integrated with Action Chains. Note, however, that it is not under active development.

Last edited by capink; 07-27-2022 at 12:11 AM.
capink is offline   Reply With Quote
Old 07-28-2022, 01:48 AM   #900
tamaracks
Connoisseur
tamaracks began at the beginning.
 
tamaracks's Avatar
 
Posts: 53
Karma: 10
Join Date: Jun 2021
Device: Onyx Boox Nova3
Quote:
Originally Posted by capink View Post
Calibre6/PyQt6 has changed the way icons are stored. They are now stored in a resource file instead of a directory. As a result, Action Chains cannot support both default and custom icons by putting them in the same directory. Only custom icons will be supported for Cablire6. I don't think it is worth the effort to bring back support for calibre default icons.
Makes sense. Is there a way for me to pull a copy of the icons from Calibre to load as custom?

Quote:
Originally Posted by capink View Post
Calibre's template dialog supports text as well. Simply type whatever text you want (Using Copy To Clipboard template dialog) and it will be copied to the clipboard.
Ah ha! I think I just got intimidated by all the options in that action, so I wasn't sure if it could be that simple.

Quote:
Originally Posted by capink View Post
Have a look at Editor Chains and see if it helps. It can be integrated with Action Chains. Note, however, that it is not under active development.
That is interesting! I shall have to look into it at some point, but right now, I have a fair amount of automation set up in Sigil. It's just the TagMechanic plugin that I wish could have saved sets of options. But it does do a nice job of searching out tags without my having to make a regex that properly accounts for the opening and closing tag syntax.

Thanks!

Another question: Is there a way to disable an Action Chains menu item if no book is selected? I thought maybe I could test a basic template tag like title for a value, but it seems like the template functions are hanging on to the most recently selected book, even if nothing is selected in the current view. For instance, I have an chain that calls up the metadata view for a book via Calibre Actions. Sometimes I do something beforehand that unselects the books in the view, but I forget and when I run this chain, I get an error about nothing being selected. Just hoping to avoid that.
tamaracks is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Editor Plugin] Editor Chains capink Plugins 106 06-17-2025 05:36 PM
Action Chains Resources capink Plugins 77 06-16-2025 12:45 PM
[GUI Plugin] Noosfere_util, a companion plugin to noosfere DB lrpirlet Plugins 2 08-18-2022 03:15 PM
[GUI Plugin] Save Virtual Libraries To Column (GUI) chaley Plugins 14 04-04-2021 05:25 AM


All times are GMT -4. The time now is 03:14 AM.


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