I’m having problem to browse my cards

Hi! I imported a file successfuly, but card list didn’t show anything and 2 windows pop up.



‘list’ object has no ‘items’



Anki 2.1.49 (dc80804a) Python 3.8.6 Qt 5.14.2 PyQt 5.14.2
Platform: Windows 10
Flags: frz=True ao=False sv=2
Add-ons, last update check: 2021-11-07 17:04:10

Caught exception:
Traceback (most recent call last):
File “aqt\browser\sidebar\tree.py”, line 312, in mouseReleaseEvent
File “aqt\browser\sidebar\tree.py”, line 415, in _on_search
AttributeError: ‘NoneType’ object has no attribute ‘item_for_index’

I have tried to check my database, delect all add-ons and even import my file again.
How to solve this problem? I appreciate any help that can offer.

The following in the debug console should fix it.

mw.col.conf["savedFilters"] = {}

https://docs.ankiweb.net/misc.html#debug-console

Did you import any .apkg files created with a separate tool, or use any add-ons?

Yes. I tried a new tool to import cards 2 days ago. This problem has solved. Thanks.

No problem. Please let the tool author know, so this does not affect other users too.

Hey, I got the same issue but I cannot solve is using the debug console. I use add-ons but the problem stays even if I disable them. Thanks in advance

Anki 2.1.49 (dc80804a) Python 3.8.6 Qt 5.14.2 PyQt 5.14.2

Platform: Mac 10.15.7

Flags: frz=True ao=True sv=2

Add-ons, last update check: 2022-05-08 19:50:20

Caught exception:

Traceback (most recent call last):

File “aqt/browser/sidebar/tree.py”, line 312, in mouseReleaseEvent

File “aqt/browser/sidebar/tree.py”, line 415, in _on_search

AttributeError: ‘NoneType’ object has no attribute ‘item_for_index’

Please follow the steps on When problems occur - Frequently Asked Questions