Solved Anki no longer works

Anki was working nicely until some time in the last week and now I get the following error:

Code:
orjson is missing; DB operations will be slower
Traceback (most recent call last):
  File "/usr/local/bin/anki", line 7, in <module>
    import aqt
  File "/usr/local/share/anki/aqt/__init__.py", line 54, in <module>
    from aqt.main import AnkiQt  # isort:skip
  File "/usr/local/share/anki/aqt/main.py", line 48, in <module>
    from aqt.addons import DownloadLogEntry, check_and_prompt_for_updates, show_log_to_user
  File "/usr/local/share/anki/aqt/addons.py", line 18, in <module>
    import jsonschema
  File "/usr/local/lib/python3.8/site-packages/jsonschema/__init__.py", line 29, in <module>
    from jsonschema.protocols import Validator
  File "/usr/local/lib/python3.8/site-packages/jsonschema/protocols.py", line 33, in <module>
    from jsonschema.validators import RefResolver
  File "/usr/local/lib/python3.8/site-packages/jsonschema/validators.py", line 386, in <module>
    meta_schema=_utils.load_schema("draft3"),
  File "/usr/local/lib/python3.8/site-packages/jsonschema/_utils.py", line 61, in load_schema
    data = path.read_text(encoding="utf-8")
  File "/usr/local/lib/python3.8/pathlib.py", line 1236, in read_text
    with self.open(mode='r', encoding=encoding, errors=errors) as f:
  File "/usr/local/lib/python3.8/pathlib.py", line 1222, in open
    return io.open(self, mode, buffering, encoding, errors, newline,
  File "/usr/local/lib/python3.8/pathlib.py", line 1078, in _opener
    return self._accessor.open(self, flags, mode)
FileNotFoundError: [Errno 2] No such file or directory: '/usr/local/lib/python3.8/site-packages/jsonschema/schemas/draft3.json'

The directory /usr/local/lib/python3.8/site-packages/jsonschema/schemas does not seem to exist.

Something seems to have broken during an upgrade, but I can't find a solution.
 
I'm running the latest of everything (at time of writing): FreeBSD 13.1-RELEASE and Anki 2.1.49_2.
 
Looks like PR 264452. Fixed two days ago in git. If you use binary packages, might take a while until the update for py38-jsonschema is available.
 
OK, thanks. I did a search of bugs, but I didn't see anything there. I'll just wait and see what happens.
 
Today's package upgrade fixed the problem. Now I just have to find out why plasmashell keeps crashing, but that's completely unrelated.
 
Back
Top