Unlucky-Life / ankimon

Ankimon is a Anki Addon to Gamify your learning experience
Other
38 stars 4 forks source link

Error Updating Ankimon Add-on #86

Closed sunrucong closed 2 months ago

sunrucong commented 2 months ago

With the new ankimon update that was just released today, I am unable to update the add-on. The Error message includes identifying information, so I can share it with you @Unlucky-Life separately if you'd like.

From what I can comprehend from the error message, it seems to be a permission issue, though I've never had that issue with this add-on (or any Anki add-on for that matter).

I submitted it on ankihub as well but I'm even less familiar with that site than github so I'm not sure if it was delivered correctly.

Unlucky-Life commented 2 months ago

@sunrucong ok hm i see, could you send it to me at leon.moegelin@gmail.com

It might be the sounds integration but im not sure

You could download the 1.269 Update from github here and install it, if that works its propably the sound function (i would guess but the error would be alot of help)

sunrucong commented 2 months ago

It's sent!

As for the workaround of downloading from github, how would I install it? Do I delete the entire Ankimon addon folder? Or are there only a few aspects of the github zip that I need to add?

Unlucky-Life commented 2 months ago

I sent you an email back ! If this wont work let me know !

Hey Sunrucong, I think i know this error! So it seems like something went wrong when updating (but this is easily fixed). Simply do this:

  1. Copy the complete user_files folder to a different location.
  2. Then simply try to update Ankimon with this file: https://github.com/Unlucky-Life/ankimon/releases/download/1.271/ankimon-1.271-anki21-ankiweb.ankiaddon You can simply download it and run it (just double click, like you would install any application) Note! Make sure to have anki closed when installing from the file - this should make sure that the update should run through.
  3. copy back the content of user_files back into the addon_folder That should help you be able to run the application !

If that wont work try this: IMPORTANT: Before deinstalling the addon please copy paste all the files in user_files to a different location as a backup! (Deinstall and Reinstall the Ankimon Addon from Ankiweb and after installing => just copy paste the user_files content into the user_files folder in your ankimon addon folder.)

It looks like the error you presented above was a Issue from Ankihub or atleast the issue happened while updating AnkiHub. I think this should fix the issue ! If this wont work let me know !

sunrucong commented 2 months ago

Hey so looks like the first method didn't work, and I got the Start-Up Failed message; here's the debug info:

Anki 23.12.1 (1a1d4d54) (ao) Python 3.9.15 Qt 6.6.1 PyQt 6.6.1 Platform: Windows-10-10.0.22631

When loading Ankimon by Unlucky-life: Traceback (most recent call last): File "aqt.addons", line 245, in loadAddons File "C:\Users\ruper\AppData\Roaming\Anki2\addons21\1908235722__init.py", line 5788, in rate_this_addon() File "C:\Users\ruper\AppData\Roaming\Anki2\addons21\1908235722\init__.py", line 5710, in rate_this_addon with open(rate_path, 'r') as file: FileNotFoundError: [Errno 2] No such file or directory: 'C:\Users\ruper\AppData\Roaming\Anki2\addons21\1908235722\user_files\rate_this.json'

sunrucong commented 2 months ago

The second method also failed and resulted in the same start-up failed message, but I think it might be due to something in my user_files folder b/c I tried starting it up without my user_files folder replacing the blank one and it started up fine

Here's the debug info for the second one

Anki 23.12.1 (1a1d4d54) (ao) Python 3.9.15 Qt 6.6.1 PyQt 6.6.1 Platform: Windows-10-10.0.22631

When loading Ankimon by Unlucky-life: Traceback (most recent call last): File "aqt.addons", line 245, in loadAddons File "C:\Users\ruper\AppData\Roaming\Anki2\addons21\1908235722__init.py", line 5788, in rate_this_addon() File "C:\Users\ruper\AppData\Roaming\Anki2\addons21\1908235722\init__.py", line 5710, in rate_this_addon with open(rate_path, 'r') as file: FileNotFoundError: [Errno 2] No such file or directory: 'C:\Users\ruper\AppData\Roaming\Anki2\addons21\1908235722\user_files\rate_this.json'

sunrucong commented 2 months ago

Trying the third method from the email now!

Unlucky-Life commented 2 months ago

@sunrucong seems like you just need to paste this file into ur user_files

Just download this file

https://github.com/Unlucky-Life/ankimon/blob/main/src/Ankimon/user_files/rate_this.json

and paste ir into your user_files folder

sunrucong commented 2 months ago

Oh interesting. Well the full redownload is happening right now anyway so once that finishes I’ll install that file!

Thanks again and will let you know how it goes!

On Thu, Apr 25, 2024 at 8:59 PM Unlucky @.***> wrote:

@sunrucong https://github.com/sunrucong seems like you just need to paste this file into ur user_files

Just download this file

https://github.com/Unlucky-Life/ankimon/blob/main/src/Ankimon/user_files/rate_this.json

and paste ir into your user_files folder

— Reply to this email directly, view it on GitHub https://github.com/Unlucky-Life/ankimon/issues/86#issuecomment-2078412982, or unsubscribe https://github.com/notifications/unsubscribe-auth/BGRS2XWVI55XY6AASF5RKWTY7GRHDAVCNFSM6AAAAABGZTVVYWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANZYGQYTEOJYGI . You are receiving this because you were mentioned.Message ID: @.***>

sunrucong commented 2 months ago

Alright the third method also didn't work; same method but now I didn't even put in my updated user_files folder, I'm gonna try the method in the follow-up post you mentioned.

Anki 23.12.1 (1a1d4d54) (ao) Python 3.9.15 Qt 6.6.1 PyQt 6.6.1 Platform: Windows-10-10.0.22631

When loading Ankimon by Unlucky-life: Traceback (most recent call last): File "aqt.addons", line 245, in loadAddons File "C:\Users\ruper\AppData\Roaming\Anki2\addons21\1908235722__init__.py", line 193, in extract_ids_from_file() File "C:\Users\ruper\AppData\Roaming\Anki2\addons21\1908235722__init__.py", line 188, in extract_ids_from_file with open(filename, 'r') as file: FileNotFoundError: [Errno 2] No such file or directory: 'C:\Users\ruper\AppData\Roaming\Anki2\addons21\1908235722\user_files\mypokemon.json'

sunrucong commented 2 months ago

Adding that rate.json worked! So far so good!