How to include non-installed python libraries in apps
-
I am trying to write a speech-to-text app using vosk library, but have little understanding on how to include the library. I have read the following thread https://forums.ubports.com/topic/1321/solved-how-to-import-python-library-to-clickable?lang=de and understood some of it. Basically,
- if the library is not installed and uses C you have to crosscompile it for Ubuntu Touch
- best way to do it is using clickable docker images
Is this correct so far? (Are there any tutorials including this part of the process?)
Now, the part I don't understand at all: how do I let python know that the additional lib is shipped with the app? Is there any way to modify PYTHONPATH? Or should the app bring its own version of python? Or something else entirely?
(Apologies in case I am missing obvious things, I am an interpreter-language-only person :] )
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login