FS#57678 - [Anki] "Anki was unable to open your collection file."

Attached to Project: Community Packages
Opened by Robert Kujawa (kujaw) - Wednesday, 28 February 2018, 14:00 GMT
Last edited by Doug Newgard (Scimmia) - Wednesday, 28 February 2018, 22:44 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Cannot start Anki. Error when Anki wants to load profile.


Package: community/anki 2.1.0beta36-1


Error log:

'''
Anki was unable to open your collection file. If problems persist after restarting your computer, please use the Open Backup button in the profile manager.

Debug info:
Traceback (most recent call last):
File "/usr/share/anki/aqt/main.py", line 323, in loadCollection
return self._loadCollection()
File "/usr/share/anki/aqt/main.py", line 352, in _loadCollection
self.moveToState("deckBrowser")
File "/usr/share/anki/aqt/main.py", line 466, in moveToState
getattr(self, "_"+state+"State")(oldState, *args)
File "/usr/share/anki/aqt/main.py", line 472, in _deckBrowserState
self.deckBrowser.show()
File "/usr/share/anki/aqt/deckbrowser.py", line 27, in show
self._renderPage()
File "/usr/share/anki/aqt/deckbrowser.py", line 92, in _renderPage
js=["jquery.js", "jquery-ui.js", "deckbrowser.js"])
File "<decorator-gen-6>", line 2, in stdHtml
File "/usr/share/anki/anki/hooks.py", line 66, in decorator_wrapper
return repl(*args, **kwargs)
File "/usr/share/anki/anki/hooks.py", line 63, in repl
return new(_old=old, *args, **kwargs)
File "/home/kujaw/.local/share/Anki2/addons21/1496166067/internals.py", line 218, in raw_new
return wrapper(cls.instance, *args, **kwargs)
File "/home/kujaw/.local/share/Anki2/addons21/1496166067/stylers.py", line 287, in stdHtml
if self.config.state_on:
AttributeError: 'NoneType' object has no attribute 'config'


Steps to reproduce:
'''
This task depends upon

Closed by  Doug Newgard (Scimmia)
Wednesday, 28 February 2018, 22:44 GMT
Reason for closing:  Not a bug
Comment by Robert Kujawa (kujaw) - Wednesday, 28 February 2018, 14:01 GMT Comment by Doug Newgard (Scimmia) - Wednesday, 28 February 2018, 14:09 GMT
Looks like a problem with an addon you've installed in your home dir (/home/kujaw/.local/share/Anki2/addons21/1496166067/)
Comment by Robert Kujawa (kujaw) - Wednesday, 28 February 2018, 21:33 GMT
I've deleted the addon and it works now. Thanks, I should've tried it first.

Loading...