View Single Post
Old 05-12-2023, 11:26 PM   #1
treequin
Junior Member
treequin began at the beginning.
 
treequin's Avatar
 
Posts: 2
Karma: 10
Join Date: May 2023
Device: Onyx Boox Nova 3
Preferences - ERROR: Unhandled exception

Hello, I was setting up Calibre after formatting my laptop and I ran into a problem. In Preferences, when I click on 'Adding books', 'Saving books to disk', and 'Sending books to devices' I get the following errors:

Adding books:
Spoiler:
Code:
calibre, version 6.11.0
ERROR: Unhandled exception: <b>TypeError</b>:HistoryLineEdit.__init__() got an unexpected keyword argument 'parent'

calibre 6.11  embedded-python: False
Linux-6.2.0-20-generic-x86_64-with-glibc2.37 Linux ('64bit', 'ELF')
('Linux', '6.2.0-20-generic', '#20-Ubuntu SMP PREEMPT_DYNAMIC Thu Apr  6 07:48:48 UTC 2023')
Python 3.11.2
Interface language: None
Successfully initialized third party plugins: DeDRM (10, 0, 3)
Traceback (most recent call last):
  File "/usr/lib/calibre/calibre/gui2/preferences/main.py", line 308, in show_plugin
    self.showing_widget = plugin.create_widget(self.scroll_area)
                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/calibre/calibre/customize/__init__.py", line 675, in create_widget
    return widget(parent)
           ^^^^^^^^^^^^^^
  File "/usr/lib/calibre/calibre/gui2/preferences/__init__.py", line 267, in __init__
    self.setupUi(self)
  File "/usr/lib/calibre/calibre/gui2/preferences/adding_ui.py", line 149, in setupUi
    self.opt_auto_add_path = HistoryLineEdit(parent=self.tab_4)
                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  TypeError: HistoryLineEdit.__init__() got an unexpected keyword argument 'parent'

Saving books to disk:
Spoiler:
Code:
calibre, version 6.11.0
ERROR: Unhandled exception: <b>TypeError</b>:SaveTemplate.__init__() got an unexpected keyword argument 'parent'

calibre 6.11  embedded-python: False
Linux-6.2.0-20-generic-x86_64-with-glibc2.37 Linux ('64bit', 'ELF')
('Linux', '6.2.0-20-generic', '#20-Ubuntu SMP PREEMPT_DYNAMIC Thu Apr  6 07:48:48 UTC 2023')
Python 3.11.2
Interface language: None
Successfully initialized third party plugins: DeDRM (10, 0, 3)
Traceback (most recent call last):
  File "/usr/lib/calibre/calibre/gui2/preferences/main.py", line 308, in show_plugin
    self.showing_widget = plugin.create_widget(self.scroll_area)
                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/calibre/calibre/customize/__init__.py", line 675, in create_widget
    return widget(parent)
           ^^^^^^^^^^^^^^
  File "/usr/lib/calibre/calibre/gui2/preferences/__init__.py", line 267, in __init__
    self.setupUi(self)
  File "/usr/lib/calibre/calibre/gui2/preferences/saving_ui.py", line 46, in setupUi
    self.save_template = SaveTemplate(parent=Form)
                         ^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: SaveTemplate.__init__() got an unexpected keyword argument 'parent'

Sending books to devices:
Spoiler:
Code:
calibre, version 6.11.0
ERROR: Unhandled exception: <b>TypeError</b>:SaveTemplate.__init__() got an unexpected keyword argument 'parent'

calibre 6.11  embedded-python: False
Linux-6.2.0-20-generic-x86_64-with-glibc2.37 Linux ('64bit', 'ELF')
('Linux', '6.2.0-20-generic', '#20-Ubuntu SMP PREEMPT_DYNAMIC Thu Apr  6 07:48:48 UTC 2023')
Python 3.11.2
Interface language: None
Successfully initialized third party plugins: DeDRM (10, 0, 3)
Traceback (most recent call last):
  File "/usr/lib/calibre/calibre/gui2/preferences/main.py", line 308, in show_plugin
    self.showing_widget = plugin.create_widget(self.scroll_area)
                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/calibre/calibre/customize/__init__.py", line 675, in create_widget
    return widget(parent)
           ^^^^^^^^^^^^^^
  File "/usr/lib/calibre/calibre/gui2/preferences/__init__.py", line 267, in __init__
    self.setupUi(self)
  File "/usr/lib/calibre/calibre/gui2/preferences/sending_ui.py", line 49, in setupUi
    self.send_template = SaveTemplate(parent=Form)
                         ^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: SaveTemplate.__init__() got an unexpected keyword argument 'parent'

After dismissing the error message, if I open other Preferences sections there are some weird visual glitches and all the options are unresponsive. Nothing else gave me any issues. I've tried restarting Calibre (nothing changed) and restarting in debug mode (I get the same errors in the logs). Any ideas on how to fix this?
Thank you for your help.

PS. In case it matters, I'm using Kubuntu 23.04 and I installed Calibre through the package manager.
treequin is offline   Reply With Quote