FS#55325 - [anki] v2.1.0beta14 now depends on python-markdown

Attached to Project: Community Packages
Opened by Alessandro Caputo (Alexpin) - Tuesday, 29 August 2017, 06:44 GMT
Last edited by Sergej Pupykin (sergej) - Wednesday, 30 August 2017, 09:59 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Sergej Pupykin (sergej)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:

Steps to reproduce:
Start up anki v2.1.0beta14 without having the package python-markdown. You get the following error:

Error during startup:
Traceback (most recent call last):
File "/usr/share/anki/aqt/main.py", line 47, in __init__
self.setupAddons()
File "/usr/share/anki/aqt/main.py", line 598, in setupAddons
import aqt.addons
File "/usr/share/anki/aqt/addons.py", line 8, in <module>
import markdown
ModuleNotFoundError: No module named 'markdown'

Additionally, commenting out the following lines in /usr/share/anki/aqt/addons.py makes anki start up normally (after killing the previous process, if it is left hanging):
#8 import markdown
#206 return markdown.markdown(open(path).read())

This commit https://github.com/dae/anki/commit/737a8d934e8d3c20f4a24c268c94e421377893b2 introduced the dependency on python-markdown.

Installing python-markdown fixes the problem.
This task depends upon

Closed by  Sergej Pupykin (sergej)
Wednesday, 30 August 2017, 09:59 GMT
Reason for closing:  Fixed
Comment by Alessandro Caputo (Alexpin) - Tuesday, 29 August 2017, 06:51 GMT
The severity dropdown didn't work but the severity of this bug is "High" because the application refuses to start. I apologize for this.

Loading...