You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
'Context' object has no attribute 'hostpython' #1073
I've checked the issues before, and I use the command below p4a apk —private /Users/XuXiaotian/Git/DaytimeLog —package=com.xiaotian.daytimelog —name “Daytime Log” —version 2.1 —bootstrap=sdl2 —requirements=python3crystax,kivy --arch=armeabi-v7a
But it won't help, I use Python3.6 and the newest Android SDK.
Need help.
[INFO]: Copying python distribution
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.6/bin/p4a", line 11, in
load_entry_point('python-for-android==0.5', 'console_scripts', 'p4a')()
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pythonforandroid/toolchain.py", line 906, in main
ToolchainCL()
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pythonforandroid/toolchain.py", line 512, in init
getattr(self, args.subparser_name.replace('-', '_'))(args)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pythonforandroid/toolchain.py", line 147, in wrapper_func
build_dist_from_args(ctx, dist, args)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pythonforandroid/toolchain.py", line 192, in build_dist_from_args
ctx.bootstrap.run_distribute()
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pythonforandroid/bootstraps/pygame/init.py", line 48, in run_distribute
hostpython = sh.Command(self.ctx.hostpython)
AttributeError: 'Context' object has no attribute 'hostpython'
Seems that the problem is that I input the command in my evernote first, when I copy that to the terminal, the "--" is converted to "-", and the paras can't be recognized then.
Activity
inclement commentedon Jul 8, 2017
Are you using the latest python-for-android master branch?
maquedexiju commentedon Jul 8, 2017
Yes, I just install it from git today, do you need any other infomations?
maquedexiju commentedon Jul 8, 2017
Hop this can help you
maquedexiju commentedon Jul 8, 2017
Seems that the problem is that I input the command in my evernote first, when I copy that to the terminal, the "--" is converted to "-", and the paras can't be recognized then.