Download raw body.
anki-2.1.16p7 package issues
Is anyone able to run the anki package? As far as i read
on the port's makefile the current package version is before upstream
anki required rust and other stuff to build, but there are some
issues with the newer versions of python (3.11 is current, while
anki targets 3.9) My current issues are the program throwing errors
when i try to import a .apkg file:
Import failed. Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/aqt/importing.py",
line 339, in importFile
importer.run()
File "/usr/local/lib/python3.11/site-packages/anki/importing/apkg.py",
line 32, in run
for k, v in list(json.loads(z.read("media").decode("utf8")).items()):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb5 in position
1: invalid start byte
And when i try to set preferences:
Error An error occurred. Please use Tools > Check Database to see
if that fixes the problem. If problems persist, please report the
problem on our support site. Please copy and paste the information
below into your report. Anki 2.1.16 (4bc33e2f) Python 3.11.10 Qt
5.15.13 PyQt 5.15.10 Platform: Linux Flags: frz=False ao=False sv=2
Caught exception: Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/aqt/main.py", line
881, in onPrefs
aqt.dialogs.open("Preferences", self)
File "/usr/local/lib/python3.11/site-packages/aqt/__init__.py",
line 82, in open
instance = creator(*args)
^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/aqt/preferences.py",
line 25, in __init__
self.setupCollection()
File "/usr/local/lib/python3.11/site-packages/aqt/preferences.py",
line 80, in setupCollection
f.lrnCutoff.setValue(qc['collapseTime']/60.0)
TypeError: setValue(self, val: int): argument 1 has unexpected type
'float'
As a side note: I also tried to build anki by myself and i even
tried to get the wheel from a pyenv but nothing works. I guess the
python version is the issue.
Is there a way to fix this?
anki-2.1.16p7 package issues