Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when running buildozer android_new debug #354

Closed
ghost opened this issue May 18, 2016 · 9 comments
Closed

Error when running buildozer android_new debug #354

ghost opened this issue May 18, 2016 · 9 comments

Comments

@ghost
Copy link

ghost commented May 18, 2016

Relevant line is:
/pythonforandroid/recipes/python2/__init__.py", line 76, in do_python_build shprint(sh.cp, self.ctx.hostpython, self.get_build_dir(arch.arch)) AttributeError: 'Context' object has no attribute 'hostpython'

[INFO]: Prebuilding kivy for armeabi-v7a [INFO]: kivy has no prebuild_armeabi_v7a, skipping [INFO]: # Building recipes [INFO]: Building python2 for armeabi-v7a Traceback (most recent call last): File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 162, in _run_module_as_main "__main__", fname, loader, pkg_name) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 72, in _run_code exec code in run_globals File "/Users/john/Documents/Kivy/breakout/.buildozer/android/platform/python-for-android-master/pythonforandroid/toolchain.py", line 755, in <module> main() File "/Users/john/Documents/Kivy/breakout/.buildozer/android/platform/python-for-android-master/pythonforandroid/toolchain.py", line 752, in main ToolchainCL() File "/Users/john/Documents/Kivy/breakout/.buildozer/android/platform/python-for-android-master/pythonforandroid/toolchain.py", line 341, in __init__ getattr(self, args.command)(unknown) File "/Users/john/Documents/Kivy/breakout/.buildozer/android/platform/python-for-android-master/pythonforandroid/toolchain.py", line 93, in wrapper_func build_dist_from_args(ctx, dist, dist_args) File "/Users/john/Documents/Kivy/breakout/.buildozer/android/platform/python-for-android-master/pythonforandroid/toolchain.py", line 138, in build_dist_from_args build_recipes(build_order, python_modules, ctx) File "pythonforandroid/build.py", line 559, in build_recipes recipe.build_arch(arch) File "/Users/john/Documents/Kivy/breakout/.buildozer/android/platform/python-for-android-master/pythonforandroid/recipes/python2/__init__.py", line 44, in build_arch self.do_python_build(arch) File "/Users/john/Documents/Kivy/breakout/.buildozer/android/platform/python-for-android-master/pythonforandroid/recipes/python2/__init__.py", line 76, in do_python_build shprint(sh.cp, self.ctx.hostpython, self.get_build_dir(arch.arch)) AttributeError: 'Context' object has no attribute 'hostpython'

Command failed: python -m pythonforandroid.toolchain --color=always --storage-dir=/Users/john/Documents/Kivy/breakout/.buildozer/android/platform/build create --dist_name=breakout --bootstrap=sdl2 --requirements=kivy --arch armeabi-v7a --copy-libs

@inclement
Copy link
Member

This is a known bug in python-for-android. To work around it for now, add hostpython2 to your requirements.

@FeralBytes
Copy link
Contributor

Why was this closed then; when the issue remains un-resolved?

@ghost
Copy link
Author

ghost commented Jan 12, 2017

FeralBytes I wondered the same thing and later moved on to direct OpenGLES in C++.

@ghost
Copy link
Author

ghost commented Jan 12, 2017

The community on IRC and Github didn't seem all that helpful and don't want to be "bothered." The general attitude was pretty unacceptable on the whole, the community is what makes or breaks a piece of software.

Also from a performance standpoint it didn't make much sense later on to use Python for 3D on mobile anyway.

@FeralBytes
Copy link
Contributor

@inclement Request that this issue get re-opened there are multiple other issues just like it that have been closed; I almost created another bug because I did not see one that was open for this issue.

For a fix should buildozer either add hostpython2 to the requirements or else ask to do so at a minimum?

@nobody37 So did you write your own framework in C++ or what did you use? Looks like maybe you are using Unity? But to not derail the conversation you can send me an email just check my profile for email address.

@inclement
Copy link
Member

@FeralBytes I closed it because it is a python-for-android issue, not a buildozer issue.

@inclement
Copy link
Member

The p4a issue is at kivy/python-for-android#826 - sorry, I should have linked to this originally.

@ghost
Copy link
Author

ghost commented Jan 13, 2017 via email

@matham
Copy link
Member

matham commented Jan 13, 2017

I would like to point out the the #kivy channel is logged so I wanted to investigate what happened as what you described doesn't at all sound like the kivy community I know. Looking back (searching your username) I don't see anything like what you describe (weirdly I was actually on the channel at the time as it happens).

What seemed to have happened is that people helped as best they could but sometimes we just don't know the answer or are not present on the channel. And when you got frustrated that you weren't being helped some random user in response said that "Everyone here is a volunteer/user, you aren't paying for this support" and then we explained how to get help by asking at a better time etc. That was all I could find that even remotely matches what you describe.

In fact we (not me, since I didn't know anything about the subject) helped both before and after that and were as friendly as possible and not in the least bit rude as far as I can see. Even more ironically it was @inclement who tried helping you both before and after (as well as other core devs).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants