View Single Post
Old 05-14-2025, 08:16 AM   #862
Reader4106
Member
Reader4106 began at the beginning.
 
Posts: 20
Karma: 10
Join Date: Oct 2014
Location: Schweiz [Switzerland]
Device: Pocketbook Verse Pro
Thanks thiago.eec for this quick reply.

Quote:
Try the attatched version to see if this is fixed.
After installing the new version, I can access the statistics again. Thanks.

However, I can no longer access "Custom Challenges."

Attached is a screenshot of the error message.
And here is the detailed text of the error message:
Quote:
calibre, version 6.29.0
FEHLER: Unbehandelter Ausnahmefehler: <b>KeyError</b>:'summary'

calibre 6.29 embedded-python: True
macOS-12.7.6-x86_64-i386-64bit Darwin ('64bit', '')
('Darwin', '21.6.0', 'Darwin Kernel Version 21.6.0: Mon Jun 24 00:56:10 PDT 2024; root:xnu-8020.240.18.709.2~1/RELEASE_X86_64')
Python 3.10.1
OSX: ('12.7.6', ('', '', ''), 'x86_64')
Interface language: de
Successfully initialized third party plugins: DeDRM (10, 0, 3) && Action Chains (1, 20, 10) && Annotations (1, 17, 13) && Count Pages (1, 13, 6) && Extract ISBN (1, 6, 5) && Favourites Menu (1, 3, 1) && Find Duplicates (1, 10, 9) && Import List (1, 9, 8) && Job Spy (1, 0, 239) && Library Codes (2, 0, 1) && Library Codes - SRU (2, 0, 4) && Manage Series (1, 5, 2) && Mass Search-Replace (1, 8, 2) && OverDrive Libby (0, 2, 3) && Pocketbook Tools (0, 10, 0) && Reading Goal (1, 9, 2) && Reading List (1, 15, 4) && Save To Format (0, 0, 6) && View Manager (1, 10, 3)
Traceback (most recent call last):
File "calibre_plugins.Reading_Goal.main", line 291, in manage_reading_goal
self.custom_challenges(db, data)
File "calibre_plugins.Reading_Goal.main", line 1845, in custom_challenges
d = CustomChallengesDialog()
File "calibre_plugins.Reading_Goal.main", line 1477, in __init__
Dialog.__init__(self, _('Custom challenges'), 'plugin-reading-goal-challenges-dialog', parent=tool.gui)
File "calibre/gui2/widgets2.py", line 225, in __init__
File "calibre_plugins.Reading_Goal.main", line 1521, in setup_ui
if 'challenges_dict' in goal_data[year]['summary']:
KeyError: 'summary'

When I tried to import more data, a message appeared stating that there were still records with empty fields.

I have empty fields for two groups of "books."

One group consists of reference books, dictionaries, atlases, guides, etc., which I started but never finished and therefore cannot specify a page number or percentage of the portion read.

I could simply move these books to the abandoned books. However, this doesn't seem correct to me, as they would be included in the statistics, which I don't think is right.
Here's a suggestion: What do you think about a new category for books like the ones mentioned above? I would also appreciate being able to specify which of the groups is used for which type of statistics calculation.

The second group consists of audiobooks.
As already mentioned in another post, I consider books I've listened to as read and don't differentiate between books I've read and books I've read. I often enjoy having books read to me while driving, doing gardening, or housework.

I'd like to ask you how you convert the "duration" (I store the value in whole minutes) into a page number. With e-books, the device's page count depends on various factors such as device type, font, font size, and other influences.

A conversion from the page count in the publisher's information for the paper editions might be possible. But even though I don't expect a particularly high level of accuracy from a conversion factor, I can only see a very complex way to calculate one. A factor would have to be calculated from the page count in the publisher's information and the reading time of the audiobook. Especially with nonfiction books with appendices such as glossaries, bibliographies, image sections, graphics, etc., these greatly distort the result. In German publishing, there's another issue. Many books have advertising sections for other books at the end, which are often more than 30 pages long and can further degrade the results.

I would be very grateful for any tips.

This question should probably be discussed elsewhere. Sorry.

In any case, I'm looking forward to your answers. Thank you.

(Translated from German using Google Translate)
Attached Thumbnails
Click image for larger version

Name:	ReadingGoal_Error_Custom challenges2.png
Views:	44
Size:	55.2 KB
ID:	215671  
Reader4106 is offline   Reply With Quote