LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-15-2022, 04:21 AM   #1
medictruck
Member
 
Registered: Nov 2017
Location: Kathmandu, Nepal
Distribution: Slackware
Posts: 49

Rep: Reputation: 53
Help with Anki error (Using Slackbuilds for 15)


Hello.

I have encountered this error with the latest build of Anki in Slackbuilds. I went through the "sqg -p anki" route to build the queue & installed it.

I already had previous version of anki installed & working wonderfully. On upgrade, I am facing this error.

Any help would be appreciated.
Attached Thumbnails
Click image for larger version

Name:	Anki error.png
Views:	54
Size:	45.1 KB
ID:	38910  
 
Old 05-15-2022, 12:44 PM   #2
fourtysixandtwo
Member
 
Registered: Jun 2021
Location: Alberta
Distribution: Slackware...mostly
Posts: 322

Rep: Reputation: 215Reputation: 215Reputation: 215
This would be related to the recent upgrades to Flask, click, and werkzeug and I just started looking into it yesterday.

I'm putting together a patch to send to the maintainer already, but here's the notes:
-there's a switch to python3 only
-Flask-Cors needs updating and (will be uploaded today)
-anki DEPs changed to python3-waitress and adding protobuf3
-there's a 3rd DEP it's asking for but no slackbuild exists yet (orjson), luckily it runs without it

Once those are in place it should work again.
 
2 members found this post helpful.
Old 05-15-2022, 11:16 PM   #3
medictruck
Member
 
Registered: Nov 2017
Location: Kathmandu, Nepal
Distribution: Slackware
Posts: 49

Original Poster
Rep: Reputation: 53
Quote:
Originally Posted by fourtysixandtwo View Post
This would be related to the recent upgrades to Flask, click, and werkzeug and I just started looking into it yesterday.

I'm putting together a patch to send to the maintainer already, but here's the notes:
-there's a switch to python3 only
-Flask-Cors needs updating and (will be uploaded today)
-anki DEPs changed to python3-waitress and adding protobuf3
-there's a 3rd DEP it's asking for but no slackbuild exists yet (orjson), luckily it runs without it

Once those are in place it should work again.
Thank you sir for elucidation. I will probably wait then as I lack the technicalities to sort it out myself. But, I do understand things changed. Thanks.
 
Old 05-16-2022, 04:03 PM   #4
fourtysixandtwo
Member
 
Registered: Jun 2021
Location: Alberta
Distribution: Slackware...mostly
Posts: 322

Rep: Reputation: 215Reputation: 215Reputation: 215
Quote:
Originally Posted by medictruck View Post
Thank you sir for elucidation. I will probably wait then as I lack the technicalities to sort it out myself. But, I do understand things changed. Thanks.
Sorry for being so technical, I've been in the weeds of testing those upgrades and finding what is broken and/or missing.

More clearly put...to get anki working:

-install the updated python3-Flask-Cors when it's available
-install python3-waitress
-install protobuf3

Last edited by fourtysixandtwo; 05-21-2022 at 11:33 AM. Reason: corrected as the slackbuild name changed
 
3 members found this post helpful.
Old 05-21-2022, 01:18 AM   #5
Gerswing
LQ Newbie
 
Registered: Jun 2020
Distribution: Slackware
Posts: 15

Rep: Reputation: 10
This may not be Slackware consistent, but you can still install orjson using:

Code:
pip3 install orjson
It does make anki run quicker.
 
1 members found this post helpful.
Old 05-21-2022, 11:57 AM   #6
fourtysixandtwo
Member
 
Registered: Jun 2021
Location: Alberta
Distribution: Slackware...mostly
Posts: 322

Rep: Reputation: 215Reputation: 215Reputation: 215
As noted on the mailing list, there is another python2 package installed as a dependency that may cause problems (it did not in my rudimentary test). It overwrites a file from python-markdown which is included in Slackware 15.

Code:
removepkg Markdown-2.6.11-x86_64-1_SBo

slackpkg reinstall python-markdown
 
2 members found this post helpful.
Old 05-23-2022, 03:40 AM   #7
medictruck
Member
 
Registered: Nov 2017
Location: Kathmandu, Nepal
Distribution: Slackware
Posts: 49

Original Poster
Rep: Reputation: 53
Quote:
Originally Posted by fourtysixandtwo View Post
As noted on the mailing list, there is another python2 package installed as a dependency that may cause problems (it did not in my rudimentary test). It overwrites a file from python-markdown which is included in Slackware 15.

Code:
removepkg Markdown-2.6.11-x86_64-1_SBo

slackpkg reinstall python-markdown
The current updated queue for Slackware 15 built perfectly. This particular package didn't change anything yet. Anki starts and runs fine. Should I still do it though for other packages?
 
Old 05-23-2022, 04:57 PM   #8
fourtysixandtwo
Member
 
Registered: Jun 2021
Location: Alberta
Distribution: Slackware...mostly
Posts: 322

Rep: Reputation: 215Reputation: 215Reputation: 215
Quote:
Originally Posted by medictruck View Post
The current updated queue for Slackware 15 built perfectly. This particular package didn't change anything yet. Anki starts and runs fine. Should I still do it though for other packages?
It's best to fix it now as it might affect things in a more subtle way. Plus the Markdown package will not be removed or the conflicting file fixed any other way until or if python-markdown gets upgraded/patched with a Slackware update.

The list of slackbuilds that use the old python2 Markdown build is small and shrinking so you're unlikely to cause any other issues.
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Anki - can't connect to AnkiWeb from Ubuntu 12.04 charlemagne-is-my-son Linux - Software 0 03-14-2014 05:45 PM
Anki card distribution increase, certain cards are too close together darkstarbyte Linux - Software 5 09-09-2013 05:27 AM
anki on Slackware 13.37 titopoquito Slackware 9 10-13-2011 04:55 AM
LXer: Anki - An alternative learning program LXer Syndicated Linux News 0 06-01-2011 02:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 03:03 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration