How do I build kivy-remote-app?
Closed this issue · 2 comments
How do I do this when distribute.sh has become obsolete? I deleted buildozer.spec file which comes by default and I ran buildozer init command to get the new buildozer.spec file. After setting up the buildozer file and copy pasting the requirements and even downloading the requirement files individually, I still happen to run into errors.
Traceback (most recent call last):
File "setup.py", line 90, in <module>
setup(**params)
File "/usr/lib/python2.7/distutils/core.py", line 151, in setup
dist.run_commands()
File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands
self.run_command(cmd)
File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "/usr/lib/python2.7/distutils/command/install.py", line 613, in run
self.run_command(cmd_name)
File "/usr/lib/python2.7/distutils/cmd.py", line 326, in run_command
self.distribution.run_command(command)
File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "/usr/lib/python2.7/distutils/command/install_lib.py", line 101, in run
self.byte_compile(outfiles)
File "/usr/lib/python2.7/distutils/command/install_lib.py", line 142, in byte_compile
verbose=self.verbose, dry_run=self.dry_run)
File "/usr/lib/python2.7/distutils/util.py", line 385, in byte_compile
from tempfile import mktemp
File "/usr/lib/python2.7/tempfile.py", line 32, in <module>
import io as _io
File "/usr/lib/python2.7/io.py", line 51, in <module>
import _io
ImportError: No module named _io
# Command failed: ./distribute.sh -m "pycrypto pyasn1 pyjnius twisted kivy" -d "remoteshell"
#
# Buildozer failed to execute the last command
# The error might be hidden in the log above this error
# Please read the full log, and search for it before
# raising an issue with buildozer itself.
# In case of a bug report, please add a full log with log_level = 2
Is there any file which forces buildozer to use .distribute.sh? Now keep in mind that I didn't setup python-for-android directory in buildozer.spec file. Is this forcing buildozer to download python-for-android's old toolchain while it says cloning from python-for-android?
If possible, can any one share their kivy-remote-shell app?
Here's what works for me with a relatively new pull of Python-For-Android master (as of Apr 26, 2016) and the associated new toolchain:
p4a apk --sdk_dir <SDK_DIR> --ndk_dir <NDK_DIR> --android_api 16 --ndk_ver r11c
--private <PATH_TO_SOURCE> --package=org.example.remotepython
--name=RemotePython --version=0.5 --bootstrap=sdl2
--requirements=sdl2,python2,kivy,twisted,pycrypto,pyasn1
--dist_name=remotepython --permission=INTERNET`
Hope that helps!
Instructions and code base updated, please re-open if you still have issues with new instructions.