install python modules on android

445 views
Skip to first unread message

benjamin CHRISTOPHE

unread,
Oct 28, 2013, 11:09:51 AM10/28/13
to kivy-...@googlegroups.com
Hello ,

Is every body know how to install python modules on a galaxy tab , so an android operating system ?
I try with Qpython app on google play store but i don't find any solution.
Any ideas ?

Thanks.

Benji54000.
Bye.

ZenCODE

unread,
Oct 29, 2013, 2:18:18 AM10/29/13
to kivy-...@googlegroups.com
Pure python modules can just be dropped into your app folder. QPython (as far as I know) has nothing to do with Kivy. Kivy has it's on Python-for-Android implementation, but you don't really need to care about that when you start: it's already part of Kivy.

Cheers

benjamin CHRISTOPHE

unread,
Oct 29, 2013, 9:25:40 AM10/29/13
to kivy-...@googlegroups.com
Okay , but the problem is when i create a app wich use MySQLdb lib or other externals libs in oython , the apk cannot running in a tablette because these libs are not installed on the tablette :/
So how can resolve this problem ... I look the script distrib.sh in python-for-android but that's not resolve my problem...
It's very important , lots of apps needs externals libs for work ...

Thanks.

Benjamin CHRISTOPHE.

Bye.

Ben Rousch

unread,
Oct 29, 2013, 9:54:27 AM10/29/13
to kivy-...@googlegroups.com
For modules that are not pure Python, you need to use a python-for-android recipe to include it in your APK. If there is no recipe for the module you need, then you'll have to create one. Available recipes are at https://github.com/kivy/python-for-android/tree/master/recipes

If you're using buildozer to compile your APK, you just include the recipe name in your buildozer.spec requirements. If you're not using buildozer, you need to include the recipe name as a parameter when you run distribute.sh.




--
You received this message because you are subscribed to the Google Groups "Kivy users support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kivy-users+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.



--
 Ben Rousch
   bro...@gmail.com
   http://clusterbleep.net/

Leon A

unread,
Oct 29, 2013, 11:47:31 AM10/29/13
to kivy-...@googlegroups.com
I had the same problem with the netifaces module. Oh the pain.

Ben Rousch

unread,
Oct 29, 2013, 11:56:18 AM10/29/13
to kivy-...@googlegroups.com
And people wonder why I prefer pure Python modules to those with C extensions, even though pure is a little slower.
Reply all
Reply to author
Forward
0 new messages