glutanimate / review-heatmap

Anki add-on to help you keep track of your review activity
https://ankiweb.net/shared/info/1771074083
Other
1.2k stars 88 forks source link

Heatmap not working in Anki 2.1.53 (Qt6) #163

Closed daviddavo closed 2 years ago

daviddavo commented 2 years ago

Problem description

The plugin does not show the heatmap in the main screen. image

Checklist

Please replace the space inside the brackets with an x if the following items apply:

Information about your Anki set-up


    Anki 2.1.53 (989a3ceb) Python 3.10.4 Qt 6.3.0 PyQt 6.3.0
    Platform: Linux
    Flags: frz=False ao=True sv=3
    Add-ons, last update check: 2022-06-01 22:47:50

    ===Add-ons (active)===
    (add-on provided name [Add-on folder, installed at, version, is config changed])
    '' ['trigger_cli', 0, 'None', '']
    Anki Simulator ['817108664', 2021-08-07T21:24, 'None', '']
    AnkiWebView Inspector ['31746032', 2022-04-08T21:44, 'None', '']
    AwesomeTTS Google Cloud Text-to-Speech  Microsoft Azure TTS unofficial ['814349176', 2021-06-16T23:08, 'None', '']
    DA KILL Z0NE - automatic suspension and burying for time-wasting cards ['1565222544', 2019-05-13T08:10, 'None', mod]
    Deck Stats ['1421528223', 2021-06-12T15:30, 'None', '']
    Fast cards reposition ['544982740', 2021-09-19T15:51, 'None', '']
    Hierarchical Tags 2 ['594329229', 2021-03-07T03:25, 'None', '']
    Japanese Support ['3918629684', 2022-03-14T04:32, 'None', '']
    Kanji Colorizer stroke order diagrams ['1964372878', 2020-11-03T19:33, 'None', '']
    Kanji Grid ['909972618', 2019-05-27T10:12, 'None', '']
    LPCG LyricsPoetry Cloze Generator ['2084557901', 2021-07-25T00:17, 'None', '']
    Mini Format Pack ['295889520', 2018-07-24T19:45, 'None', '']
    More Overview Stats 21 ['738807903', 2021-07-30T21:13, 'None', '']
    Progress Graphs and Stats for Learned and Matured Cards ['266436365', 2020-05-04T12:27, 'None', '']
    Push Paradox Sibling Cardistry ['1797395052', 2020-04-04T06:40, 'None', '']
    Remaining time for Anki 21 ['1508357010', 2020-12-13T15:14, '20.12.13i151', mod]
    Review Heatmap ['review_heatmap', 2020-04-30T15:23, 'None', '']
    Syntax Highlighting for Code ['1463041493', 2018-10-07T03:31, 'None', '']
    load balancer ['1417170896', 2020-08-06T01:58, 'None', '']

    ===IDs of active AnkiWeb add-ons===
    1417170896 1421528223 1463041493 1508357010 1565222544 1797395052 1964372878 2084557901 266436365 295889520 31746032 3918629684 544982740 594329229 738807903 814349176 817108664 909972618

    ===Add-ons (inactive)===
    (add-on provided name [Add-on folder, installed at, version, is config changed])
    HoochieMama Randomize Rev Queue ['1460733408', 2020-06-03T15:17, 'None', '']
    HoochiePapa Randomize New Queue ['1173108619', 2020-04-25T05:17, 'None', '']
    More Overview Stats ['2116130837', 2021-05-29T13:24, 'None', '']
    True Retention ['613684242', 2019-05-27T10:01, 'None', '']

Error message (if any)

The terminal raises a lot of warnings, and then an error

Running with temporary Qt5 compatibility shims.
Run with DISABLE_QT5_COMPAT=1 to confirm compatibility with Qt6.
Preparing to run...
Qt info:

GL Type: desktop
Surface Type: OpenGL
Surface Profile: CompatibilityProfile
Surface Version: 4.6
QSG RHI Backend: OpenGL
Using Supported QSG Backend: yes
Using Software Dynamic GL: no
Using Multithreaded OpenGL: yes

Init Parameters:
  *  application-name Anki
  *  browser-subprocess-path /usr/lib/qt6/QtWebEngineProcess
  *  create-default-gl-context
  *  disable-features ConsolidatedMovementXY,InstalledApp,BackgroundFetch,WebOTP,WebPayments,WebUSB,PictureInPicture
  *  disable-setuid-sandbox
  *  disable-speech-api
  *  enable-features NetworkServiceInProcess,TracingServiceInProcess
  *  enable-threaded-compositing
  *  in-process-gpu
  *  use-gl desktop

addons21/1463041493/main.py:34:json is deprecated: please implement your own
addons21/1463041493/config.py:16:json is deprecated: please implement your own
  File "/home/davo/.local/share/Anki2/addons21/266436365/graphs.py", line 100, in <module>
    type="bars", ylabel=_("Cards"), timeTicks=True, ylabel2=""):

_ global will break in the future; please see anki/lang.py
addons21/295889520/main.py:18:isWin is deprecated: please use 'is_win'
addons21/295889520/main.py:18:isMac is deprecated: please use 'is_mac'
awesometts/gui/common.py:68:'Qt.AltModifier' will stop working. Please use 'Qt.KeyboardModifier.AltModifier' instead.
awesometts/gui/common.py:68:'Qt.ControlModifier' will stop working. Please use 'Qt.KeyboardModifier.ControlModifier' instead.
awesometts/gui/common.py:69:'Qt.MetaModifier' will stop working. Please use 'Qt.KeyboardModifier.MetaModifier' instead.
awesometts/gui/common.py:69:'Qt.ShiftModifier' will stop working. Please use 'Qt.KeyboardModifier.ShiftModifier' instead.
review_heatmap/libaddon/platform.py:45:isMac is deprecated: please use 'is_mac'
review_heatmap/libaddon/platform.py:45:isWin is deprecated: please use 'is_win'
libaddon/anki/configmanager.py:42:json is deprecated: please implement your own
libaddon/gui/labelformatter.py:51:'Qt.FindChildrenRecursively' will stop working. Please use 'Qt.FindChildOption.FindChildrenRecursively' instead.
addons21/review_heatmap/heatmap.py:36:json is deprecated: please implement your own
resources/anki21/icons_rc.py:3119:The Qt resource system no longer works on PyQt6. Use QDir.addSearchPath() or mw.addonManager.setWebExports() instead.
resources/anki21/web_rc.py:11786:The Qt resource system no longer works on PyQt6. Use QDir.addSearchPath() or mw.addonManager.setWebExports() instead.
Starting main loop...
gettext _() is deprecated: Due
gettext _() is deprecated: New
addons21/review_heatmap/activity.py:161:schedVer is deprecated: please use 'sched_ver'
conf key heatmap should be fetched with col.get_config(), and saved with col.set_config()
conf key heatmap should be fetched with col.get_config(), and saved with col.set_config()
gettext _() is deprecated: Due
gettext _() is deprecated: New
addons21/review_heatmap/activity.py:161:schedVer is deprecated: please use 'sched_ver'
conf key syntax_highlighting_conf should be fetched with col.get_config(), and saved with col.set_config()
addons21/1463041493/config.py:61:setMod() is deprecated: no longer required
gettext _() is deprecated: Due
gettext _() is deprecated: New
addons21/review_heatmap/activity.py:161:schedVer is deprecated: please use 'sched_ver'
Qt warning: QResource '/review_heatmap/web/d3.min.js' not found or is empty
Qt warning: QResource '/review_heatmap/web/cal-heatmap.js' not found or is empty
Qt warning: QResource '/review_heatmap/web/cal-heatmap.css' not found or is empty
Qt warning: QResource '/review_heatmap/web/review-heatmap.js' not found or is empty
Qt warning: QResource '/review_heatmap/web/review-heatmap.css' not found or is empty
Qt warning: QResource '/review_heatmap/icons/left.svg' not found or is empty
Qt warning: QResource '/review_heatmap/icons/circle.svg' not found or is empty
Qt warning: QResource '/review_heatmap/icons/right.svg' not found or is empty
Qt warning: QResource '/review_heatmap/icons/options.svg' not found or is empty
Qt warning: QResource '/review_heatmap/icons/heart_bw.svg' not found or is empty
Qt warning: QResource '/review_heatmap/web/d3.min.js' not found or is empty
Qt warning: QResource '/review_heatmap/web/cal-heatmap.js' not found or is empty
Qt warning: QResource '/review_heatmap/web/cal-heatmap.css' not found or is empty
Qt warning: QResource '/review_heatmap/web/review-heatmap.js' not found or is empty
Qt warning: QResource '/review_heatmap/web/review-heatmap.css' not found or is empty
JS error /_anki/legacyPageData?id=139927316288064:107 Uncaught ReferenceError: initHeatmap is not defined
daviddavo commented 2 years ago

Uninstalling and installing Anki worked...

Perhaps the problem is with Anki's update system instead, which deletes/loses files