Package Details: anki-official-binary-bundle 2.1.49-1

Git Clone URL: https://aur.archlinux.org/anki-official-binary-bundle.git (read-only, click to copy)
Package Base: anki-official-binary-bundle
Description: The official binary shipped with the tested versions of the dependent libraries.
Upstream URL: https://apps.ankiweb.net
Licenses: GNU AGPL
Conflicts: anki, anki-git
Provides: anki
Submitter: kuklinistvan
Maintainer: kuklinistvan
Last Packager: kuklinistvan
Votes: 28
Popularity: 1.95
First Submitted: 2019-03-04 08:44 (UTC)
Last Updated: 2021-11-08 15:17 (UTC)

Latest Comments

AlexBocken commented on 2022-05-13 16:28 (UTC)

2.1.52 has been released. Consider upgrading although testing has been limited.

https://github.com/ankitects/anki/releases/tag/2.1.52

kuklinistvan commented on 2022-05-03 18:05 (UTC)

"2.1.51 was just released. It contains the latest bug fixes and feature improvements, but some add-ons do not support it yet." https://apps.ankiweb.net/ Skipping this release

doplis commented on 2022-03-16 11:17 (UTC)

When will the QtWebEngineProcess issue get a real fix?

kotetsu commented on 2022-02-17 12:18 (UTC)

Thanks for the tip @Goetz That fixes the issue.

Goetz commented on 2022-02-16 15:54 (UTC)

This error seems to cover all packages which depend on QtWebEngineProcess. See AUR rstudio-desktop-bin 2021.09.2.382-1 for example. The same solution for rstudio works also for ank anki --no-sandbox.

MisterPresident commented on 2022-02-16 08:11 (UTC) (edited on 2022-02-16 08:41 (UTC) by MisterPresident)

Having the same issue like @Perfi, switched to anki, anki-bin didn't work either :-(

Perfi commented on 2022-02-16 06:03 (UTC)

For the last few days the Anki window has been blank - there's just the "File/Edit/Tools/Help" top menu bar, and the entire window below is empty. Not sure what changed, but switching to https://aur.archlinux.org/packages/anki (and closing my eyes during the whole Basel install... :D) helped for now, which is mostly what I wanted to report here.

kuklinistvan commented on 2022-01-01 12:56 (UTC)

@derivator Thank you for getting in touch, and I wish you and everyone a happy new year! The Docker image is only there to provide an easy way to build the package regardless of the builder's currently used distribution.

I'm not sure if removing small tools aiding the build from this repository is justified, some restructuring could be of use, though.

If you have the time to "emulate" a PR for me (clone the repository, modify its content according to your idea, host it somewhere publicly and share the link), I can review and incorporate your changes.

derivator commented on 2022-01-01 12:47 (UTC)

@kuklinistvan You seem to have included some files in the git repository that are not necessary to build the package. As far as I can tell they're harmless stuff related to building in a docker environment, but I wasn't expecting them and haven't seen any other packages do this, so it seemed unusual and suspicious. I don't know what the AUR-best-practice is, but maybe these files could be removed? Or at least put into a seperate folder with an explanation of what they're for and that they're not necessary to build the package?

Rumpelstilzchen commented on 2021-11-08 16:45 (UTC) (edited on 2021-11-08 16:46 (UTC) by Rumpelstilzchen)

@kuklinistvan :-)

kuklinistvan commented on 2021-11-08 15:17 (UTC)

@Rumpelstilzchen, thanks for the updated patch!

Rumpelstilzchen commented on 2021-10-27 08:13 (UTC)

Some changes have been made to install.sh in version 2.1.49. Here is an updated version of install_sh.patch:

--- install.sh.orig 2020-12-10 06:36:44.000000000 +0100
+++ install.sh  2020-12-30 14:54:50.834734784 +0100
@@ -15,7 +15,7 @@
 mkdir -p "$PREFIX"/share/anki
 cp -av * "$PREFIX"/share/anki/
 mkdir -p "$PREFIX"/bin
-ln -sf "$PREFIX"/share/anki/bin/Anki "$PREFIX"/bin/anki
+ln -sf /usr/share/anki/bin/Anki "$PREFIX"/bin/anki
 # fix a previous packaging issue where we created this as a file
 (test -f "$PREFIX"/share/applications && rm "$PREFIX"/share/applications)||true
 mkdir -p "$PREFIX"/share/pixmaps
@@ -26,9 +26,4 @@
 mv anki.desktop "$PREFIX"/share/applications/;\
 mv anki.1 "$PREFIX"/share/man/man1/)

-xdg-mime install anki.xml --novendor
-xdg-mime default anki.desktop application/x-colpkg
-xdg-mime default anki.desktop application/x-apkg
-xdg-mime default anki.desktop application/x-ankiaddon
-
 echo "Install complete. Type 'anki' to run."

escape0707 commented on 2021-10-11 17:08 (UTC) (edited on 2021-11-08 15:31 (UTC) by escape0707)

Because this package use bundled Python and Qt5.

If you are searching for a package more suitable for anki-bin, maybe give a look at this PKGBUILD I wrote? If you think it’s useful then I could upload it to AUR, too.

Edit: anki-bin is published now.

thiagowfx commented on 2021-10-11 16:02 (UTC)

Is there any reason why this package isn't named simply anki-bin, following AUR conventions?

AKLex commented on 2021-10-09 18:55 (UTC)

I found out the reasons for this error: I set xonsh as default shell. It is not set var LANG.

AKLex commented on 2021-09-29 17:22 (UTC) (edited on 2021-09-29 19:57 (UTC) by AKLex)

  1. Thank you, I learned how to do it
  2. uname -a
Linux 5.14.7-arch1-1 #1 SMP PREEMPT +0000
  1. localectl
System locale: LANG=ru_RU.UTF-8
VC Keymap: /var/.../dvorak.map
X11 layout: n/a
  1. locale -a
C
POSIX
en_US.utf-8
ru_RU.utf-8
  1. import sys; print sys.getfilesystemencoding()
utf-8
  1. grep -v '#' /etc/locale.gen
en_US.UTF-8 UTF-8
ru_RU.UTF-8 UTF-8
  1. env | grep LANG is empty...
  2. set /etc/environment
ANKI_WAYLAND=1 anki
LANG=ru_RU.UTF-8

error fixed! Thanks!

escape0707 commented on 2021-09-28 23:22 (UTC) (edited on 2021-09-28 23:25 (UTC) by escape0707)

What are the results if you followed this thread and the one it links to?

Please, do correctly use Markdown syntax for codes this time. You can learn the details from the helping text above the edit panel.

It could be better if you edit your previous comment to utilize it, too.

AKLex commented on 2021-09-28 19:22 (UTC) (edited on 2021-09-29 17:12 (UTC) by AKLex)

locale.conf

LANG=ru_RU.UTF-8

anki need EN locale? I must add next?

export LC_CTYPE=en_US.UTF-8 anki

escape0707 commented on 2021-09-27 07:36 (UTC) (edited on 2021-09-28 23:31 (UTC) by escape0707)

@AKLex

Exception: Anki requires a UTF-8 locale.

This could be the cause.

AKLex commented on 2021-09-27 06:41 (UTC)

how to fix error on start anki on wayland:

Traceback (most recent call last): File "aqt/init.py", line 30, in <module> UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-2: ordinal not in range(128)

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "runanki.py", line 3, in <module> File "<frozen importlib._bootstrap>", line 991, in _find_and_load File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 671, in _load_unlocked File "/home/dae/venv/lib/python3.8/site-packages/PyInstaller-4.0.dev0+g2886519-py3.8.egg/PyInstaller/loader/pyimod03_importers.py", line 625, in exec_module File "aqt/init.py", line 32, in <module> Exception: Anki requires a UTF-8 locale. [1973] Failed to execute script runanki

Nocifer commented on 2021-09-23 22:00 (UTC)

That's 32,63MB on my system.

lolilolicon commented on 2021-09-23 14:25 (UTC)

Thanks, and the installed size of anki-release-source?

Nocifer commented on 2021-09-23 13:32 (UTC)

@lolilolicon I installed this a couple of days ago (before I found out about anki-release-source and switched to that) and it was around 350MB or so.

lolilolicon commented on 2021-09-23 00:14 (UTC)

Hey guys, just curious, what's the installation size of this?

pacman -Qi anki-official-binary-bundle | grep Size

For comparison:

$ pacman -Qi anki=2.1.35-3 | grep Size
Installed Size  : 37.52 MiB

Of course, this excludes the dependencies, (but again, these deps are not bogarted by Anki alone.)

escape0707 commented on 2021-09-19 16:36 (UTC) (edited on 2021-09-28 23:28 (UTC) by escape0707)

@emiham @tohsakafan WUT? Isn't this QT_IM_MODULE=ibus telling anki to use ibus rather than Fcitx(5)?

How could this work for using anki with fcitx5? I still can't get them to work together now, with or without that envvar.

As anki being dropped to AUR, I think is will be a bigger problem later.

Edit:

I just figured out that anki from this package or pip install aqt will use PyQt5's bundled Qt and its PyQt5/Qt5/plugins/platforminputcontexts doesn't include the appropriate plugin libfcitx5platforminputcontextplugin.so, which is provided by community/fcitx5-qt, to handle inputting with fcitx5. I tried to manually copy this file, restart the app, and it works.

But I'm using anki-git now, though.

Edit again:

Fcitx5 does have an ibus frontend so you guys’ solution is variable.

kaji-ryoji commented on 2021-09-10 15:45 (UTC)

Hi, for some reason I cannot get the application to show up in gnome desktop env. Any ideas why?

tohsakafan commented on 2021-08-29 01:32 (UTC)

@emiham Thank you for this fix! I have found zero mentions of this problem in 2 hours of searching and here you are saving the day

homocomputeris commented on 2021-08-10 19:37 (UTC)

Is it possible that some dependencies are missing?

File "runanki.py", line 4, in <module>
  File "aqt/__init__.py", line 435, in run
  File "aqt/__init__.py", line 490, in _run
  File "aqt/profiles.py", line 134, in setupMeta
  File "aqt/profiles.py", line 501, in _loadMeta
resetting corrupt _global
Qt info: Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway. 
Qt info: Could not load the Qt platform plugin "xcb" in "" even though it was found. 
Qt fatal: This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, webgl, xcb.

emiham commented on 2021-08-09 23:41 (UTC)

@exploder-jimmy The only way I've found is with export QT_IM_MODULE = ibus. Not sure how that interacts with other programs.

exploder-jimmy commented on 2021-05-12 08:47 (UTC)

How do I make Fcitx5 to work with it?

Maxr commented on 2021-04-17 06:29 (UTC)

Version 2.1.43:

https://pastebin.com/f5a6PzhY

kuklinistvan commented on 2020-11-29 10:45 (UTC)

tatsumoto, you're right. Fixed.

tatsumoto commented on 2020-11-22 22:05 (UTC)

I'm sure this package should conflict with anki as well, not just anki-git.

Daddy commented on 2019-10-05 00:18 (UTC)

I see, this package takes about 300 MB more disk space :)

kuklinistvan commented on 2019-09-23 17:54 (UTC)

Hello, Daddy!

As long as the community version works, choose that. This package contains all the python libraries bundled whereas the community version depends on the appropriate libraries to spare disk space, just the way the package manager should do its job.

Before I have written this PKGBUILD I have encountered some kind of python library version incompatibilities - and somewhere, maybe on a forum it was advised to use the official bundled version from the website to fix the misbehavior, as it contains the versions of these libraries Anki originally was tested with. I wanted to provide a mean for auto-updating this version along with all the packages on my system, therefore I have created this shortcut and uploaded it to AUR.

My bad, I have forgotten what the original problem was and also where the idea of using the original bundle came from, but at the time it was the fix for the problem. If it comes into my mind I will post another comment here :)

Daddy commented on 2019-09-21 16:25 (UTC)

I'm asking myself; Should I choose this package or the community version. Both versions are up to date. What's the benefit of installing this bundle?