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
This error shows up when i type " ./distribute.sh -m "kivy" "command.
I am at the ARM environment.
I have tried everything to fix this error, but now I need help.
Note: If you want me to edit something, please let me know.
"ERROR"
creating Makefile
./configure --host=arm-eabi OPT= --prefix=/home/kd/python-for-android/build/python-install --enable-shared --disable-toolbox-glue --disable-framework
make -j5 HOSTPYTHON=/home/kd/python-for-android/build/python/Python-2.7.2/hostpython HOSTPGEN=/home/kd/python-for-android/build/python/Python-2.7.2/hostpgen CROSS_COMPILE_TARGET=yes INSTSONAME=libpython2.7.so
cp: cannot stat ‘HOSTPYTHON=/home/kd/python-for-android/build/python/Python-2.7.2/hostpython’: No such file or directory
First install (failing..)
./Modules/zlibmodule.c:8:18: fatal error: zlib.h: No such file or directory
compilation terminated.
make: *** [Modules/zlibmodule.o] Error 1
make: *** Waiting for unfinished jobs....
second install
/usr/bin/install -c -m 644 ./Include/cStringIO.h /home/kd/python-for-android/build/python-install/include/python2.7
./Modules/zlibmodule.c:8:18: fatal error: zlib.h: No such file or directory
compilation terminated.
make: *** [Modules/zlibmodule.o] Error 1
make: *** Waiting for unfinished jobs....
/usr/bin/install -c -m 644 ./Include/cellobject.h /home/kd/python-for-android/build/python-install/include/python2.7
/usr/bin/install -c -m 644 pyconfig.h /home/kd/python-for-android/build/python-install/include/python2.7/pyconfig.h
Leaving ARM environment
cp: cannot create regular file ‘/home/kd/python-for-android/build/python-install/bin/python.host’: No such file or directory
This is what I get when compiling with buildozer -v android debug or buildozer android debug :
./Modules/zlibmodule.c:8:18: fatal error: zlib.h: No such file or directory
compilation terminated.
make: *** [Modules/zlibmodule.o] Error 1
make: *** Waiting for unfinished jobs....
Leaving ARM environment
cp: cannot create regular file ‘/home/asdri/testapp/.buildozer/android/platform/python-for-android/build/python-install/bin/python.host’: No such file or directory
# Command failed: ./distribute.sh -m "kivy" -d "myapp"
#
# 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.
usually this is down to the version of cython your using you need a different version of cython for 1.8 and 1.9 try changing distribute to kivy==master to use 1.9 i cant remember the exact version you need for 1.8 but google around and you should find the answer.
Where it seems to hiccup is in this part of the compilation process:
./Modules/zlibmodule.c:8:18: fatal error: zlib.h: No such file or directory
compilation terminated.
make: *** [Modules/zlibmodule.o] Error 1
make: *** Waiting for unfinished jobs....
It is weird because I can import and use Zlib from within Python without any issue..
The hostpython as a result is not being untarred with a tar: write error: /home/asdri/.buildozer/android/packages/hostpython and that's why there is no python-install directory found.
@olymk2 Do you mean pip install kivy==master? I tried that and it tells me there's no master version available:
Collecting kivy==master
Could not find a version that satisfies the requirement kivy==master (from versions: 1.0.1a0, 1.0.2a0, 1.0.3a0, 1.0.4b0, 1.0.5, 1.0.6, 1.0.7, 1.0.8, 1.0.9, 1.1.0, 1.1.1, 1.2.0, 1.3.0, 1.4.0, 1.4.1, 1.5.0, 1.5.1, 1.6.0, 1.7.0, 1.7.1, 1.7.2, 1.8.0, 1.9.0)
No distributions matching the version for kivy==master
nope ./distribute.sh -m "kivy" or in buildozer.spec change kivy to kivy==master and see if it works. if you use kivy you get 1.8 if you use kivy==master you get 1.9 which is just about to be released by looks of it :)
@hvorovk Your error seems to indicate you don't have zlib. Make sure you install it, including a -dev package if available, as you need the zlib.h file. You may also need the 32 bit version.
Closing as this issue relates to the old toolchain which is no longer supported. Please open a new issue if you experience this problem with the current master branch.
Activity
asdri commentedon Apr 2, 2015
Help please I have the same issue..
asdri commentedon Apr 2, 2015
This is what I get when compiling with
buildozer -v android debugorbuildozer android debug:asdri commentedon Apr 2, 2015
I just got a simple "Hello World" type snippet which's the following:
olymk2 commentedon Apr 2, 2015
usually this is down to the version of cython your using you need a different version of cython for 1.8 and 1.9 try changing distribute to kivy==master to use 1.9 i cant remember the exact version you need for 1.8 but google around and you should find the answer.
see if that helps
asdri commentedon Apr 2, 2015
@olymk2 Tried that now. I also tried uninstalling + purging everything and following the official installation step by step http://kivy.org/docs/installation/installation.html without any change.
Where it seems to hiccup is in this part of the compilation process:
It is weird because I can import and use Zlib from within Python without any issue..
The hostpython as a result is not being untarred with a
tar: write error:/home/asdri/.buildozer/android/packages/hostpythonand that's why there is nopython-installdirectory found.olymk2 commentedon Apr 2, 2015
did you try kivy==master ? for me it will not compile kivy 1.8 probably because my cython is to new what is your version ?
if it is actually a missing file thats not caused by the build then i dont know perhaps someone else will
asdri commentedon Apr 2, 2015
@olymk2 Do you mean
pip install kivy==master? I tried that and it tells me there's no master version available:olymk2 commentedon Apr 2, 2015
nope ./distribute.sh -m "kivy" or in buildozer.spec change kivy to kivy==master and see if it works. if you use kivy you get 1.8 if you use kivy==master you get 1.9 which is just about to be released by looks of it :)
Kozubi commentedon Jul 8, 2015
I encountered same problem and for me this helped:
hvorovk commentedon Dec 3, 2016
Nothing here is not helping me. How do I fix it? I even hello world I can not build.
hvorovk commentedon Dec 11, 2016
this does not work!
Useless tool!
inclement commentedon Dec 11, 2016
@hvorovk Your error seems to indicate you don't have zlib. Make sure you install it, including a -dev package if available, as you need the zlib.h file. You may also need the 32 bit version.
inclement commentedon Sep 29, 2017
Closing as this issue relates to the old toolchain which is no longer supported. Please open a new issue if you experience this problem with the current master branch.