FS#70816 - "anki" fails during start-up because of "python-flask" upgrade
Attached to Project:
Arch Linux
Opened by tobaton (tobaton) - Wednesday, 12 May 2021, 12:11 GMT
Last edited by Doug Newgard (Scimmia) - Wednesday, 12 May 2021, 12:13 GMT
Opened by tobaton (tobaton) - Wednesday, 12 May 2021, 12:11 GMT
Last edited by Doug Newgard (Scimmia) - Wednesday, 12 May 2021, 12:13 GMT
|
Details
Description
=========== anki fails to start with the following error ``` Traceback (most recent call last): File "/usr/bin/anki", line 3, in <module> import aqt File "/usr/lib/python3.9/site-packages/aqt/__init__.py", line 44, in <module> from aqt.main import AnkiQt # isort:skip File "/usr/lib/python3.9/site-packages/aqt/main.py", line 22, in <module> import aqt.mediasrv File "/usr/lib/python3.9/site-packages/aqt/mediasrv.py", line 16, in <module> import flask File "/usr/lib/python3.9/site-packages/flask/__init__.py", line 7, in <module> from .app import Flask File "/usr/lib/python3.9/site-packages/flask/app.py", line 19, in <module> from werkzeug.local import ContextVar ImportError: cannot import name 'ContextVar' from 'werkzeug.local' (/usr/lib/python3.9/site-packages/werkzeug/local.py) ``` because of the following upgrade. ``` python-flask (1.1.2-4 -> 2.0.0-1) ``` I can assert this because when downgrading that package. anki can be executed without any problems. ``` $ doas pacman -U /var/cache/pacman/pkg/python-flask-1.1.2-4-any.pkg.tar.zst $ anki ``` Additional info =============== * package version(s): The error occurs with the following versions ``` $ pacman -Q -i anki | grep 'Version' Version : 2.1.35-3 $ pacman -Q -i python-flask | grep 'Version' Version : 2.0.0-1 ``` The error doesn't occur with the following versions ``` > pacman -Q -i anki | grep 'Version' Version : 2.1.35-3 > pacman -Q -i python-flask | grep 'Version' Version : 1.1.2-4 ``` Steps to reproduce ================== 1. Upgrade your system. 2. Open a Python shell and execute the command shown below. This command is what anki executes during startup and that's why anki fails to start. ``` >>> from werkzeug.local import ContextVar Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: cannot import name 'ContextVar' from 'werkzeug.local' (/usr/lib/python3.9/site-packages/werkzeug/local.py) ``` |
This task depends upon
Closed by Doug Newgard (Scimmia)
Wednesday, 12 May 2021, 12:13 GMT
Reason for closing: Duplicate
Additional comments about closing: FS#70815
Wednesday, 12 May 2021, 12:13 GMT
Reason for closing: Duplicate
Additional comments about closing: