Install Custom Plugin on Android

31 views
Skip to first unread message

Phillip Peach

unread,
May 13, 2025, 3:30:25 AMMay 13
to mnemosyne-proj-users
Hi All,

What's the proper way to get a plugin installed in the Android app?

I'm writing some custom card type plugin. (I'll probably throw them up on github at some point, although they'll be tied pretty tightly to how I've been setting up my cards manually so I don't know how much value anyone else would get from them.)

I was finally happy with my plugin on desktop, so I created a test card and synced to the android app where I do most of my reviewing.

First attempt to sync gets a "RuntimeError: Missing plugins for card types."

The next full sync got a crash:
File "MNEMOSYNE_ANDROID\mnemosyne\libmnemosyne\component.py", line 136, in card_type_with_id KeyError: '<the id of my new card type>'
Screenshot_20250513_000945_Mnemosyne.png

Which seems to show my plugin did not carry over on the sync or isn't enabled on the Android App.

In addition to sync I also tried doing an export on the app, manually copying the plugin folder from Windows to the backup folder on Android and then reimporting. That got some really crazy errors including a supposed indent error on my code with a line # that didn't match anything, which messed with the app enough that the app UI was missing the white Q/A fields. I managed to reverse that so my app is usable for tomorrow's review.

At this point I'm at a bit of a loss on how to proceed. Any directions / advice?

Peter Bienstman

unread,
May 13, 2025, 5:06:34 AMMay 13
to mnemosyne-...@googlegroups.com
I'm sorry to say that plugins on Android are not supported, especially since Google closed off Mnemosyne's data directory for outside programs. The code to import the backup could be modified to accommodate this, but it would be an ugly hack, and unfortunately, I'm not really developing Mnemosyne further anymore.

Still, the code is there, so if somebody wants to take over and implement this, that's entirely possible.

Kind regards,

Peter

--
You received this message because you are subscribed to the Google Groups "mnemosyne-proj-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mnemosyne-proj-u...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/mnemosyne-proj-users/7e8cb251-ae6f-4b5e-8e0e-d175100e7028n%40googlegroups.com.

Phillip Peach

unread,
May 13, 2025, 10:26:37 AMMay 13
to mnemosyne-proj-users
Oof, that's unfortunate. I might see if I can get an Android dev environment going and tackle it, after a bit of a break first.
Reply all
Reply to author
Forward
0 new messages