Page 1 of 1

Anki not working on Fossapup 64

Posted: Wed Jul 20, 2022 1:56 am
by devfishe

Hi all,

I just installed fossapup 64 on my computer. I am trying to use the flashcard app Anki but the download from puppy package manager is not working. There are two other posts about this problem, one from 2013 and one from 2019. Neither of the solutions work (seems outdated). I'm curious if anyone has any experience or advice getting this working for fossapup? Whenever I type "anki" into the terminal I get the following message:
"root# anki
/usr/bin/mpv: symbol lookup error: /usr/lib/libsmbconf.so.0: undefined symbol: nt_time_to_full_timespec, version SAMBA_UTIL_0.0.1
mpv too old, reverting to mplayer
[10628:10628:0719/194756.366055:ERROR:zygote_host_impl_linux.cc(89)] Running as root without --no-sandbox is not supported. See https://crbug.com/638180.
"
if that helps.

Thanks!


Re: Anki on fossapup 64

Posted: Wed Jul 20, 2022 3:33 am
by xx_T3n0ch_X

Hi,

uninstall the version from the repo, and just go directly to the website https://apps.ankiweb.net/, download the version with qt5 and follow the instructions


Re: Anki on fossapup 64

Posted: Wed Jul 20, 2022 5:41 am
by devfishe

Thank you for your response. I uninstalled, went to the anki website and followed their instructions. It seemed to work, but when I typed anki into the terminal i got this back:

"
root# anki
Anki starting...
Initial setup...
Preparing to run...
Command 'dbus-send --session --print-reply=literal --reply-timeout=1000 --dest=org.freedesktop.portal.Desktop /org/freedesktop/portal/desktop org.freedesktop.portal.Settings.Read string:'org.freedesktop.appearance' string:'color-scheme'' returned non-zero exit status 1.
[22749:22749:0719/233754.169935:ERROR:zygote_host_impl_linux.cc(89)] Running as root without --no-sandbox is not supported. See https://crbug.com/638180.
"

Feel like we're getting closer, but still not working. Thanks!


Re: Anki on fossapup 64

Posted: Wed Jul 20, 2022 6:40 am
by mow9902

Run in from a terminal session with this command - ./anki --no-sandbox

If you want you can create a short one line script containing this command, and then just put a link on your pinboard or whatever app launcher you use.

Works fine for me.


Re: Anki on fossapup 64

Posted: Wed Jul 20, 2022 8:12 am
by devfishe

That worked! One slight annoyance is that a pop-up window that says "please use file>import to import this file" shows up every time I open it. I just close it, and it doesnt seem to affect anything. I'll have more time to test it out later. Thanks for all the help!


Re: Anki on fossapup 64

Posted: Wed Jul 20, 2022 4:29 pm
by devfishe

Hi all,

regarding my last post, it seems like someone on fedora 35 ran into the same issue with the popup window, and was able to get rid of the message with "Exec=env QTWEBENGINE_CHROMIUM_FLAGS="--no-sandbox" anki %f"

https://forums.ankiweb.net/t/please-use ... rtup/14695

I tried that in the "arguments to pass" section in "edit item" on my desktop pin, but it doesnt seem to work. Does anyone know how to translate this to puppy linux? thanks!


Re: Anki not working on Fossapup 64

Posted: Thu Jul 21, 2022 1:43 am
by mow9902

Try this -

In the program directory there is a file named "anki.desktop"

(a) Open that file in your preferred editor
(b) change line 5 from "Exec=anki %f" to "Exec=./anki %f"
(c) Save

..now just click on the file "anki.desktop".

This runs for me without the popup "import" message.