![]() |
#1 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,037
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
F2 error on date field
Code:
calibre, version 5.16.1 ERROR: Unhandled exception: <b>AttributeError</b>:'NoneType' object has no attribute 'year' calibre 5.16.1 [64bit] embedded-python: True is64bit: True Windows-10-10.0.19041 Windows ('64bit', 'WindowsPE') ('Windows', '10', '10.0.19041') Python 3.8.5 Windows: ('10', '10.0.19041', '', 'Multiprocessor Free') Interface language: None Successfully initialized third party plugins: Gather KFX-ZIP (from KFX Input) (1, 38, 0) && DeDRM (7, 2, 1) && Package KFX (from KFX Input) (1, 38, 0) && APNX Generator (1, 1, 0) && Count Pages (1, 11, 0) && Diaps Editing Toolbag (0, 3, 7) && EpubMerge (2, 11, 0) && EpubSplit (3, 0, 0) && Extract ISBN (1, 5, 0) && Fantastic Fiction (1, 4, 0) && Fantastic Fiction Adults (1, 2, 0) && Find Duplicates (1, 8, 5) && Generate Cover (2, 0, 2) && Goodreads (1, 5, 1) && Import List (1, 5, 4) && KFX metadata reader (from KFX Input) (1, 38, 0) && KFX Input (1, 38, 0) && Set KFX metadata (from KFX Output) (1, 51, 0) && KFX Output (1, 51, 0) && KePub Input (3, 4, 3) && KePub Metadata Reader (3, 4, 3) && KePub Metadata Writer (3, 4, 3) && KePub Output (3, 4, 4) && Kindle Collections (1, 7, 29) && KindleUnpack - The Plugin (0, 83, 0) && Kobo Books (1, 8, 2) && Kobo Utilities (2, 13, 2) && KoboTouchExtended (3, 4, 4) && LanguageTool (0, 1, 1) && Manage Series (1, 2, 11) && Modify ePub (1, 6, 3) && Obok DeDRM (7, 2, 1) && Open With (1, 5, 13) && Quality Check (1, 11, 2) && Resize Cover (1, 1, 0) && Search The Internet (1, 8, 1) && Smashwords Metadata (1, 0, 2) && Sort CSS (0, 2, 0) Traceback (most recent call last): File "calibre\gui2\library\delegates.py", line 55, in updateEditorGeometry File "calibre\gui2\library\delegates.py", line 428, in displayText File "calibre\utils\date.py", line 173, in qt_to_dt AttributeError: 'NoneType' object has no attribute 'year' Now I get this message, but it will allow a second F2. Anyone else seeing this? |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,331
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
|
![]() |
![]() |
Advert | |
|
![]() |
#3 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,037
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
Looks like I found a real issue TNX again |
|
![]() |
![]() |
![]() |
#4 |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,715
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
I just added three documents to a library that has an Effective date column, when I edited the empty dates with F2 it defaulted to today (2021-04-24); as empty dates always do -- sometimes to my annoyance ![]() BR |
![]() |
![]() |
![]() |
#5 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,947
Karma: 74999999
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
I'm having the same glitch.
If you find constantly opening the metadata editor annoying, the Action Chains plugin can bypass the glitch—make a chain that has a "single field edit" action to set #yourdatetimecolumn to the current time and bind that to whatever keyboard shortcut you want. Last edited by ownedbycats; 04-23-2021 at 09:40 PM. |
![]() |
![]() |
Advert | |
|
![]() |
#6 | ||
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,715
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
I just tried F2 in another library on an empty custom column, and an empty pubdate - same deal they defaulted to today's date when I pressed F2. Quote:
But assuming the date column is shown in the book list, why wouldn't I just tab to the date cell and press F2 like I do for every other column? BR |
||
![]() |
![]() |
![]() |
#7 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,947
Karma: 74999999
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
The glitch occurs in the book list when I press F2 or Enter on a currently-null custom #datetime cell.
I think that theducks may be talking about the enter_key_behavior tweak under doubleclick_on_library_view. If you use this with certain doubleclick settings that disable singleclick editing you need to use F2. Last edited by ownedbycats; 04-24-2021 at 01:18 AM. |
![]() |
![]() |
![]() |
#8 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,626
Karma: 12595249
Join Date: Jun 2009
Location: Madrid, Spain
Device: Kobo Clara/Aura One/Forma,XiaoMI 5, iPad, Huawei MediaPad, YotaPhone 2
|
I agree with ownedbycats and theducks, I have the same glitch (5.16.1, BTW, 5.16 doesn't have it)
|
![]() |
![]() |
![]() |
#9 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,436
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Folks, this is already fixed and in calibre source as of 21/4. When editing on the booklist the change to tooltips in 5.16.1 not to show the year 101 for "undefined dates" caused dates to internally appear as null (None). It happened on all dates except timestamp (timestamp can't be empty).
Last edited by chaley; 04-24-2021 at 04:12 AM. Reason: Correct the reason for the bug |
![]() |
![]() |
![]() |
#10 | |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,715
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
![]() ![]() Sorry BR |
|
![]() |
![]() |
![]() |
#11 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,626
Karma: 12595249
Join Date: Jun 2009
Location: Madrid, Spain
Device: Kobo Clara/Aura One/Forma,XiaoMI 5, iPad, Huawei MediaPad, YotaPhone 2
|
Quote:
![]() |
|
![]() |
![]() |
![]() |
#12 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,626
Karma: 12595249
Join Date: Jun 2009
Location: Madrid, Spain
Device: Kobo Clara/Aura One/Forma,XiaoMI 5, iPad, Huawei MediaPad, YotaPhone 2
|
Quote:
|
|
![]() |
![]() |
![]() |
#13 | ||
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,715
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
Quote:
This might work for me: a tweak to leave date cells empty if they're tabbed into, if I want today I can hit '=' easy enough. But it's a minor annoyance. BR Last edited by BetterRed; 04-24-2021 at 09:16 AM. |
||
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Automatically Setting Date field to file creation date when importing. | Marc_G2 | Library Management | 6 | 07-25-2020 10:35 PM |
What date is used in the 'Date' field of CC Metadata window? | ShaunBlake | Library Management | 2 | 06-18-2019 05:32 PM |
How do I clear a date field? | truth1ness | Library Management | 4 | 11-04-2015 09:33 PM |
Date field details | rcharbon | Calibre | 7 | 09-21-2014 09:08 PM |
date field | iomari | Calibre | 8 | 10-09-2011 03:32 AM |