How to add MySQL connector package in buildozer spec file

1,930 views
Skip to first unread message

Mathias Syx

unread,
Jul 31, 2016, 5:06:51 AM7/31/16
to Kivy users support
I made an application using the MySQL connector for python with kivy. The application runs smoothly on my computer.
Using buildozer, I try to package this application for use on android.
How to define the mysql connector package in the buildozer spec file? 
I tried:
requirements = kivy,python2,mysql-connector-python
but this didn't work.
Any ideas?

Antoine Pérus

unread,
Aug 1, 2016, 5:49:45 AM8/1/16
to kivy-...@googlegroups.com

Mathias Syx

unread,
Aug 4, 2016, 4:09:26 AM8/4/16
to Kivy users support
This worked for me, thanks! In the meantime I figured out that requirements = kivy,python2,mysql_connector works as well!

Did you add any other specifications to your python file related to the mysql connector?
Since I'm experiencing troubles to connect to the server on android with my app. In my logs I see a permission denied appear while this is strange since I've installed a 3rd party MySQL client app that can connect with the same credentials as I stated in my app. So it doesn't make any sense. Also if a run the app on my computer, everything works fine...

Any ideas what would cause my permission denied?



Op maandag 1 augustus 2016 11:49:45 UTC+2 schreef aflp91:

Antoine Pérus

unread,
Aug 5, 2016, 12:26:37 PM8/5/16
to kivy-...@googlegroups.com
Le 4 août 2016 à 10:09, Mathias Syx <mathi...@gmail.com> a écrit :

This worked for me, thanks! In the meantime I figured out that requirements = kivy,python2,mysql_connector works as well!

Maybe it depends of the pip version used?


Did you add any other specifications to your python file related to the mysql connector?

No, I didn't …

Since I'm experiencing troubles to connect to the server on android with my app. In my logs I see a permission denied appear while this is strange since I've installed a 3rd party MySQL client app that can connect with the same credentials as I stated in my app. So it doesn't make any sense. Also if a run the app on my computer, everything works fine...

Any ideas what would cause my permission denied?

Just added: 
android.permissions = INTERNET





Op maandag 1 augustus 2016 11:49:45 UTC+2 schreef aflp91:

Le 31 juil. 2016 à 11:06, Mathias Syx <mathi...@gmail.com> a écrit :

I made an application using the MySQL connector for python with kivy. The application runs smoothly on my computer.
Using buildozer, I try to package this application for use on android.
How to define the mysql connector package in the buildozer spec file? 
I tried:
requirements = kivy,python2,mysql-connector-python
but this didn't work.
Any ideas?



--
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/d/optout.

Cyril Coelho

unread,
Sep 8, 2017, 9:05:32 PM9/8/17
to Kivy users support
Hi, i import mysql.connector and app crash ....
if i remove import line its work !
How to import mysql connector without crash ??
Reply all
Reply to author
Forward
0 new messages