jac241 / anki_killstreaks Goto Github PK
View Code? Open in Web Editor NEWA Halo and Call of Duty inspired add-on to gamify Anki and make reviewing more bearable
License: GNU Affero General Public License v3.0
A Halo and Call of Duty inspired add-on to gamify Anki and make reviewing more bearable
License: GNU Affero General Public License v3.0
The Qt5 compatibility code is now off by default, which may break some add-ons that haven't been updated to support Qt6 in the last 2 years. If you find any have broken, please report the issues to the add-on author, and start Anki after setting the env var ENABLE_QT5_COMPAT to 1 to temporarily restore the compatibility code.
Error
Un complemento que has instalado ha fallado al cargarse. Si los problemas persisten, por favor ve a Herramientas> Menú de complementos o deshabilita este complemento.
Mientras cargando 'Anki Killstreaks':
Traceback (most recent call last):
File "aqt.addons", line 239, in loadAddons
File "C:\Users\Khonkhortisan\AppData\Roaming\Anki2\addons21\579111794\__init__.py", line 15, in <module>
from . import main
File "C:\Users\Khonkhortisan\AppData\Roaming\Anki2\addons21\579111794\main.py", line 41, in <module>
from .menu import connect_menu
File "C:\Users\Khonkhortisan\AppData\Roaming\Anki2\addons21\579111794\menu.py", line 11, in <module>
from . import profile_settings, networking, chase_mode
File "C:\Users\Khonkhortisan\AppData\Roaming\Anki2\addons21\579111794\profile_settings.py", line 13, in <module>
from .ui.forms.profile_settings_dialog import Ui_ProfileSettingsDialog
File "C:\Users\Khonkhortisan\AppData\Roaming\Anki2\addons21\579111794\ui\forms\profile_settings_dialog.py", line 10, in <module>
from PyQt5 import QtCore, QtGui, QtWidgets
ModuleNotFoundError: No module named 'PyQt5'
Fix#1: profile_settings_dialog.py
#from PyQt5 import QtCore, QtGui, QtWidgets
try:
from PyQt6 import QtCore, QtGui, QtWidgets
except ImportError:
from PyQt5 import QtCore, QtGui, QtWidgets
Error
Se ha producido un error. Por favor inicia la Anki manteniendo presionadas ples teclas Mayús y la flecha hacia abajo, lo que desactivará temporalmente los extensiones que tienes instaladas.
Si este error persiste sólo cuando tienes las extensiones activadas, utiliza Herramientas > Menú de Extensiones para deshabilitar alguna extensión y reinicia el Anki, repitiendo este proceso hasta que descubras qué extensión en concreto es la que causa el problema
Cuando hayas descubierto la extensión que causaba el problema, por favor informa de esto a [sitio de soporte de extensiones](https://forums.ankiweb.net/c/add-ons/11).
Información de depuración:
Anki 23.10 (72e57456) Python 3.9.15 Qt 6.5.2 PyQt 6.5.2
Platform: Windows-10-10.0.19045
Flags: frz=True ao=True sv=3
Add-ons, last update check: 2023-10-14 19:57:57
Complementos posiblemente implicados: Anki Killstreaks, right hand reviews hjkl answer shortcuts Handy Answer Keys configurable
Caught exception:
Traceback (most recent call last):
File "aqt.webview", line 608, in handler
File "aqt.reviewer", line 543, in _onAnswerButton
File "decorator", line 232, in fun
File "anki.hooks", line 89, in decorator_wrapper
File "anki.hooks", line 86, in repl
File "C:\Users\Khonkhortisan\AppData\Roaming\Anki2\addons21\850294128\__init__.py", line 137, in newAnswerCard
_old(self, min(self.mw.col.sched.answerButtons(self.card), ease))
File "decorator", line 232, in fun
File "anki.hooks", line 89, in decorator_wrapper
File "anki.hooks", line 83, in repl
File "C:\Users\Khonkhortisan\AppData\Roaming\Anki2\addons21\579111794\controllers.py", line 261, in build_on_answer_wrapper
on_answer(ease=ease, deck_id=deck_id)
File "C:\Users\Khonkhortisan\AppData\Roaming\Anki2\addons21\579111794\controllers.py", line 217, in call_method
return getattr(factory_function(), method)(*args, **kwargs)
File "C:\Users\Khonkhortisan\AppData\Roaming\Anki2\addons21\579111794\controllers.py", line 271, in on_answer
earned_medals = self.controller.on_answer(*args, **kwargs)
File "C:\Users\Khonkhortisan\AppData\Roaming\Anki2\addons21\579111794\controllers.py", line 245, in on_answer
self.show_achievements(self.store.current_displayable_medals)
File "C:\Users\Khonkhortisan\AppData\Roaming\Anki2\addons21\579111794\main.py", line 57, in show_tool_tip_if_medals
showToolTip(displayable_medals)
File "C:\Users\Khonkhortisan\AppData\Roaming\Anki2\addons21\579111794\main.py", line 183, in showToolTip
lab.setFrameStyle(QFrame.Panel)
AttributeError: type object 'QFrame' has no attribute 'Panel'
Fix#2: main.py like noobj2/Anki-Advanced-Review-Bottombar#75
#lab.setFrameStyle(QFrame.Panel)
lab.setFrameStyle(QFrame.Shape.Panel)
lab.setLineWidth(2)
#lab.setWindowFlags(Qt.ToolTip)
lab.setWindowFlags(Qt.WindowType.ToolTip)
p = QPalette()
#p.setColor(QPalette.Window, QColor(local_conf["tooltip_color"]))
p.setColor(QPalette.ColorRole.Window, QColor(local_conf["tooltip_color"]))
#p.setColor(QPalette.WindowText, QColor("#f7f7f7"))
p.setColor(QPalette.ColorRole.WindowText, QColor("#f7f7f7"))
It's working now! Please ignore :) Thanks for making this amazing add-on
Someone else's e-mail was shown in the profile. I logged out, and now I cannot log back in with my email (doesn't give me a message after entering login info, box just disappears after I hit Enter).
I want to sign up to use the Chase add on, but the website will not let me log in. I receive this message:
''An unhandled lowlevel error occurred. The application logs may have details.''
Experiencing a crash when I attempt to edit a card (cloze or basic) during review using the "edit field during review" add-on. Since it's a popular add-on I figured that I should report the issue. Hopefully, it's an easy fix. I haven't reproduced this error while editing an image occluded card.
Here's the crash below:
Before the crash, editing the card:
Error
...
Debug info:
Anki 2.1.21 (f1734a47) Python 3.8.0 Qt 5.13.1 PyQt 5.14.1
Platform: Mac 10.15.3
Flags: frz=True ao=True sv=1
Add-ons, last update check: 2020-03-10 10:45:09
Add-ons possibly involved: Anki Killstreaks, Image Occlusion Enhanced for Anki 21 alpha, Edit Field During Review Cloze
Traceback (most recent call last):
File "aqt/webview.py", line 30, in cmd
File "aqt/webview.py", line 96, in _onCmd
File "aqt/webview.py", line 422, in _onBridgeCmd
File "</Applications/Anki.app/Contents/MacOS/decorator.pyc:decorator-gen-52>", line 2, in _linkHandler
File "anki/hooks.py", line 530, in decorator_wrapper
File "anki/hooks.py", line 527, in repl
File "/Users/Nicholas/Library/Application Support/Anki2/addons21/385888438/__init__.py", line 226, in myLinkHandler
reviewer._showAnswer()
File "</Applications/Anki.app/Contents/MacOS/decorator.pyc:decorator-gen-18>", line 2, in _showAnswer
File "anki/hooks.py", line 530, in decorator_wrapper
File "anki/hooks.py", line 527, in repl
File "/Users/Nicholas/Library/Application Support/Anki2/addons21/1374772155/main.py", line 233, in onShowAnswer
return _old(self)
File "aqt/reviewer.py", line 242, in _showAnswer
File "aqt/gui_hooks.py", line 750, in __call__
File "anki/hooks.py", line 475, in runHook
File "/Users/Nicholas/Library/Application Support/Anki2/addons21/579111794/controllers.py", line 185, in call_method
return getattr(factory_function(), method)(*args, **kwargs)
File "/Users/Nicholas/Library/Application Support/Anki2/addons21/579111794/controllers.py", line 220, in on_show_answer
self.store = self.store.on_show_answer()
File "/Users/Nicholas/Library/Application Support/Anki2/addons21/579111794/streaks.py", line 175, in on_show_answer
state_machines=[m.on_show_answer() for m in self.state_machines]
File "/Users/Nicholas/Library/Application Support/Anki2/addons21/579111794/streaks.py", line 175, in <listcomp>
state_machines=[m.on_show_answer() for m in self.state_machines]
AttributeError: 'AnswerShownState' object has no attribute 'on_show_answer'
@jac241 Thanks for the great add-on. My boys (and I) love it.
That said, in our family we have 5 family members that use Anki, and we have a number of different communal computers that we all do Anki on.
Right now, Anki Killstreaks doesn't support Anki's built-in multiple profiles. So, when we switch between profiles, the Anki Killstreak stats and current streak, continue into the new user/profile.
It would be great if each Anki profile could have it's on unique Anki Killstreaks profile.
If you are willing to build in this feature, we'd be glad to do some beta testing on it for you.
When I close and re-open Anki then reload the website, my stats don't refresh.
I found that when I accidentally clicked a number button (2 or 3 for good or easy) on the front side of a card (instead of the spacebar to "Show Answer"), the add-on would take that as a correct answer and add to the streak. Is this something you could fix in the next update?
I noticed including "hard" presses in streaks was part of the most recent update. Is there a way to turn this off or have "Hard" as an option to include?
All the boards are down, including your website. I am able to still see my badges I've earned.
you're currently only checking if Anki is older than 2.1 to run old functions, so this works for version = "23.10"
from anki.utils import point_version
#anki21 = version.startswith("2.1.")
#anki21 = version.startswith("2.1.") or int(version.split(".")[0]) >= 23
anki21 = version.startswith("2.1.") or point_version() >= 231000
Error
Un complemento que has instalado ha fallado al cargarse. Si los problemas persisten, por favor ve a Herramientas> Menú de complementos o deshabilita este complemento.
Mientras cargando 'Anki Killstreaks':
Traceback (most recent call last):
File "aqt.addons", line 239, in loadAddons
File "C:\Users\Khonkhortisan\AppData\Roaming\Anki2\addons21\579111794\__init__.py", line 15, in <module>
from . import main
File "C:\Users\Khonkhortisan\AppData\Roaming\Anki2\addons21\579111794\main.py", line 33, in <module>
from . import chase_mode
File "C:\Users\Khonkhortisan\AppData\Roaming\Anki2\addons21\579111794\chase_mode.py", line 14, in <module>
from . import accounts, tooltips
File "C:\Users\Khonkhortisan\AppData\Roaming\Anki2\addons21\579111794\accounts.py", line 6, in <module>
from .networking import sra_base_url, shared_headers
File "C:\Users\Khonkhortisan\AppData\Roaming\Anki2\addons21\579111794\networking.py", line 15, in <module>
from . import accounts, tooltips
File "C:\Users\Khonkhortisan\AppData\Roaming\Anki2\addons21\579111794\tooltips.py", line 10, in <module>
from .config import local_conf
File "C:\Users\Khonkhortisan\AppData\Roaming\Anki2\addons21\579111794\config.py", line 20, in <module>
from .consts import *
File "C:\Users\Khonkhortisan\AppData\Roaming\Anki2\addons21\579111794\consts.py", line 26, in <module>
addon_path = os.path.dirname(__file__).decode(sys_encoding)
AttributeError: 'str' object has no attribute 'decode'
Versión 23.10 (1f6938d7)
Python 3.9.15 Qt 6.5.2 PyQt 6.5.2
I really wanted to use this add-on because I'm doing a major Anki haul in review for a test next Monday but minutes after making a profile, it says the login credentials are invalid. I tried changing the password, it said "password changed prohibited, current password doesn't match," yet it actually was the correct current password. I tried one more time and then the website crashed.
I thought it might've been a browser issue, so I went to Safari instead and the website worked so I tried making a new account. The log-in credentials were invalid too and then the website crashed there and on my phone. Now I'm stuck with no way to use this add-on. Please, this is the only "fun" compatible add-on I can use right now.
I loved this add-on but "chase mode" suddenly stopped working and it now always says "start reviewing to get ranked" and does not change. I tried turning off all of my add-ons except this one. I tried downgrading to an older version of Anki. I even tried making a new account on ankiachievements.com. Nothing seems to work. Please help!
Assume it's something to do with timezone handling / utc mismatch.
@jac241: Thanks for making this addon. My family all use Anki and love it. I wasn't sure where to post a question, and didn't want to put it on the addons page, so I hope posting it here is preferred.
Anyhow, is there anyway I can modify the addon to have "hard" count as part of the streak? Right now only good and easy count towards the killstreak, but we'd like to have "hard" count also, as we regularly press "hard" when doing reviews.
Thanks in advance for any response.
Does it work on anki 2.1.49? I would love to use it.
I clicked on Modern Warfare remastered and now I cant get past the error to choose a different game. I really love this add on and ive tried reinstalling and deleting files multiple times. for some reason Anki remembers that I chose MWR even though I tried deleting all the folders associated with the addon. Any help would be greatly appreciated. Thanks
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 on the add-on support site.
Debug info:
Anki 2.1.49 (dc80804a) Python 3.8.6 Qt 5.14.2 PyQt 5.14.2
Platform: Windows 10
Flags: frz=True ao=True sv=3
Add-ons, last update check: 2022-07-19 13:54:32
Caught exception:
Traceback (most recent call last):
File "C:\Users\ort7\AppData\Roaming\Anki2\addons21\579111794\menu.py", line 181, in set_check_for_auto_switch_game
File "C:\Users\ort7\AppData\Roaming\Anki2\addons21\579111794\game.py", line 16, in load_auto_switch_game_status
File "C:\Users\ort7\AppData\Roaming\Anki2\addons21\579111794\controllers.py", line 42, in new_method
File "C:\Users\ort7\AppData\Roaming\Anki2\addons21\579111794\controllers.py", line 101, in load_profile
File "C:\Users\ort7\AppData\Roaming\Anki2\addons21\579111794\controllers.py", line 129, in _build_reviewing_controller
File "C:\Users\ort7\AppData\Roaming\Anki2\addons21\579111794\streaks.py", line 1519, in get_next_game_id
ValueError: 'mwr' is not in list
Caught exception:
Traceback (most recent call last):
File "C:\Users\ort7\AppData\Roaming\Anki2\addons21\579111794\menu.py", line 185, in set_check_for_show_chase_mode
File "C:\Users\ort7\AppData\Roaming\Anki2\addons21\579111794\controllers.py", line 42, in new_method
File "C:\Users\ort7\AppData\Roaming\Anki2\addons21\579111794\controllers.py", line 101, in load_profile
File "C:\Users\ort7\AppData\Roaming\Anki2\addons21\579111794\controllers.py", line 129, in _build_reviewing_controller
File "C:\Users\ort7\AppData\Roaming\Anki2\addons21\579111794\streaks.py", line 1519, in get_next_game_id
ValueError: 'mwr' is not in list
Hello, I discovered a glitch that allows for an award without flipping cards. If you are on a card without flipping, you can hit the "3" or "Good" button repeatedly and indefinitely resulting in awards and streaks. Sometimes can hit 3/good accidentally skewing results. Just wanted to point that out in case it can be fixed, thanks!
Hi. Frequently (vast majority of the time) the Anki Chase score/rank is very inaccurate. For instance, Anki currently says I'm rank 71 with a score of 32. The Leaderboard, which is accurate, however shows a current rank of 11 with a score of 2219. Here are a couple of other things I've noted:
I downloaded this ADDon today And found this Error ↧↧↧ at any time during Reviewing.
(( Version 2.1.48)) Windows 10
please save it 👀 @jac241
Error
Debug info:
Anki 2.1.48 (fb07bad3) Python 3.8.6 Qt 5.14.2 PyQt 5.14.2
Platform: Windows 10
Flags: frz=True ao=True sv=2
Add-ons, last update check: 2021-09-24 16:19:12
Caught exception:
Traceback (most recent call last):
File "C:\Users\aboal\AppData\Roaming\Anki2\addons21\188886658_init_.py", line 21, in
cuts[i] = ("2", lambda: self.shortcutFunction(2))
File "C:\Users\aboal\AppData\Roaming\Anki2\addons21\188886658_init_.py", line 10, in shortcutFunction
self._answerCard(response)
File "decorator.py", line 232, in fun
File "anki\hooks.py", line 89, in decorator_wrapper
File "anki\hooks.py", line 83, in repl
File "C:\Users\aboal\AppData\Roaming\Anki2\addons21\579111794\controllers.py", line 260, in build_on_answer_wrapper
on_answer(ease=ease, deck_id=deck_id)
File "C:\Users\aboal\AppData\Roaming\Anki2\addons21\579111794\controllers.py", line 216, in call_method
return getattr(factory_function(), method)(*args, **kwargs)
File "C:\Users\aboal\AppData\Roaming\Anki2\addons21\579111794\controllers.py", line 42, in new_method
self.load_profile()
File "C:\Users\aboal\AppData\Roaming\Anki2\addons21\579111794\controllers.py", line 84, in load_profile
migrate_database(settings=self._db_settings)
File "C:\Users\aboal\AppData\Roaming\Anki2\addons21\579111794\persistence.py", line 43, in migrate_database
backend.apply_migrations(backend.to_apply(migrations))
File "C:\Users\aboal\AppData\Roaming\Anki2\addons21\579111794_vendor\yoyo\backends.py", line 435, in apply_migrations
self.apply_migrations_only(migrations, force=force)
File "C:\Users\aboal\AppData\Roaming\Anki2\addons21\579111794_vendor\yoyo\backends.py", line 447, in apply_migrations_only
self.apply_one(m, force=force)
File "C:\Users\aboal\AppData\Roaming\Anki2\addons21\579111794_vendor\yoyo\backends.py", line 492, in apply_one
migration.process_steps(self, "apply", force=force)
File "C:\Users\aboal\AppData\Roaming\Anki2\addons21\579111794_vendor\yoyo\migrations.py", line 267, in process_steps
raise exc_info[1].with_traceback(exc_info[2])
File "C:\Users\aboal\AppData\Roaming\Anki2\addons21\579111794_vendor\yoyo\migrations.py", line 248, in process_steps
getattr(step, direction)(backend, force)
File "C:\Users\aboal\AppData\Roaming\Anki2\addons21\579111794_vendor\yoyo\migrations.py", line 310, in apply
getattr(self.step, direction)(backend, force)
File "C:\Users\aboal\AppData\Roaming\Anki2\addons21\579111794_vendor\yoyo\migrations.py", line 410, in apply
self._execute(cursor, self._apply)
File "C:\Users\aboal\AppData\Roaming\Anki2\addons21\579111794_vendor\yoyo\migrations.py", line 376, in _execute
cursor.execute(stmt)
sqlite3.OperationalError: table achievements already exists
I am looking at competitors who have a ranking above mine, especially in the weekly category and it seems I have more of the same medals (or the same amount of medals as someone a few ranks higher) and therefore should be ranked higher than I am, with more points. I am not sure what's going on... username: want2bepathologist. Has there been a change in point system?
The chase mode prevents the https://ankiweb.net/shared/info/1739176371 (clickable tags) to being opened (open the tag section on the browser directly)
Disabling the chase mode fix it
Sorry for the trouble -> just a solution to a problem in case that if someone have it -> known issue section
Hello,
The past few weeks the chase feature has not updated on my Anki. It just adds up my points from the previous day. I'm up to 100,000.
Also, my ankiachievements website has not updated in several weeks. It says it was "Last updated at 14:07:05 UTC."
Thank you so much, this is my favorite feature on anki. Just wondering about this one error and if there is anything I can do to address it on my end. Thank you.
After downloading this addon, I got a message in the bottom lefthand corner while reviewing that says:
"Sign up and log in to AnkiAchievements.com via "Killstreaks" --> "Profile Settings..."
to activate chase mode, or hide it in the Killstreaks menu.
(What's this?)"
Version 2.1.49 / windows 10 home
i find this error during the past versions ( and this forced me for Togglr this Addon)
I faced this error ↧↧↧ at and page.
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, repeat 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 on the add-ons section of our support site.
Debug info:
Anki 2.1.49 (dc80804a) Python 3.8.6 Qt 5.14.2 PyQt 5.14.2
Platform: Windows 10
Flags: frz=True ao=True sv=2
Add-ons, last update check: 2021-12-13 22:46:17
Traceback (most recent call last):
File "aqt\main.py", line 523, in loadCollection
File "aqt\main.py", line 672, in moveToState
File "aqt\main.py", line 679, in _deckBrowserState
File "decorator.py", line 232, in fun
File "anki\hooks.py", line 89, in decorator_wrapper
File "anki\hooks.py", line 80, in repl
File "aqt\deckbrowser.py", line 71, in show
File "decorator.py", line 232, in fun
File "anki\hooks.py", line 89, in decorator_wrapper
File "anki\hooks.py", line 81, in repl
File "C:\Users\aboal\AppData\Roaming\Anki2\addons21\579111794\main.py", line 227, in inject_medals_with_js
achievements=get_achievements_repo().todays_achievements(
File "C:\Users\aboal\AppData\Roaming\Anki2\addons21\579111794\controllers.py", line 42, in new_method
self.load_profile()
File "C:\Users\aboal\AppData\Roaming\Anki2\addons21\579111794\controllers.py", line 84, in load_profile
migrate_database(settings=self._db_settings)
File "C:\Users\aboal\AppData\Roaming\Anki2\addons21\579111794\persistence.py", line 43, in migrate_database
backend.apply_migrations(backend.to_apply(migrations))
File "C:\Users\aboal\AppData\Roaming\Anki2\addons21\579111794_vendor\yoyo\backends.py", line 435, in apply_migrations
self.apply_migrations_only(migrations, force=force)
File "C:\Users\aboal\AppData\Roaming\Anki2\addons21\579111794_vendor\yoyo\backends.py", line 447, in apply_migrations_only
self.apply_one(m, force=force)
File "C:\Users\aboal\AppData\Roaming\Anki2\addons21\579111794_vendor\yoyo\backends.py", line 492, in apply_one
migration.process_steps(self, "apply", force=force)
File "C:\Users\aboal\AppData\Roaming\Anki2\addons21\579111794_vendor\yoyo\migrations.py", line 267, in process_steps
raise exc_info[1].with_traceback(exc_info[2])
File "C:\Users\aboal\AppData\Roaming\Anki2\addons21\579111794_vendor\yoyo\migrations.py", line 248, in process_steps
getattr(step, direction)(backend, force)
File "C:\Users\aboal\AppData\Roaming\Anki2\addons21\579111794_vendor\yoyo\migrations.py", line 310, in apply
getattr(self.step, direction)(backend, force)
File "C:\Users\aboal\AppData\Roaming\Anki2\addons21\579111794_vendor\yoyo\migrations.py", line 410, in apply
self._execute(cursor, self._apply)
File "C:\Users\aboal\AppData\Roaming\Anki2\addons21\579111794_vendor\yoyo\migrations.py", line 376, in _execute
cursor.execute(stmt)
sqlite3.OperationalError: table achievements already exists
I've been trying to retrieve my password for the email "[email protected]" for almost a week. I check my junk mail everyday, I check my inbox and it's still not there :(
Also if i don't answer the cards right away, is the score supposed to decrease?
Hello, very nice addon. How can I change the font size from the chase mode? I have the zoom addon and when I zoom in the score/rank chase stats zoom too. I want to lower the size of them or have them fixed size if possible thanks
I am having an issue with this add-on that when I open Anki, the app is very slow to start up, and when It does I immediately receive an error message. Also, the add-on does not respond when I try to click the entry in the top menu bar. Also, when I try to close Anki, I receive an error message and it will not close so I have to end the process in task manager. I have pasted the error that I received below. Really hoping to get this figured out, because this sounds like a really fun app that will help me enjoy my Anki time a lot more. Thank you for the work that you put into it.
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 on the add-on support site.
Debug info:
Anki 2.1.33 (3f403040) Python 3.8.0 Qt 5.14.1 PyQt 5.14.1
Platform: Windows 10
Flags: frz=True ao=True sv=1
Add-ons, last update check: 2020-09-05 14:56:58
Traceback (most recent call last):
File "C:\Users\Jesus Freak 007\AppData\Roaming\Anki2\addons21\579111794_vendor\yoyo\backends.py", line 316, in _insert_lock_row
self.execute(
File "C:\Users\Jesus Freak 007\AppData\Roaming\Anki2\addons21\579111794_vendor\yoyo\backends.py", line 372, in execute
cursor.execute(sql, params)
sqlite3.IntegrityError: UNIQUE constraint failed: yoyo_lock.locked
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "aqt\main.py", line 521, in loadCollection
File "aqt\main.py", line 661, in moveToState
File "aqt\main.py", line 668, in _deckBrowserState
File "<C:\Program Files\Anki\decorator.pyc:decorator-gen-10>", line 2, in show
File "anki\hooks.py", line 638, in decorator_wrapper
File "anki\hooks.py", line 630, in repl
File "C:\Users\Jesus Freak 007\AppData\Roaming\Anki2\addons21\579111794\main.py", line 227, in inject_medals_with_js
achievements=get_achievements_repo().todays_achievements(
File "C:\Users\Jesus Freak 007\AppData\Roaming\Anki2\addons21\579111794\controllers.py", line 42, in new_method
self.load_profile()
File "C:\Users\Jesus Freak 007\AppData\Roaming\Anki2\addons21\579111794\controllers.py", line 84, in load_profile
migrate_database(settings=self._db_settings)
File "C:\Users\Jesus Freak 007\AppData\Roaming\Anki2\addons21\579111794\persistence.py", line 40, in migrate_database
with backend.lock():
File "contextlib.py", line 113, in enter
File "C:\Users\Jesus Freak 007\AppData\Roaming\Anki2\addons21\579111794_vendor\yoyo\backends.py", line 302, in lock
self._insert_lock_row(pid, timeout)
File "C:\Users\Jesus Freak 007\AppData\Roaming\Anki2\addons21\579111794_vendor\yoyo\backends.py", line 330, in _insert_lock_row
raise exceptions.LockTimeout(
579111794._vendor.yoyo.exceptions.LockTimeout: Process 25376 has locked this database (run yoyo break-lock to remove this lock)
Caught exception:
Traceback (most recent call last):
File "C:\Users\Jesus Freak 007\AppData\Roaming\Anki2\addons21\579111794_vendor\yoyo\backends.py", line 316, in _insert_lock_row
self.execute(
File "C:\Users\Jesus Freak 007\AppData\Roaming\Anki2\addons21\579111794_vendor\yoyo\backends.py", line 372, in execute
cursor.execute(sql, params)
sqlite3.IntegrityError: UNIQUE constraint failed: yoyo_lock.locked
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "aqt\progress.py", line 43, in handler
File "aqt\main.py", line 142, in on_window_init
File "aqt\main.py", line 190, in setupProfileAfterWebviewsLoaded
File "aqt\main.py", line 231, in setupProfile
File "aqt\main.py", line 427, in loadProfile
File "aqt\gui_hooks.py", line 1984, in call
File "anki\hooks.py", line 583, in runHook
File "C:\Users\Jesus Freak 007\AppData\Roaming\Anki2\addons21\378638814\main.py", line 257, in onProfileLoaded
mw.reset(True)
File "aqt\main.py", line 699, in reset
File "aqt\main.py", line 661, in moveToState
File "aqt\main.py", line 668, in _deckBrowserState
File "<C:\Program Files\Anki\decorator.pyc:decorator-gen-10>", line 2, in show
File "anki\hooks.py", line 638, in decorator_wrapper
File "anki\hooks.py", line 630, in repl
File "C:\Users\Jesus Freak 007\AppData\Roaming\Anki2\addons21\579111794\main.py", line 227, in inject_medals_with_js
achievements=get_achievements_repo().todays_achievements(
File "C:\Users\Jesus Freak 007\AppData\Roaming\Anki2\addons21\579111794\controllers.py", line 42, in new_method
self.load_profile()
File "C:\Users\Jesus Freak 007\AppData\Roaming\Anki2\addons21\579111794\controllers.py", line 84, in load_profile
migrate_database(settings=self._db_settings)
File "C:\Users\Jesus Freak 007\AppData\Roaming\Anki2\addons21\579111794\persistence.py", line 40, in migrate_database
with backend.lock():
File "contextlib.py", line 113, in enter
File "C:\Users\Jesus Freak 007\AppData\Roaming\Anki2\addons21\579111794_vendor\yoyo\backends.py", line 302, in lock
self._insert_lock_row(pid, timeout)
File "C:\Users\Jesus Freak 007\AppData\Roaming\Anki2\addons21\579111794_vendor\yoyo\backends.py", line 330, in _insert_lock_row
raise exceptions.LockTimeout(
579111794._vendor.yoyo.exceptions.LockTimeout: Process 25376 has locked this database (run yoyo break-lock to remove this lock)
I see the medals twice when I open a deck.
This is due to the new killstreak update v 2.0.1
Anki Version 2.1.22 (0ecc189a)
Python 3.8.1 Qt 5.14.1 PyQt 5.14.1
OS: Ubuntu 20.04
Screenshot here
https://i.postimg.cc/xdwH2fhK/anki-killstreak-double.png
Hi @jac241,
Thank you for developing the addon. Could this addon be made available for 2.1.22? I don't see any difference between 2.1.22 and 2.1.23.
Kind regards,
William
console warning
addons21\579111794\config.py:18:json is deprecated: please implement your own
console warning
Not found: 579111794\web\spinner.css
https://ankiachievements.com
error
<template>:2: ImportWarning: can't resolve package from __spec__ or __package__, falling back on __name__ and __path__
This ImportWarning appears when going to the main screen and opening a deck. The images show as pop-ups while reviewing, but not on the main screen/deck screen. The error appears once per badge. Disabling this addon removes the error.
partial workaround?: Leaving AnkiWebView Inspector open replaces the images with <img src="data:image/png;base64,…">
and they then load, but the error is still thrown.
git bisect: works on 2.1.54 release commit b6a7760, fails on commit e39fb74e8 ankitects/anki@2.1.54...e39fb74, likely ankitects/anki@8c515e3 Template err improvements * Specify if error occured in a browser template
workaround?: comment out
I made an account as Agirl_hasN0name and I never received a verification email. Yesterday I noticed my score didn't match my rating and the same thing happened today. As I was going through my reviews I stopped to edit a card and when I returned I had randomly switched to a score of 977, rank 96 under "jonweih". Not sure why but the same thing happened yesterday. I just logged out as soon as I noticed. I wish I had more info, but no errors came up. Just thought I would let you guys know to check what's going on.
This is an awesome addon by the way, thank you so much for all the effort and hard work you guys put into making this!
we can contact together on my email if you want
[email protected]
I am not sure if its just me, but I am having these issues with my loadcollection when I open up the app. I am on the newest version of Anki 2.1.21
Debug info:
Traceback (most recent call last):
File "aqt/main.py", line 433, in loadCollection
File "aqt/main.py", line 468, in _loadCollection
File "aqt/main.py", line 589, in moveToState
File "aqt/main.py", line 596, in _deckBrowserState
File "</Applications/Anki.app/Contents/MacOS/decorator.pyc:decorator-gen-104>", line 2, in show
File "anki/hooks.py", line 530, in decorator_wrapper
File "anki/hooks.py", line 522, in repl
File "/Users/reyesos18/Library/Application Support/Anki2/addons21/579111794/main.py", line 213, in inject_medals_with_js
achievements=get_achievements_repo().todays_achievements(
File "/Users/reyesos18/Library/Application Support/Anki2/addons21/579111794/controllers.py", line 34, in new_method
self.load_profile()
File "/Users/reyesos18/Library/Application Support/Anki2/addons21/579111794/controllers.py", line 75, in load_profile
migrate_database(settings=self._db_settings)
File "/Users/reyesos18/Library/Application Support/Anki2/addons21/579111794/persistence.py", line 37, in migrate_database
backend = get_backend(settings.db_uri)
File "/Users/reyesos18/Library/Application Support/Anki2/addons21/579111794/_vendor/yoyo/connections.py", line 93, in get_backend
return backend_class(parsed, migration_table)
File "/Users/reyesos18/Library/Application Support/Anki2/addons21/579111794/_vendor/yoyo/backends.py", line 165, in init
self._connection = self.connect(dburi)
File "/Users/reyesos18/Library/Application Support/Anki2/addons21/579111794/_vendor/yoyo/backends.py", line 640, in connect
conn = self.driver.connect(
sqlite3.OperationalError: unable to open database file
And then I get an error saying this,
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 on the add-ons section of our support site.
Debug info:
Anki 2.1.21 (f1734a47) Python 3.8.0 Qt 5.13.1 PyQt 5.14.1
Platform: Mac 10.15.3
Flags: frz=True ao=True sv=?
Add-ons, last update check: 2020-03-09 10:16:25
Add-ons possibly involved: Advanced Browser
Caught exception:
Traceback (most recent call last):
File "aqt/main.py", line 245, in onOpenProfile
File "aqt/main.py", line 342, in loadProfile
File "</Applications/Anki.app/Contents/MacOS/decorator.pyc:decorator-gen-130>", line 2, in loadCollection
File "anki/hooks.py", line 530, in decorator_wrapper
File "anki/hooks.py", line 521, in repl
File "</Applications/Anki.app/Contents/MacOS/decorator.pyc:decorator-gen-128>", line 2, in loadCollection
File "anki/hooks.py", line 530, in decorator_wrapper
File "anki/hooks.py", line 521, in repl
File "</Applications/Anki.app/Contents/MacOS/decorator.pyc:decorator-gen-126>", line 2, in loadCollection
File "anki/hooks.py", line 530, in decorator_wrapper
File "anki/hooks.py", line 522, in repl
File "/Users/reyesos18/Library/Application Support/Anki2/addons21/874215009/advancedbrowser/basic_fields.py", line 75, in myLoadCollection
mw.col.db._db.create_function("nameForDeck", 1, self.nameForDeck)
AttributeError: 'NoneType' object has no attribute 'db'
I have had a few days where I'll get to about 18000 points or so and then an error message will put up on the bottom left saying that I am not connected to the server anymore. When I got back and try to sign in, my progress has reset to what it was that morning.
Chase mode appears when it isn't turned on - very distracting
Switching profiles between different users does not change the user who is logged in to Anki Killstreaks
i just installed the addon and it won't load, when i restarted anki this error popped up. tried restarting it for a few times but it still won't work.
An add-on you installed failed to load. If problems persist, please go to the Tools>Add-ons menu, and disable or delete the add-on.
When loading 'Anki Killstreaks':
Traceback (most recent call last):
File "/Users/dorischan/Library/Application Support/Anki2/addons21/579111794/init.py", line 15, in
os.environ['IN_TEST_SUITE']
File "os.py", line 669, in getitem
KeyError: 'IN_TEST_SUITE'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "aqt/addons.py", line 71, in loadAddons
File "/Users/dorischan/Library/Application Support/Anki2/addons21/579111794/init.py", line 17, in
from . import main
File "/Users/dorischan/Library/Application Support/Anki2/addons21/579111794/main.py", line 29, in
from .streaks import InitialStreakState, HALO_MULTIKILL_STATES,
File "/Users/dorischan/Library/Application Support/Anki2/addons21/579111794/streaks.py", line 11, in
import attr
ModuleNotFoundError: No module named 'attr'
The app isn't working and I've tried updating, deleting and re-downloading both the add-on and Anki itself.
Even though you can easily cheat with this add-on by answering "Correct" every time, there's a clear bug that results in more killstreaks even for honest Anki users.
Simply going back to a previous card with Ctrl+Z (for example to change tags) and pressing "Correct" again enables you to earn infinitely more killstreaks on that card, as long as you keep repeating the procedure.
For someone repeatedly using the Ctrl+Z feature it's a big problem as it skews their results - and they may not be aware of it happening, which is even worse.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.