NoneType error when trying to open category manager for (publishers|series|tags)

Bug #2018548 reported by John A Tucker
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
calibre
Fix Released
Undecided
Charles Haley

Bug Description

I thought it was a messed up database so I tried calibre in a VM with no library or configuration.

I get this error when trying to manage tags and similar errors for series and publishers.

OS is endeavouros/archlinux with latest updates
calibre is a fresh install of 6.17.0

calibre, version 6.17.0
ERROR: Unhandled exception: <b>TypeError</b>:'NoneType' object is not iterable

calibre 6.17 embedded-python: False
Linux-6.3.1-arch1-1-x86_64-with-glibc2.37 Linux ('64bit', 'ELF')
('Linux', '6.3.1-arch1-1', '#1 SMP PREEMPT_DYNAMIC Mon, 01 May 2023 17:42:39 +0000')
Python 3.11.3
Interface language: en_CA
Traceback (most recent call last):
  File "/usr/lib/calibre/calibre/gui2/tag_browser/ui.py", line 284, in do_tags_list_edit
    d = TagListEditor(self, category=category,
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/calibre/calibre/gui2/dialogs/tag_list_editor.py", line 230, in __init__
    self.fill_in_table(None, tag_to_match, ttm_is_first_letter)
  File "/usr/lib/calibre/calibre/gui2/dialogs/tag_list_editor.py", line 425, in fill_in_table
    self.create_table()
  File "/usr/lib/calibre/calibre/gui2/dialogs/tag_list_editor.py", line 390, in create_table
    for col,width in enumerate(self.table_column_widths):
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: 'NoneType' object is not iterable

Revision history for this message
John A Tucker (jt4201) wrote :

I realized after posting this that I was posting the code from a packaged version. Here is the code from the website install:

calibre, version 6.17.0
ERROR: Unhandled exception: <b>TypeError</b>:'NoneType' object is not iterable

calibre 6.17 embedded-python: True
Linux-6.3.1-arch1-1-x86_64-with-glibc2.37 Linux ('64bit', 'ELF')
('Linux', '6.3.1-arch1-1', '#1 SMP PREEMPT_DYNAMIC Mon, 01 May 2023 17:42:39 +0000')
Python 3.10.1
Interface language: en_CA
Traceback (most recent call last):
  File "calibre/gui2/tag_browser/ui.py", line 284, in do_tags_list_edit
  File "calibre/gui2/dialogs/tag_list_editor.py", line 230, in __init__
  File "calibre/gui2/dialogs/tag_list_editor.py", line 425, in fill_in_table
  File "calibre/gui2/dialogs/tag_list_editor.py", line 390, in create_table
TypeError: 'NoneType' object is not iterable

Revision history for this message
Kovid Goyal (kovid) wrote :

Changing the component for this bug.

 assignee
 status

Changed in calibre:
assignee: nobody → Charles Haley (cbhaley)
status: New → Triaged
Charles Haley (cbhaley)
Changed in calibre:
status: Triaged → Fix Committed
Revision history for this message
Charles Haley (cbhaley) wrote :

BTW: you can work around the problem by installing calibre 6.16, opening the category editor on tags, then closing it. After that, 6.17 will work.

Kovid Goyal (kovid)
Changed in calibre:
status: Fix Committed → Fix Released
Revision history for this message
ownedbycats (ownedbycats) wrote (last edit ):

@John A Tucker - For future reference, you can use the portable version of Calibre (Windows only) to test on a clean config.

EDIT: Oops, you're on Linux.

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

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.