Ajatt-Tools / PasteImagesAsWebP

🍙 An Anki add-on that makes your images small.
https://ankiweb.net/shared/info/1151815987
GNU Affero General Public License v3.0
24 stars 6 forks source link

Trying to git clone the addon ends up in an error #15

Closed kuator closed 2 years ago

kuator commented 2 years ago

Running git clone 'https://github.com/Ajatt-Tools/PasteImagesAsWebP.git' ~/.local/share/Anki2/addons21/PasteImagesAsWebP and then trying to open Anking ends up in an error at the startup.

Screenshot from 2022-05-12 17-18-30

kuator commented 2 years ago

Anki 2.1.49

tatsumoto-ren commented 2 years ago

See issue.md

tatsumoto-ren commented 2 years ago

The error on the screenshot suggests that you don't have cwebp installed. Try installing libwebp.

kuator commented 2 years ago

The error on the screenshot suggests that you don't have cwebp installed. Try installing libwebp.

Screenshot from 2022-05-12 17-44-37 I installed it though, I am on ubuntu 22.04

tatsumoto-ren commented 2 years ago

Still not installed? Does which cwebp return the path?

kuator commented 2 years ago

Unable to locate package cwebp (Edit) sudo apt install webp installed cwebp in the system. But now I am greeted with another problem Screenshot from 2022-05-12 17-50-27

tatsumoto-ren commented 2 years ago

Have you tried installing the addon from ankiweb?

tatsumoto-ren commented 2 years ago

cannot import menu_root_entry

sub-modules aren't initialized.

kuator commented 2 years ago

Have you tried installing the addon from ankiweb?

It most probably is going to work. I just wanted to automate process of installing anki addons. That's the reason I went with git

kuator commented 2 years ago

cannot import menu_root_entry

sub-modules aren't initialized.

Thank you!

tatsumoto-ren commented 2 years ago

Usually the only time you'd want to install an anki add-on directly from github instead from ankiweb is when you want to participate in the development.

I'll change the readme to include additional info.