09-16-2019, 09:13 PM | #1 |
Enthusiast
Posts: 46
Karma: 10
Join Date: Sep 2014
Device: ipad air
|
EXCEPTION: cannot import name EvalFormatter
Since a recent calibre update one of my custom columns is suddenly broken and is displaying:
EXCEPTION: cannot import name EvalFormatter for all books. It's a "column built from other columns" using this template: Code:
{tags:'in_list($, ",", "^topic:", re_group($, ".* ?topic:([^,]+).*", "[[$]]"), ".* ?technical \(", re_group($, ".* ?technical \((.+?)\).*", "[[$]]"), ".* ?technical$", "", "")'} Code:
{:'list_re(author_links(":", " & "), " & ", ".*?([^:]+):?$", "\1")'} Any help greatly appreciated! Mike |
09-16-2019, 09:15 PM | #2 |
Enthusiast
Posts: 46
Karma: 10
Join Date: Sep 2014
Device: ipad air
|
FWIW the broken column is the only custom column that uses re_group().
|
09-16-2019, 09:34 PM | #3 |
creator of calibre
Posts: 43,860
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
This will be fixed in the next release.
|
09-16-2019, 09:50 PM | #4 |
Enthusiast
Posts: 46
Karma: 10
Join Date: Sep 2014
Device: ipad air
|
Thanks!
|
09-18-2019, 09:44 AM | #5 |
Junior Member
Posts: 9
Karma: 10
Join Date: Oct 2014
Device: Kobo Glo HD
|
Same issue here. I have a columns called "Author Inverted" which lists the author name as "firstname lastname", whereas I have everything regitsred as "lastname, firstname" in the library
Here's the formula in the custom column Code:
{authors:'list_re_group($, ' & ', '.', "(^.*\, .*$)|(^.*$)", "[[$:'re($, '^([^,]+), ([^[]+)', '\2 \1')']]", "[[$]]")'} |
09-18-2019, 10:02 AM | #6 |
creator of calibre
Posts: 43,860
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Either downgrade calibre or wait for the next release which has the fix.
|
09-19-2019, 12:03 PM | #7 |
Junior Member
Posts: 9
Karma: 10
Join Date: Oct 2014
Device: Kobo Glo HD
|
Thanks
Do you have a rough ETA on the next version? If it's a matter of days, i'll wait, but if over a month, then I'd downgrade. Last edited by LiLYoda; 09-19-2019 at 12:06 PM. |
09-19-2019, 12:23 PM | #8 |
creator of calibre
Posts: 43,860
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
|
09-19-2019, 12:49 PM | #9 |
Junior Member
Posts: 9
Karma: 10
Join Date: Oct 2014
Device: Kobo Glo HD
|
OK. Downgraded to 3.47.1 on MacOS, and the bug disappeared.
|
Tags |
custom columns, regex |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Import Author And Title From Filename & Import Other Tags And Cover From File | DazJWood | Library Management | 25 | 10-06-2021 10:18 AM |
Import ADD iso import REPLACE | Patrick Derwael | Calibre | 2 | 08-21-2019 04:57 AM |
Export/Import all Calibre data - import error | IanKBrown | Calibre | 5 | 02-15-2017 08:32 PM |
Import on Filename changes mid import due to book error | Vortex | Calibre | 3 | 12-05-2014 11:49 AM |
Import failed Error:404 when attempting to import from Calibre to Stanza | dvond | Apple Devices | 0 | 05-13-2011 03:00 PM |