Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Closed Thread
 
Thread Tools Search this Thread
Old 09-15-2020, 08:56 AM   #421
DrChiper
Bookish
DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.
 
DrChiper's Avatar
 
Posts: 1,017
Karma: 2003162
Join Date: Jun 2011
Device: PC, t1, t2, t3, Clara BW, Clara HD, Libra 2, Libra Color, Nxtpaper 11
Quote:
Originally Posted by DNSB View Post
I was thinking more of a Rudyard Kipling poem with its lines "once you have paid him the Danegeld/ You never get rid of the Dane". Or was that give them a centimeter and they'll demand a kilometer?
Wasn't it more something like "you gave them one finger and they took your whole body"?
DrChiper is offline  
Old 09-16-2020, 10:32 AM   #422
sebastost
Junior Member
sebastost began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Jul 2012
Device: Dell Streak 5
Quote:
Originally Posted by kovidgoyal View Post
OK this is endless. No more feature requests. I am really beginning to regret adding annotations to calibre.
We are all excited and thankfull for this tremendous work. So please, please do not regret it. Is one of the feature most requested for the epub readers in windows and is such a joy that is finally coming to Calibre.
sebastost is offline  
Advert
Old 09-16-2020, 04:00 PM   #423
nixsee
Connoisseur
nixsee can name that song in three notesnixsee can name that song in three notesnixsee can name that song in three notesnixsee can name that song in three notesnixsee can name that song in three notesnixsee can name that song in three notesnixsee can name that song in three notesnixsee can name that song in three notesnixsee can name that song in three notesnixsee can name that song in three notesnixsee can name that song in three notes
 
Posts: 79
Karma: 24858
Join Date: Feb 2020
Device: none
I have to say that I haven't found people to be rude, ungrateful or even overly picky. To the contrary, people have been very thankful and respectful of Kovid's time and patience throughout the process.

Perhaps, then, I'm specifically the sort of person who is meant by these comments - if so, I'm disappointed to hear that as I've simply been a passionate user sharing feedback, right from day 1 of the beta, to make this a better tool - often with the qualifier that it, of course, can be taken or left at his discretion.

Fortunately most of the feedback - for both bugs and features - from the more vocal users has been incorporated, and I think we can all say we're absolutely thrilled with the tool. Now that Calibre has the best annotation feature of any tool that I've tried, there's absolutely nothing that comes close to Calibre for Windows, or probably any platform, and I've gotten rid of the rest of the tools that I had installed.

Apologies Kovid if I've overstepped my bounds at all, and thanks again for your hard work and patience. Looking forward to v5!

Last edited by nixsee; 09-16-2020 at 04:04 PM.
nixsee is offline  
Old 09-16-2020, 04:45 PM   #424
0me
Junior Member
0me began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Sep 2020
Device: ipad
Red face just a fan saying i LOVE Calibre and thank you!

thank you! calibre is awesome works so well i love it!
0me is offline  
Old 09-18-2020, 04:09 PM   #425
JimmXinu
Plugin Developer
JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.
 
JimmXinu's Avatar
 
Posts: 6,969
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by JimmXinu View Post
FYI, I think that my DB update issue may well have been caused by my threading issue.

<ThreadingViolationError>

...
I have new information on this.

I was trying to duplicate it and was finally able to by assigning a couple hot keys to add/remove from Reading List and just hammering them for a while.

I got the same error as before a couple times, but a more couple times now, instead of a ThreadingViolationError in plugin code, this spit out in the debug output:
Code:
Traceback (most recent call last):
  File "C:\Users\retief\Desktop\nook\calibre\src\calibre\db\backup.py", line 63, in do_one
  File "C:\Users\retief\Desktop\nook\calibre\src\calibre\db\cache.py", line 63, in call_func_with_lock
  File "C:\Users\retief\Desktop\nook\calibre\src\calibre\db\cache.py", line 1102, in check_dirtied_annotations
  File "C:\Users\retief\Desktop\nook\calibre\src\calibre\db\backend.py", line 1940, in dirty_books_with_dirtied_annotations
apsw.ThreadingViolationError: You are trying to use the same object concurrently in two threads or re-entrantly within the same thread which is not allowed.
Is there a background thread somewhere that's auto-updating annotations? I did not have server running at the time.

ADDED: I'm running v4.99.16 win10 64bit binaries from source as of 9ec29bb5485b56c7024edd9648ec07fadb7ff28c

ADDED: backup.py is specifically for class MetadataBackup(Thread), so yeah, it looks like there's a BG thread running that can conflict with other DB access.

What happens with backend.py:124 vs backend.py:1940 both `with conn` when conn() is a property function? I don't know Python with well enough to know if that's a problem.

Last edited by JimmXinu; 09-18-2020 at 04:28 PM. Reason: class MetadataBackup(Thread)
JimmXinu is offline  
Advert
Old 09-18-2020, 08:34 PM   #426
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: 45,345
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
See the line

Code:
 File "C:\Users\retief\Desktop\nook\calibre\src\calibre\db\cache.py", line 63, in call_func_with_lock
in the traceback, it indicates the the dirty_books_with_dirtied_annotations() function is being called with the DB lock held. So it cannot conflict with anything else, unless that something else is calling some DB code without holding a lock. Is there some code in ReadingList that does this?
kovidgoyal is offline  
Old 09-18-2020, 08:40 PM   #427
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: 45,345
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
And looking at the code, there is indeed such. The various calls to db.prefs.set are not protected by the lock. Doing them like this should eliminate the issue:

Code:

with db.new_api.write_lock:
    db.prefs.set

Last edited by kovidgoyal; 09-18-2020 at 09:02 PM.
kovidgoyal is offline  
Old 09-18-2020, 08:50 PM   #428
JimmXinu
Plugin Developer
JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.
 
JimmXinu's Avatar
 
Posts: 6,969
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
ReadingList calls (a few levels down) self.gui.current_db.prefs.set_namespaced(...).

As do all my plugins -- I thought that was the correct way to save config settings.

Are you saying that all plugins that use set_namespaced() need to change?
JimmXinu is offline  
Old 09-18-2020, 09:08 PM   #429
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: 45,345
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
And this should fix it:

https://github.com/kovidgoyal/calibr...91bea18296764b
kovidgoyal is offline  
Old 09-18-2020, 09:16 PM   #430
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: 45,345
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Oops, forgot to protect set_namespaced()

https://github.com/kovidgoyal/calibr...7707712dab34c4
kovidgoyal is offline  
Old 09-18-2020, 09:22 PM   #431
JimmXinu
Plugin Developer
JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.
 
JimmXinu's Avatar
 
Posts: 6,969
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by kovidgoyal View Post
Oops, forgot to protect set_namespaced()

https://github.com/kovidgoyal/calibr...7707712dab34c4
Thanks!

I see another error when quitting:
Code:
Traceback (most recent call last):
  File "C:\Users\user\Desktop\nook\calibre\src\calibre\gui2\ui.py", line 937, in quit
  File "C:\Users\user\Desktop\nook\calibre\src\calibre\gui2\ui.py", line 1002, in shutdown
AttributeError: 'ThreadSafePrefs' object has no attribute 'write_serialized'
JimmXinu is offline  
Old 09-18-2020, 09:49 PM   #432
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: 45,345
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Should be fixed now.
kovidgoyal is offline  
Old 09-18-2020, 09:53 PM   #433
JimmXinu
Plugin Developer
JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.
 
JimmXinu's Avatar
 
Posts: 6,969
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Confirmed.

I pounded the keys again too and didn't see any more issues. Thanks for addressing this so quickly.

JimmXinu is offline  
Old 09-19-2020, 01:35 AM   #434
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: 45,345
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Released 4.99.17 with the following changes:

1) Fix for JimmXinu's plugin issue, the fix was somewhat invasive, so
please install and run this beta for a few days.

2) Add a context menu for the viewer highlights panel

3) The way calibre's PyQt modules are built has changed to use
sip-build. This should have no observable effects, but who knows.

4) Show a dot next to highlights with notes in the viewer highlights
panel as well

5) Fix removal of multi-line highlights leaving handles in incorrect location

6) Fix a bug in the raw_inlined() template language function

I am aiming to make the final release in a few days, provided this beta
has no more serious bugs.
kovidgoyal is offline  
Old 09-19-2020, 06:54 AM   #435
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
When I click the customize plugin button in the find duplicates plugin, I get the following error:

Code:
calibre, version 4.99.17
ERROR: Unhandled exception: <b>AttributeError</b>:'ThreadSafePrefs' object has no attribute 'to_raw'

calibre 4.99.17  embedded-python: True is64bit: True
Linux-4.15.0-33-generic-x86_64-with-glibc2.2.5 Linux ('64bit', 'ELF')
('Linux', '4.15.0-33-generic', '#36-Ubuntu SMP Wed Aug 15 16:00:05 UTC 2018')
Python 3.8.5
Interface language: None
Successfully initialized third party plugins: Count Pages (1, 10, 0) && && EpubSplit (2, 9, 0) && Extract ISBN (1, 5, 0) && Favourites Menu (1, 0, 5) && Find Duplicates (1, 7, 6) && Import List (1, 5, 0) && Manage Series (1, 2, 9) && Modify ePub (1, 4, 2) && Open With (1, 5, 12) && Quality Check (1, 10, 1) && View Manager (1, 5, 7)
Traceback (most recent call last):
  File "calibre_plugins.find_duplicates.common_utils", line 721, in _current_row_changed
AttributeError: 'ThreadSafePrefs' object has no attribute 'to_raw'
capink is offline  
Closed Thread


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Beta testers needed kovidgoyal Calibre 75 08-18-2019 07:00 PM
Beta testers for calibre 3.0 needed kovidgoyal Calibre 598 07-09-2017 10:26 PM
Beta testers needed kovidgoyal Calibre 54 05-20-2016 12:34 PM
Windows beta testers needed kovidgoyal Calibre 19 02-08-2016 04:38 PM
Beta testers for calibre 2.0 needed kovidgoyal Calibre 142 05-08-2015 04:44 AM


All times are GMT -4. The time now is 12:29 PM.


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