You are not logged in.

#1 2021-04-18 20:42:26

gwpl
Member
From: Warsaw, Poland
Registered: 2010-07-10
Posts: 24

anki package [community] does not run after installation

Steps to reproduce:

$ pacman -S anki
$ anki
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
ModuleNotFoundError: No module named 'flask'

I have no clue if it's related but when I tried to install python-flask I got:

sudo pacman -S python-flask
resolving dependencies...
looking for conflicting packages...
:: python-flask and python-flask12 are in conflict. Remove python-flask12? [y/N] y
error: failed to prepare transaction (could not satisfy dependencies)
:: removing python-flask12 breaks dependency 'python-flask12' required by python-flask-socketio2
:: removing python-flask12 breaks dependency 'python-flask12' required by python-gdbgui

I tried to post when clicking "report bug" next to package, but it suggested https://bugs.archlinux.org/task/70502 to post on forum, so I am posting.

Last edited by gwpl (2021-04-18 20:43:07)

Offline

#2 2021-04-18 21:36:00

eschwartz
Trusted User/Bug Wrangler
Registered: 2014-08-08
Posts: 4,097

Re: anki package [community] does not run after installation

python-flask12 is an AUR package, which provides python-flask, and anki correctly depends on python-flask.

Since your AUR package is intended to fully replace the modern flask versions, it may or may not completely break applications that depend on current versions of flask.

However, you didn't get API screwups trying to run anki -- you got an *ImportError*, which means *no* version of python-flask is installed. Or more accurately, I suspect your AUR package did not get rebuilt for python 3.8 -> 3.9
In that case, you're probably not using it and can uninstall:

- python-gdbgui
- python-flask-socketio2

replace python-flask12 with python-flask

Optionally, install the latest version of python-gdbgui from the AUR, which does not use either python-flask12 or python-flask-socketio2 (it does use python-flask and python-flask-socketio).

Finally...

Resolve to update AUR packages more often, rebuild AUR packages when they stop working due to dependency updates, and clean up orphaned packages you no longer need.


Managing AUR repos The Right Way -- aurpublish (now a standalone tool)

Offline

#3 2021-04-18 21:48:00

gwpl
Member
From: Warsaw, Poland
Registered: 2010-07-10
Posts: 24

Re: anki package [community] does not run after installation

Thank you for clarifications!

Now I feel reassured I can uninstall those other packages.

Just to confirm, after uninstalling conflicting packages things `anki` worked!

Althought,  `pacman -S anki` was not sufficient,

I had to run `pacman -S python-flask` manually additionally.

Therefore I guess there may be a need to add dependency to `anki` [community] package. (not AUR package).

Offline

#4 2021-04-18 21:50:58

Scimmia
Fellow
Registered: 2012-09-01
Posts: 8,638

Re: anki package [community] does not run after installation

It already has the dep. You had an AUR package that said it "provides" it, which means it satisfies that dep. Nothing to be done in the repos here, this is purely a problem of your own making.

Offline

#5 2021-04-18 22:08:12

gwpl
Member
From: Warsaw, Poland
Registered: 2010-07-10
Posts: 24

Re: anki package [community] does not run after installation

Thank you! Now I see where is issue! AUR package had this in it's  "provides"  therefore pacman thought that it was resolved. Refreshing staff smile. Thank you:).

Offline

Board footer

Powered by FluxBB