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

Addon only loading png icons #147

Closed benedictdaske closed 2 years ago

benedictdaske commented 2 years ago

The addon is not loading the correct gui. Prior to this problem I manually fixed the "from collections.abc" import bug. Maybe the the are related somehow? I already deactivated all other addons to make sure they're not causing the trouble...

image

Furthermore, options tell me the following:

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

Thanks a lot in advance!

WritingWithFire commented 2 years ago

I had the same problem

To solve the problem. You can change your anki to Qt5 version.

benedictdaske commented 2 years ago

Thanks, that worked for me too!

ljredux commented 2 years ago

Good to know there is a solution (thanks LiYuxuanhaha) even though it's... suboptimal for those of using Chocolatey to keep our third party software up to date. Hopefully it will sort itself out sooner rather than later.

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)