recipe for plyer in p4a master branch?

115 views
Skip to first unread message

kra...@gmail.com

unread,
Feb 28, 2016, 10:13:45 AM2/28/16
to Kivy users support

I am trying to use the dev version of buildozer to build python-for-android from the mater branch but it appears that there is no recipe for plyer on the master branch.

I am looking at: https://github.com/kivy/python-for-android/tree/master/pythonforandroid/recipes

Could I be missing something or might there by a python-for-android branch that uses the newer toolchain and has a receipe for plyer?  (even if it is experimental....)

thanks,

Mike



Alexander Taylor

unread,
Feb 28, 2016, 6:31:21 PM2/28/16
to Kivy users support
Plyer is available on pip, so it probably shouldn't need a recipe.

If it does need one, you can add one easily (it would be a trivial PythonRecipe with the url pointing at the downlaod link of its github repo).

Michael Kramer

unread,
Feb 29, 2016, 7:02:05 AM2/29/16
to Kivy users support
If i can get plyer via pip then that would be fine but how do i do a pip install on android?  Is plyer pure android or does it need some arch specific backend processing?

I managed to get something working by building with the old toolchain but then had to modify the __init__ for android to that the PythonService pointed to the org.kivy.android.PythonService for autoclassing (for the new tool chain) rather than org.renpy.android.PythonActivity - so in this case I am not sure how a pip install would help (I just checked the pip installed plyer on osx and it was autoclassed using org.renpy.android.PythonActivity so I don't think the source from pip would work on its own.)

If the recipe is that easy I might go ahead and try it myself - the last time I looked into recipes for building lxml for android and ios it was a bit more than I wanted to do at the time but I will check it out.

thanks!

Mike


--
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.

Alexander Taylor

unread,
Feb 29, 2016, 7:03:25 AM2/29/16
to kivy-...@googlegroups.com
Just add plyer to the requirements; any requirement without a recipe is
installed from pip (if possible - if it's not there or pip tries to
compile it, the build will fail).

On 29/02/16 12:02, Michael Kramer wrote:
> If i can get plyer via pip then that would be fine but how do i do a pip
> install on android? Is plyer pure android or does it need some arch
> specific backend processing?
>
> I managed to get something working by building with the old toolchain
> but then had to modify the __init__ for android to that the
> PythonService pointed to the org.kivy.android.PythonService for
> autoclassing (for the new tool chain) rather than
> org.renpy.android.PythonActivity - so in this case I am not sure how a
> pip install would help (I just checked the pip installed plyer on osx
> and it was autoclassed using org.renpy.android.PythonActivity so I don't
> think the source from pip would work on its own.)
>
> If the recipe is that easy I might go ahead and try it myself - the last
> time I looked into recipes for building lxml for android and ios it was
> a bit more than I wanted to do at the time but I will check it out.
>
> thanks!
>
> Mike
>
>
> On Sun, Feb 28, 2016 at 5:31 PM, Alexander Taylor
> <alexander...@gmail.com <mailto:alexander...@gmail.com>>
> wrote:
>
> Plyer is available on pip, so it probably shouldn't need a recipe.
>
> If it does need one, you can add one easily (it would be a trivial
> PythonRecipe with the url pointing at the downlaod link of its
> github repo).
>
>
> On Sunday, 28 February 2016 15:13:45 UTC, kra...@gmail.com
> <mailto:kra...@gmail.com> wrote:
>
>
> I am trying to use the dev version of buildozer to build
> python-for-android from the mater branch but it appears that
> there is no recipe for plyer on the master branch.
>
> I am looking at:
> https://github.com/kivy/python-for-android/tree/master/pythonforandroid/recipes
>
> Could I be missing something or might there by a
> python-for-android branch that uses the newer toolchain and has
> a receipe for plyer? (even if it is experimental....)
>
> thanks,
>
> Mike
>
>
>
> --
> 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
> <mailto:kivy-users+...@googlegroups.com>.
> For more options, visit https://groups.google.com/d/optout.
>
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Kivy users support" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/kivy-users/d799EFMtZWE/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> kivy-users+...@googlegroups.com
> <mailto:kivy-users+...@googlegroups.com>.
signature.asc

Michael Kramer

unread,
Feb 29, 2016, 7:07:42 AM2/29/16
to Kivy users support
>> Just add plyer to the requirements;

I did have plyer in the requirements line of the buildozer spec but for some reason that did not work.

The build process did not complain, but when it was done there was no plyer anywhere in the resulting build directories or python installation.

And do you know how the pip install option might address the problem w/ the autoclassing?

thanks for your help,

Mike




To unsubscribe from this group and stop receiving emails from it, send an email to kivy-users+...@googlegroups.com.

qua non

unread,
Mar 2, 2016, 1:52:27 PM3/2/16
to kivy-...@googlegroups.com
Try to do a clean build maybe you have a stale/corrupted download that is not letting player be installed.

The best way to make sure is to clean all the cache in ~/.buildozer/android/packages and remove app/.buildozer and start a new build.

Michael Kramer

unread,
Mar 8, 2016, 9:16:11 PM3/8/16
to Kivy users support
Is it sufficient if i just remove the entire /home/kivy/.buildozer directory, as well as .local/share/python-for-android and build from scratch? I know this will go through the entire process of downloading the sdk and ndk but it seems like this should do the full build from scratch (??)

When I try this using the android_master argument for buildozer and having plyer in the requirements it goes through the entire build process w/o complaining but plyer is still nowhere to be found in either the .buildozer folder or in .local/share/python-for-android/dist/, at least that was the case when i tried about a week ago.

I will try this again and see what happens. 

thanks.

Mike




Roman Evstifeev

unread,
Jun 19, 2016, 11:49:59 AM6/19/16
to Kivy users support, kra...@gmail.com
Hi. I had similar issue, when I mixed python2 and 3 installations: see this bug https://github.com/kivy/python-for-android/issues/795
Reply all
Reply to author
Forward
0 new messages