View Single Post
Old Yesterday, 08:07 AM   #1
Frogg
Junior Member
Frogg began at the beginning.
 
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())
I get the error :

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'
Referring to :
Code:
    def is2024Device(self):
        return self.detected_device.idProduct in self.LIBRA_COLOR_PRODUCT_ID
But there is no self.detected_device = anywhere.
Do i miss something ?
Frogg is offline   Reply With Quote