Skip to content
This repository has been archived by the owner on May 3, 2024. It is now read-only.

Addon does not load correctly on Linux #5

Open
subacoustic opened this issue Aug 3, 2021 · 9 comments
Open

Addon does not load correctly on Linux #5

subacoustic opened this issue Aug 3, 2021 · 9 comments
Assignees
Labels
bug Something isn't working

Comments

@subacoustic
Copy link

Addon does not load correctly on restart of Anki. Here´s the error message.

An add-on you installed failed to load. If problems persist, please go to the Tools>Add-ons menu, and disable or delete the add-on.

When loading 'Koboanki v200':
Traceback (most recent call last):
File "/usr/share/anki/aqt/addons.py", line 80, in loadAddons
import(dir)
File "/home/USERNAME/.local/share/Anki2/addons21/197599239/init.py", line 5, in
from aqt.utils import showInfo, qconnect, tr, getFile
ImportError: cannot import name 'qconnect' from 'aqt.utils' (/usr/share/anki/aqt/utils.py)

@awesmubarak
Copy link
Owner

Hmm I haven't been able to reproduce this issue myself. I've just published v2.0.1 where I fixed a couple of bugs, does the issue persist there too?

@awesmubarak awesmubarak self-assigned this Aug 13, 2021
@awesmubarak awesmubarak added the bug Something isn't working label Aug 13, 2021
@subacoustic
Copy link
Author

The same error unfortunately - it looks like you´re on a Mac whereas I´m on Linux...

An add-on you installed failed to load. If problems persist, please go to the Tools>Add-ons menu, and disable or delete the add-on.

When loading 'Koboanki v201':
Traceback (most recent call last):
File "/usr/share/anki/aqt/addons.py", line 80, in loadAddons
import(dir)
File "/home/USERNAME/.local/share/Anki2/addons21/197599239/init.py", line 5, in
from aqt.utils import showInfo, qconnect, tr, getFile
ImportError: cannot import name 'qconnect' from 'aqt.utils' (/usr/share/anki/aqt/utils.py)

@awesmubarak awesmubarak changed the title Addon does not load correctly Addon does not load correctly on Linux Aug 16, 2021
@awesmubarak awesmubarak modified the milestone: v3.0.0 Aug 16, 2021
@awesmubarak
Copy link
Owner

Thanks, I'll test it on linux for the next update!

@Kumirei
Copy link

Kumirei commented Feb 22, 2022

It's working fine for me on Linux Mint 20.2 with
Cinnamon 5.0.7
Anki v.2.1.49
Python 3.8.1
Qt 5.15.1
PyQt 5.15.1

@subacoustic
Copy link
Author

Thanks Kumirei, I had been using Anki from the default repositories, I updated to Anki v.2.1.49 and it now installs correctly however on import, most words failed to import - perhaps because they are in multiple languages(?)

@Kumirei
Copy link

Kumirei commented Feb 25, 2022

The API that this addon uses halted support for languages other than English a few days ago, so at this moment only English works.
See meetDeveloper/freeDictionaryAPI#102 (comment)

If you're using this for Japanese you could make it use Jisho for Japanese.

@subacoustic
Copy link
Author

Thanks Kumirei, I'm mostly using the word save feature in the Kobo for French and Spanish... I guess I'll just keep adding words manually into Anki, cheers

@awesmubarak
Copy link
Owner

awesmubarak commented Feb 25, 2022

Apologies for the late response. You're right, unfortunately this is only working for english at the moment, and the number of words that can be added at once is also limited. I haven't abandoned the project at all, but need to make some time for it. I'm about 70% done with v3 which will solidify multi-language support, alongside a bunch of other features. Thanks for using it and raising issues anyway though!

@subacoustic
Copy link
Author

v3 sounds great! thanks for creating this! The kobo / anki combination will be so great for learning other languages. you rock!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants