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

it won't run on anki 2.1.51 #148

Closed aliafshany closed 2 years ago

aliafshany commented 2 years ago

Problem description

I was using Anki 2.1.49 when I opted to update, which resulted in the failure of this add-on.

Checklist

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

Information about your Anki set-up

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 to the add-on author. Debug info: Anki 2.1.51 (cf78a555) Python 3.9.7 Qt 6.2.3 PyQt 6.2.3 Platform: Mac 11.6.2 Flags: frz=True ao=True sv=3 Add-ons, last update check: 2022-05-02 19:32:59 Add-ons possibly involved: ⁨Review Heatmap⁩

Caught exception: Traceback (most recent call last): File "/Users/afshany/Library/Application Support/Anki2/addons21/review_heatmap/gui/options.py", line 217, in optionsaction.triggered.connect(lambda : invokeOptionsDialog()) File "/Users/afshany/Library/Application Support/Anki2/addons21/review_heatmap/gui/options.py", line 209, in invokeOptionsDialog dialog = RevHmOptions(config, mw, parent=parent) File "/Users/afshany/Library/Application Support/Anki2/addons21/review_heatmap/gui/options.py", line 107, in init super(RevHmOptions, self).init( File "/Users/afshany/Library/Application Support/Anki2/addons21/review_heatmap/libaddon/gui/dialog_options.py", line 81, in init super(OptionsDialog, self).init( File "/Users/afshany/Library/Application Support/Anki2/addons21/review_heatmap/libaddon/gui/basic/dialog_mapped.py", line 154, in init self.setData(data) File "/Users/afshany/Library/Application Support/Anki2/addons21/review_heatmap/libaddon/gui/basic/dialog_mapped.py", line 162, in setData self.interface.set(widget_name, key, value) File "/Users/afshany/Library/Application Support/Anki2/addons21/review_heatmap/libaddon/gui/basic/interface.py", line 270, in set return setter(widget, data) File "/Users/afshany/Library/Application Support/Anki2/addons21/review_heatmap/libaddon/gui/basic/interface.py", line 354, in setValue self._setDateTime(widget, data) File "/Users/afshany/Library/Application Support/Anki2/addons21/review_heatmap/libaddon/gui/basic/interface.py", line 800, in _setDateTime return qdatetimeedit.setDateTime(self._createDateTimeFromUnix(curtime)) File "/Users/afshany/Library/Application Support/Anki2/addons21/review_heatmap/libaddon/gui/basic/interface.py", line 793, in _createDateTimeFromUnix qdatetime.setTime_t(unixtime) AttributeError: 'QDateTime' object has no attribute 'setTime_t'

Error message (if any)

If you've received an error message, please copy and paste it between the backticks below:

aliafshany commented 2 years ago

this is what it looks like now

image

aliafshany commented 2 years ago

it is because of QT6 which review-heatmap is not compatibale with this yet.

rbereziuk commented 2 years ago

The author of the plugin wrote about the update

Update (2022-04-09): Currently putting the final touches on the next Review Heatmap update which will add support for Anki 2.1.50. The release will be next week, so please stay tuned!

https://ankiweb.net/shared/info/1771074083

aliafshany commented 2 years ago

the pluggin works on 2.1.51 the problem was QT6, if you install qt5 version everythong would work great

ChrisNiekler commented 2 years ago

I think the qt5 does not work with the Ubuntu LTS 22.04 and PopOS! LTS 22.04. So users of Linux-based operating systems can not use it right now. There is a bug where the deck screen is just blank.

angelaambroz commented 2 years ago

The blank deck screen can be fixed (only?) on QT6. But yeah, then you have no review heatmap. :sob:

jacopofar commented 2 years ago

As a workaround you can use QTWEBENGINE_CHROMIUM_FLAGS="--no-sandbox" anki to start the Qt5 version, it works for me on Fedora under Wayland. Qt6 does not need that, but breaks the plugin

glutanimate commented 2 years ago

Hey guys,

Thanks for the report! This should be fixed with v1.0.0 which I just released on AnkiWeb: https://ankiweb.net/shared/info/1771074083 (no need for a manual installation any more, you can just copy the add-on code into Anki as with other add-ons.)

If you run into any issues please do let me know!

(cf. #136)