![]() |
#1 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,627
Karma: 12595249
Join Date: Jun 2009
Location: Madrid, Spain
Device: Kobo Clara/Aura One/Forma,XiaoMI 5, iPad, Huawei MediaPad, YotaPhone 2
|
Problem with collections in Kobo eReader
Hello,
I'm finding a problem sending books to Kobo and I'm not able to find the reason (it hasn't happened always or I would have seen it). I create collections in Kobo based in three custom composite columns, two of them using user-defined templates. If I show the columns in the library view, they are fine. But, when I send the books to the device, it's creating a collection: "ERROR IN TEMPLATE", as it's recalculating something on the fly and it's failing. What can I check to find the issue? It happens with the original Kobo Touch Extended Driver and with the current preview which integrates the functionality in the basic driver. Thanks in advance. |
![]() |
![]() |
![]() |
#2 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,741
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,627
Karma: 12595249
Join Date: Jun 2009
Location: Madrid, Spain
Device: Kobo Clara/Aura One/Forma,XiaoMI 5, iPad, Huawei MediaPad, YotaPhone 2
|
|
![]() |
![]() |
![]() |
#4 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,627
Karma: 12595249
Join Date: Jun 2009
Location: Madrid, Spain
Device: Kobo Clara/Aura One/Forma,XiaoMI 5, iPad, Huawei MediaPad, YotaPhone 2
|
|
![]() |
![]() |
![]() |
#5 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,345
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Try running in debug mode you might get more information on the failure there
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,627
Karma: 12595249
Join Date: Jun 2009
Location: Madrid, Spain
Device: Kobo Clara/Aura One/Forma,XiaoMI 5, iPad, Huawei MediaPad, YotaPhone 2
|
I'll try again, but the information I've found is sendind the "ERROR IN TEMPLATE" as collection, not much more. Well, yes, "User function expecting five parameters and getting 7". And my custom columns have the proper number of parameters, so I don't know where those two parametrs are being added.
|
![]() |
![]() |
![]() |
#7 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,345
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
It would help if you posted the debug log and the metadata.db file and the collections template you are using so I can try to reproduce.
|
![]() |
![]() |
![]() |
#8 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,627
Karma: 12595249
Join Date: Jun 2009
Location: Madrid, Spain
Device: Kobo Clara/Aura One/Forma,XiaoMI 5, iPad, Huawei MediaPad, YotaPhone 2
|
Thank you very much, the info is:
Collections column: #dek #dek -> {#des:conv_des(C)} [des: Text separated by commas, like tags] Code:
conv_res (des, pref): def evaluate(self, formatter, kwargs, mi, locals, des, pref): res = [] pref = '#' + pref if des is not None: for elem in des.split (', '): if elem != '': if elem[0] == ' ': res.append (pref + ':' + elem[1:len(elem)]) else: res.append (pref + ':' + elem) return ', '.join(res) Thank you very much again. |
![]() |
![]() |
![]() |
#9 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,443
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
@Terisa de morgan: Have you set the "plugin tweak" "show_stack_traces_in_formatter = False"? There are no exceptions in the log, which is strange.
|
![]() |
![]() |
![]() |
#10 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,627
Karma: 12595249
Join Date: Jun 2009
Location: Madrid, Spain
Device: Kobo Clara/Aura One/Forma,XiaoMI 5, iPad, Huawei MediaPad, YotaPhone 2
|
Not that I’m aware, I’ll check tomorrow (I think it’s the first time I read about that tweak)
|
![]() |
![]() |
![]() |
#11 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,443
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
If you give us a zip of your configuration folder then we can check the tweaks, the driver configuration, and any other per-user configuration. In other words, we can run what you run.
|
![]() |
![]() |
![]() |
#12 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,627
Karma: 12595249
Join Date: Jun 2009
Location: Madrid, Spain
Device: Kobo Clara/Aura One/Forma,XiaoMI 5, iPad, Huawei MediaPad, YotaPhone 2
|
I don't have that tweak (I've checked), and, with the device connected, the column#dek gives template error... at some files, not all (I've checked the device view and error is there). I've sent you a link with the configuration folder. Thank you very much, I'm totally baffled by this.
|
![]() |
![]() |
![]() |
#13 |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 183
Karma: 158116
Join Date: Oct 2015
Device: Kobo Glo HD (landscape), Kobo Aura One
|
The best people are already investigating. Nevertheless a question from my view: appears the error depending on specific books only?
|
![]() |
![]() |
![]() |
#14 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,627
Karma: 12595249
Join Date: Jun 2009
Location: Madrid, Spain
Device: Kobo Clara/Aura One/Forma,XiaoMI 5, iPad, Huawei MediaPad, YotaPhone 2
|
Only specific books (I've not found the common characteristic) and now, I've seen, only specific readers. I've got a Clara Colour and Clara 2E. Clara 2E gets normal collections, Clara Colour get the error. I'm going to investigate if I have some difference.
Last edited by Terisa de morgan; 03-02-2025 at 03:47 AM. |
![]() |
![]() |
![]() |
#15 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,627
Karma: 12595249
Join Date: Jun 2009
Location: Madrid, Spain
Device: Kobo Clara/Aura One/Forma,XiaoMI 5, iPad, Huawei MediaPad, YotaPhone 2
|
I still don't know what happens or why it only happens with an ereader, but if I change the template to this:
Code:
program: new_des = ''; pref="#C:"; for i in '#des': j = pref & i; new_des = list_union(new_des, j, ',') rof; new_des Last edited by Terisa de morgan; 03-02-2025 at 04:22 AM. |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
kobo ereader freeze problem | akiyamakazumi | Kobo Reader | 14 | 03-25-2024 09:47 AM |
Moving Collections to New Kobo eReader | ppowell002 | Kobo Reader | 2 | 07-23-2022 07:06 AM |
kobo/caliber problem with series/collections | Vampgirl82 | Devices | 9 | 05-29-2015 03:16 AM |
Kobo Touch "My Collections" Problem | TheArtfulDodger | Devices | 6 | 01-03-2014 08:13 AM |
Best EReader for Collections? | KindleKid | Which one should I buy? | 11 | 07-21-2011 10:05 AM |