Closed OblivionForever closed 5 years ago
Thanks for the very thorough bug report, @OblivionForever, and sorry about the late response (did not have a lot of time lately). I had a couple follow-up questions:
Last:
Thanks!
(Just adding a note for myself here: This might be similar to the issue seen here, which could point to a general problem with Anki's add-on system)
Thanks for your thorough response! I'll respond to each bullet point you provided in order:
I have attempted to try downloading the .ankiaddon, but am not able to open the file. I am on a mac and a bit of a computer noob (sorry haha), so I may be missing something obvious here. I am receiving this response when attempting to open the download you provided:
I re-attempted to disable all add-ons besides Review Heatmap as you described, but still received the same error message pop up when restarting anki.
I went ahead and provided an email address for contact via "ankiglutanimate@gmail.com". I would be happy to give that add-on a try to help in any way.
Thanks for the email! I will be sending you the add-on later today.
As for the .ankiaddon file: You can install it by dragging and dropping it onto the add-ons list (Tools -> add-ons from Anki's main window). Make sure to remove any existing version of review heatmap, however.
Seeing how you're still getting the error with all other add-ons disabled, it's unlikely that this new version will fare any better, but it's worth a try. Either way, it will help us narrow down the problem further.
Awesome, I look forward to that email!
I gave the .ankiaddon file a try as you described and the same problem arose. Hopefully that indeed does help narrow the problem down further for you. Thanks again for all your help!
OK, just to get everyone up to speed who has been following this issue:
@OblivionForever and I managed to reliably reproduce this error both across other add-ons of mine that use the same type of import statement (e.g. Cloze Overlapper) and an older version of Enhance Main Window by @Arthur-Milchior where the issue seemed to have surfaced for the first time. At this point it seems all but certain that this is an issue in Anki itself, so what remains to be done now is to gather as much information as possible to pass it on upstream.
What we've figured out so far is:
from .html import css
, rather than importing addon_module.html.css
, Anki will attempt to import css
from the Python stdlib package html
. This is not standard Python behavior, and it is not clear where it stems from.I have started working on a proof-of-concept add-on to help users reliably reproduce the error and report back with as much debug information as possible. For anyone willing to give it a try, I have just pushed a new release here.
The add-on performs a few tests, and then tells you whether your Anki installation is affected by this problem or not. Should you be one of the affected users, then I would very much appreciate your posting the debug message here. It only contains the following information:
Thanks a lot in advance!
@OblivionForever Sorry for taking up so much of your time with this bug hunt, but if you do get the chance I'd really appreciate it if you could give the test add-on a try and post the debug log here. If nothing else, this might allow me to come up with an interim workaround for the issue for anyone affected by it.
Hi,
I am having the same bug issues as oblivion with review heatmap - I downloaded your import bug test addon below.
@Glutanimate Absolutely! I have provided the necessary information below. Let me know if you need anymore help!
Thanks for posting your debug logs, @OblivionForever and @narboled! These were very helpful. I'm happy to say that I'm finally able to reproduce the bug now. Now it's time to pass the torch to Anki and see if this can be fixed somehow: https://anki.tenderapp.com/discussions/ankidesktop/34836-relative-imports-in-add-ons-failing-under-specific-circumstances
I will let you know in this thread if I have any news.
Thanks again!
Hey guys,
Damien (Anki's creator) just pushed a new beta release of Anki that should hopefully fix the issue. If you can, please do give it a try and let me know if both Import Bug Test and Review Heatmap work with it. Thanks in advance!
Yep! Once i installed 2.1.15 it started working again, and the import bug test reported no issues! Thank you!
Installed the new beta release and received this glorious message with a functioning "Review Heatmap" visible in the background:
Thank you for all of your help @glutanimate; your work within this community is un-matched!
Awesome! Thanks for the feedback, guys. I'm glad we managed to resolve this.
*#### Problem description
*Please describe the issue concisely in here. In case of an error: Walk us through the steps you took to get there. What happened? What did you expect to happen?**
I used the correct steps provided on the github download page, which I have listed here:
After completing all of those steps, this is the image that pops up when I restart anki. The add on is not functional:
Checklist
Please replace the space inside the brackets with an x if the following items apply:
Information about your Anki set-up
Please fill out the section corresponding with your Anki version:
If you are using Anki 2.1
Please open Anki, go to Help → About, click on "Copy Debug Info", and paste the result between the backticks below (if the button does not appear you are using an older version of Anki 2.1 and will need to update first):
If you are using Anki 2.0
Please open Anki, go to Help → About, find the two lines starting with
Version:
andQt
, and copy-paste them between the backticks below:Please fill in details about your operating system (Windows/macOS/Linux, which version):
Please open Anki, go to Tools → Add-ons, take a screenshot of your installed add-ons, and paste it below:
Error message (if any)
If you've received an error message, please copy and paste it between the backticks below: