Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 04-23-2021, 11:40 AM   #1
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
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'
I have 2 custom columns of Date type (Done Reading, Edited). Up until recent, I select the field and hit F2 to edit (Tweak set to F2 only)
Now I get this message, but it will allow a second F2.

Anyone else seeing this?
theducks is offline   Reply With Quote
Old 04-23-2021, 11:52 AM   #2
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,331
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
https://bugs.launchpad.net/calibre/+bug/1925378
kovidgoyal is offline   Reply With Quote
Advert
Old 04-23-2021, 01:41 PM   #3
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
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:
Originally Posted by kovidgoyal View Post
Thanks Kovid, No one else had said anything, so I was wondering.
Looks like I found a real issue
TNX again
theducks is offline   Reply With Quote
Old 04-23-2021, 07:30 PM   #4
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
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
BetterRed is offline   Reply With Quote
Old 04-23-2021, 09:36 PM   #5
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
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.
ownedbycats is online now   Reply With Quote
Advert
Old 04-24-2021, 01:08 AM   #6
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,715
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by theducks View Post
<snip>

I have 2 custom columns of Date type (Done Reading, Edited). Up until recent, I select the field and hit F2 to edit (Tweak set to F2 only)
Now I get this message, but it will allow a second F2.

Anyone else seeing this?
Curious - which Tweak is set to F2 only ?

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:
Originally Posted by ownedbycats View Post
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.
I do find it annoying, that's why I don't use single MDE - period.

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
BetterRed is offline   Reply With Quote
Old 04-24-2021, 01:15 AM   #7
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
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.
ownedbycats is online now   Reply With Quote
Old 04-24-2021, 03:10 AM   #8
Terisa de morgan
Grand Sorcerer
Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.
 
Terisa de morgan's Avatar
 
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)
Terisa de morgan is offline   Reply With Quote
Old 04-24-2021, 04:07 AM   #9
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,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
chaley is offline   Reply With Quote
Old 04-24-2021, 04:10 AM   #10
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,715
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by Terisa de morgan View Post
I agree with ownedbycats and theducks, I have the same glitch (5.16.1, BTW, 5.16 doesn't have it)
I downloaded 5.16.1 into downloads\software, but I hadn't installed it. I do installs after a shut down, had I done one last night I would have gotten a reminder this morning. But after watching an extended interview with Jesse Jackson on Planet America I went straight to bed

Sorry

BR
BetterRed is offline   Reply With Quote
Old 04-24-2021, 04:52 AM   #11
Terisa de morgan
Grand Sorcerer
Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.
 
Terisa de morgan's Avatar
 
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:
Originally Posted by chaley View Post
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).
Sometimes, giving too much info to the user is a problem
Terisa de morgan is offline   Reply With Quote
Old 04-24-2021, 04:54 AM   #12
Terisa de morgan
Grand Sorcerer
Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.
 
Terisa de morgan's Avatar
 
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:
Originally Posted by BetterRed View Post
I downloaded 5.16.1 into downloads\software, but I hadn't installed it. I do installs after a shut down, had I done one last night I would have gotten a reminder this morning. But after watching an extended interview with Jesse Jackson on Planet America I went straight to bed

Sorry

BR
No need to be sorry, I've already told it in case it to be useful (I have two desktops, one with 5.16 and the other one with 5.16.1, that's the reason I know).
Terisa de morgan is offline   Reply With Quote
Old 04-24-2021, 09:11 AM   #13
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,715
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by Terisa de morgan View Post
No need to be sorry, I've already told it in case it to be useful (I have two desktops, one with 5.16 and the other one with 5.16.1, that's the reason I know).
Capitalist running dog :lol:

Quote:
Originally Posted by BetterRed View Post
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
The 'sometimes to my annoyance' is when I'm in cell edit mode and I tab through an empty date on my way to the next cell and it changes to today when I really want it to stay empty.

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.
BetterRed is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 06:25 PM.


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