ShoroukAziz / Beautify-Anki

An Anki addon that attempts to give Anki's deck browser and deck overview pages a material design look.

Home Page:http://beautify-anki.shorouk.dev/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Solved bugs: error occurred when app start and opening deck to study

datphan310 opened this issue · comments

Errors

Error
An error occurred. Please start Anki while holding down the shift key, which will temporarily disable the add-ons you have installed.
If the issue only occurs when add-ons are enabled, please use the Tools > Add-ons menu item to disable some add-ons and restart Anki, repeating until you discover the add-on that is causing the problem.
When you've discovered the add-on that is causing the problem, please report the issue on the add-on support site.
Debug info:
Anki 2.1.49 (dc80804a) Python 3.8.6 Qt 5.14.2 PyQt 5.14.2
Platform: Windows 10
Flags: frz=True ao=True sv=2
Add-ons, last update check: 2021-11-19 17:24:24

Caught exception:
Traceback (most recent call last):
  File "aqt\main.py", line 207, in on_focus_changed
  File "aqt\hooks_gen.py", line 2567, in __call__
  File "aqt\main.py", line 749, in on_focus_did_change
  File "aqt\reviewer.py", line 160, in refresh_if_needed
  File "anki\collection.py", line 364, in reset
  File "anki\scheduler\v2.py", line 79, in reset
  File "anki\scheduler\v2.py", line 61, in _update_active_decks
  File "anki\decks.py", line 476, in deck_and_child_ids
  File "anki\decks.py", line 387, in name
  File "anki\decks.py", line 250, in get
  File "anki\decks.py", line 166, in get_legacy
  File "anki\_backend\generated.py", line 230, in get_deck_legacy
  File "google\protobuf\internal\python_message.py", line 569, in init
  File "google\protobuf\internal\python_message.py", line 713, in field_setter
  File "google\protobuf\internal\type_checkers.py", line 163, in CheckValue
  File "C:\python\lib\abc.py", line 98, in __instancecheck__
  File "C:\python\lib\abc.py", line 102, in __subclasscheck__
RecursionError: maximum recursion depth exceeded while calling a Python object

  1. App starts got error: web_content.css.remove("deckbrowser.css")
  2. ReviewHeadmap is overlapped with Beautify-Anki statistics UI

How to fix

  1. Edit file reviewer.py like below image
    image

  2. Edit file __init__.py like below image
    image

  3. Change the config heatmap_position to right