Configure Device Error - Kobo Aura One

Bug #1635909 reported by T Munger on 2016-10-23
22
This bug affects 3 people
Affects Status Importance Assigned to Milestone
calibre
Undecided
David Forrester

Bug Description

I get an error when I select Configure Device from the Device Menu button. I can connect to the device, send epubs to the device (trying to figure out how to send a MOBI file, hence selected configure device). The error is below but the specifics of my device is:

Kobo Aura HD
Software Version 3.19.5761 (0e028f3185, 12/29/15)

====== ERROR MESSAGE ---------
calibre, version 2.70.0
ERROR: Unhandled exception: <b>TypeError</b>:QLineEdit.setText(str): argument 1 has unexpected type 'bool'

calibre 2.70 [64bit] embedded-python: True is64bit: True
Windows-7-6.1.7601-SP1 Windows ('64bit', 'WindowsPE')
('Windows', '7', '6.1.7601')
Python 2.7.9
Windows: ('7', '6.1.7601', 'SP1', 'Multiprocessor Free')
Successfully initialized third party plugins: DeDRM (6, 0, 6) && GetFileName (0, 0, 5) && EpubMerge (2, 0, 14) && Annotations (1, 4, 11) && Hyphenate This! (0, 0, 8) && Search The Internet (1, 7, 6) && KoboTouchExtended (2, 8, 2) && Kobo Utilities (2, 4, 1) && EpubSplit (2, 1, 2) && Consolidate All Library Metadata (2, 0, 28) && X-Ray Creator (2, 2, 0)
Traceback (most recent call last):
  File "site-packages\calibre\gui2\device.py", line 968, in configure_connected_device
  File "calibre_plugins.kobotouch_extended.device.driver", line 105, in config_widget
  File "site-packages\calibre\devices\kobo\driver.py", line 2820, in config_widget
  File "site-packages\calibre\devices\kobo\kobotouch_config.py", line 53, in __init__
  File "site-packages\calibre\devices\kobo\kobotouch_config.py", line 163, in __init__
  File "site-packages\calibre\devices\kobo\kobotouch_config.py", line 392, in __init__
TypeError: QLineEdit.setText(str): argument 1 has unexpected type 'bool'

Changing the component for this bug.

 assignee davidfor
 tag kobo-driver
 status triaged

Changed in calibre:
assignee: nobody → David Forrester (davidfor)
status: New → Triaged
David Forrester (davidfor) wrote :

That is a problem cause by the migration of the driver configuration to the new configuration. This error has occurred because your configuration was last changed with a version of calibre that is at least two years old. When I change the configuration code and wrote the migration code, I missed this possibility. I have just updated the migration code to solve this problem. This should be in the next release of calibre.

In the meantime, the workaround is to delete the configuration file and reconfigure the driver. With calibre closed, delete the file "device_drivers_KOBOTOUCHEXTENDED.py" in the calibre configuration directory.

Kovid Goyal (kovid) on 2016-10-23
Changed in calibre:
status: Triaged → Fix Released
T Munger (tmunge01) wrote :

Thanks! That worked. Thanks... Should I refresh the other kobo files as well to avoid future problems? (e.g.,device_drivers_KOBO.py and device_drivers_KOBOTOUCH.py)

David Forrester (davidfor) wrote :

The Kobo device driver wasn't affected by this change. It only affected the KoboTouch and any other driver that inherited from it. And that basically just means the extended driver. So, removing "device_drivers_KOBO.py" is probably not needed. But, if you don't have one of the older Kobo devices, you don't need the file and can safely remove it.

For the KoboTouch driver, I would suggest opening the configuration to see if it works. If it does, press the OK button for it to be save. If it doesn't, remove the "device_drivers_KOBOTOUCH.py" and redo the configuration if you decide to stop using the extended driver.

dirk71 (dirk71) wrote :

@davidfor Thank you! This was working!

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers