![]() |
#1 |
Junior Member
![]() Posts: 6
Karma: 10
Join Date: Aug 2025
Device: kobo
|
Error on kobo driver
Hi,
I'm "playing" with connexion on a Kobo with : Code:
scanner = DeviceScanner() scanner.scan() device = KOBOTOUCH(None) tmp = device.is_usb_connected(scanner.devices) if tmp[0] != True: print("Kobo not find") exit() print("Kobo find" + device.get_device_information()) Code:
File "/usr/lib/calibre/calibre/devices/kobo/driver.py", line 1620, in get_device_information self.set_device_name() ~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib/calibre/calibre/devices/kobo/driver.py", line 3912, in set_device_name if self.is2024Device(): ~~~~~~~~~~~~~~~~~^^ File "/usr/lib/calibre/calibre/devices/kobo/driver.py", line 3742, in is2024Device return self.detected_device.idProduct in self.LIBRA_COLOR_PRODUCT_ID ^^^^^^^^^^^^^^^^^^^^ AttributeError: 'KOBOTOUCH' object has no attribute 'detected_device' Code:
def is2024Device(self): return self.detected_device.idProduct in self.LIBRA_COLOR_PRODUCT_ID Do i miss something ? |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,449
Karma: 27757438
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
You need to call open() first.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Junior Member
![]() Posts: 6
Karma: 10
Join Date: Aug 2025
Device: kobo
|
Hi,
thanks for your reply, but i don't get it (i use calibre-debug -e): Code:
scanner = DeviceScanner() scanner.scan() device = KOBOTOUCH(None) device.open(scanner.devices) Code:
File "/usr/lib/calibre/calibre/devices/usbms/device.py", line 504, in find_device_nodes detected_device = self.detected_device ^^^^^^^^^^^^^^^^^^^^ AttributeError: 'KOBOTOUCH' object has no attribute 'detected_device' |
![]() |
![]() |
![]() |
#4 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,449
Karma: 27757438
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Look at the main() function in devices/cli.py for the exact sequence of operations you need.
|
![]() |
![]() |
![]() |
#5 |
Junior Member
![]() Posts: 6
Karma: 10
Join Date: Aug 2025
Device: kobo
|
ok, it works, thx
its painfull, is there any full documentation or example for writing script ? for example, i want to search book id in my library, it should be : db.get_item_id(self, field, item_name, case_sensitive=False) But there is no information about format of field or item_name, or what field cover. If i do : db.get_item_id('authors', 'an_author') i get the right id but if i do : db.get_item_id('title', 'a_title') using the title name from the .sql, it find nothing. Last edited by Frogg; Yesterday at 01:42 PM. |
![]() |
![]() |
Advert | |
|
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Clara HD - eReader-4.35.20400 Driver Error | LordP | Kobo Reader | 4 | 06-05-2023 06:24 PM |
Troubleshooting Kindle Driver Error Whenever Connected to PC | madame_newbie | Amazon Kindle | 0 | 12-30-2018 10:30 PM |
Kindle Driver Error When Connected to Calibre | madame_newbie | Devices | 3 | 11-09-2018 05:40 AM |
Kobo Touch driver error in 2.60 | bernard.ryefield | Devices | 3 | 06-24-2016 08:16 AM |
New Calibre Kobo Driver allows deleting of Kobo Free books | timlegge | Kobo Reader | 46 | 08-27-2011 10:16 PM |