Anki halts with an error message

Error message:

Traceback (most recent call last):
  File "/usr/bin/anki", line 5, in <module>
    from aqt import run
  File "/usr/lib/python3.10/site-packages/aqt/__init__.py", line 40, in <module>
    import anki.lang
  File "/usr/lib/python3.10/site-packages/anki/lang.py", line 12, in <module>
    import anki._backend
  File "/usr/lib/python3.10/site-packages/anki/_backend.py", line 14, in <module>
    from anki import _rsbridge, backend_pb2, i18n_pb2
  File "/usr/lib/python3.10/site-packages/anki/backend_pb2.py", line 5, in <module>
    from google.protobuf.internal import builder as _builder
ImportError: cannot import name 'builder' from 'google.protobuf.internal' (/home/esinkei/.local/lib/python3.10/site-packages/google/protobuf/internal/__init__.py)

Anki app info:


Repository : aur
Name : anki
Version : 2.1.57-1
Description : Helps you remember facts (like words/phrases in a foreign language) efficiently
Groups : None
Licenses : AGPL3
Provides : None
Depends On : python-beautifulsoup4 python-waitress python-decorator python-markdown python-orjson python-protobuf python-pysocks python-distro
python-flask-cors python-jsonschema python-requests python-send2trash python-certifi qt6-multimedia python-pyqt6-webengine qt6-svg
Make Deps : rsync ninja git cargo python-installer libxcrypt-compat nodejs
Check Deps : None
Optional Deps : lame mpv mplayer texlive-most
Conflicts With : anki-bin anki-git anki-official-binary-bundle anki-qt5
Maintainer : AlexBocken
Votes : 111
Popularity : 12.796597
First Submitted : Fri, 17 Sep 2021 22:31:40 +0000
Last Modified : Sun, 05 Feb 2023 00:20:19 +0000
Out Of Date : No

You are welcome to continue using your distro’s version of Anki if you prefer, but if you run into any issues, you will need to report them to your distribution’s package maintainers.
Linux Distro Packages - Anki Manual

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.