Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Anki won't start with addon enabled #146

Closed
akavi1 opened this issue Aug 29, 2022 · 3 comments · Fixed by #147
Closed

Anki won't start with addon enabled #146

akavi1 opened this issue Aug 29, 2022 · 3 comments · Fixed by #147
Labels
bug Something isn't working as expected critical Should be done ASAP

Comments

@akavi1
Copy link

akavi1 commented Aug 29, 2022

I enabled the addon and it worked fine until I quit the Anki app. Now when I try to open Anki, I get this error. The profile selection page does not appear. I opened Anki in recovery mode and disabled the addon, and I was then able to open Anki normally.

Anki 2.1.54 (b6a7760c) Python 3.9.7 Qt 6.3.1 PyQt 6.3.1
Platform: Mac 12.4
Flags: frz=True ao=True sv=?
Add-ons, last update check: 2022-08-29 18:28:34
Add-ons possibly involved: ⁨Life Drain⁩

Caught exception:
Traceback (most recent call last):
File "aqt.progress", line 118, in handler
File "aqt.main", line 197, in on_window_init
File "aqt.main", line 288, in setupProfile
File "aqt.main", line 294, in showProfileManager
File "aqt.main", line 672, in moveToState
File "aqt.hooks_gen", line 3945, in call
File "/Users/name/Library/Application Support/Anki2/addons21/715575551/main.py", line 52, in
lambda *args: lifedrain.screen_change(args[0]))
File "/Users/name/Library/Application Support/Anki2/addons21/715575551/lifedrain.py", line 172, in screen_change
self.deck_manager.update()
File "/Users/name/Library/Application Support/Anki2/addons21/715575551/deck_manager.py", line 45, in update
deck_id = self._get_deck_id()
File "/Users/name/Library/Application Support/Anki2/addons21/715575551/deck_manager.py", line 159, in _get_deck_id
conf = self._deck_conf.get()
File "/Users/name/Library/Application Support/Anki2/addons21/715575551/database.py", line 58, in get
deck = self._main_window.col.decks.current()
AttributeError: 'NoneType' object has no attribute 'decks'

@Yutsuten
Copy link
Owner

Thanks for the bug report. This is a regression from the last release I did, and seems to only happen if you have more than one profile. I'll upload a fix for this within a few minutes.
Sorry for the trouble.

@Yutsuten Yutsuten added bug Something isn't working as expected critical Should be done ASAP labels Aug 30, 2022
@Yutsuten
Copy link
Owner

I pushed a new release with the fix. Could you see if it is now working from your side?

@akavi1
Copy link
Author

akavi1 commented Aug 30, 2022

It works now. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working as expected critical Should be done ASAP
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants