AttributeError: 'Context' object has no attribute 'hostpython'

44 views
Skip to first unread message

remi bidjada

unread,
Aug 27, 2021, 8:49:51 PM8/27/21
to Kivy users support
Did anyone get the error: "AttributeError: 'Context' object has no attribute 'hostpython'"

I get this error when I try build a package using a custom recipe.

I spent a lot of time researching this, but anything I found was related to buildozer. Does anyone who knows how to fix this?

Robert

unread,
Aug 27, 2021, 9:18:16 PM8/27/21
to Kivy users support
Not a lot of info here, presumably the error occurs while building the custom recipe.

Buildozer's engine is p4a, and p4a has a set of built in recipes https://github.com/kivy/python-for-android/tree/develop/pythonforandroid/recipes

There is a 'hostpython3' recipe there, perhaps your custom recipe is from back in the Python2 days and must be updated?
Buildozer/p4a no longer use Python2.
Obviously that is just a guess. 

Custom recipe users have to be self supporting, requests for (re-)writing custom recipes generally go unanswered both here and on Discord.

Robert

unread,
Aug 27, 2021, 9:21:48 PM8/27/21
to Kivy users support
Oh, I just noticed the poster, my assumption is Ubuntu, if this is MacOS I have no idea.

remi bidjada

unread,
Aug 28, 2021, 11:36:47 AM8/28/21
to Kivy users support
Thanks Robert, I have this issue on Ubuntu and MacOs
Reply all
Reply to author
Forward
0 new messages