python.h missing when using buildozer

60 views
Skip to first unread message

ElBurroViejo

unread,
Nov 29, 2018, 3:12:22 PM11/29/18
to Kivy users support
Hi,

i try to test a small app I wrote and deploy it on my phone using buildozer (computer = mac and phone = ios)

I try this by using
buildozer ios debug deploy run
As expected I needed to install a bunch of packages but now I reached a point at which I am stuck with the following error and I don not know anymore how to proceed. I really would appreciate some input :). I have the hypothesis that the missing python.h is causing issues. However, I could not figure out how to fix that.


Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libpython3.7m.a(dynamic_annotations.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libpython3.7m.a(pymath.o) has no symbols
clang
-Qunused-arguments -fcolor-diagnostics -lsqlite3 -lffi -L/Users/user1/app_learning/kivy_apps/weather_app/.buildozer/ios/platform/kivy-ios/dist/hostlibffi/usr/local/lib -L/Users/user1/app_learning/kivy_apps/weather_app/.buildozer/ios/platform/kivy-ios/dist/lib -lsqlite3 -lffi -L/Users/user1/app_learning/kivy_apps/weather_app/.buildozer/ios/platform/kivy-ios/dist/hostlibffi/usr/local/lib -L/Users/user1/app_learning/kivy_apps/weather_app/.buildozer/ios/platform/kivy-ios/dist/lib -Wl,-stack_size,1000000  -framework CoreFoundation -o python.exe Programs/python.o libpython3.7m.a -ldl  -framework CoreFoundation -lz                          
clang
-Qunused-arguments -fcolor-diagnostics -lsqlite3 -lffi -L/Users/user1/app_learning/kivy_apps/weather_app/.buildozer/ios/platform/kivy-ios/dist/hostlibffi/usr/local/lib -L/Users/user1/app_learning/kivy_apps/weather_app/.buildozer/ios/platform/kivy-ios/dist/lib -lsqlite3 -lffi -L/Users/user1/app_learning/kivy_apps/weather_app/.buildozer/ios/platform/kivy-ios/dist/hostlibffi/usr/local/lib -L/Users/user1/app_learning/kivy_apps/weather_app/.buildozer/ios/platform/kivy-ios/dist/lib -Wl,-stack_size,1000000  -framework CoreFoundation -o Programs/_testembed Programs/_testembed.o libpython3.7m.a -ldl  -framework CoreFoundation -lz                          
ld
: warning: directory not found for option '-L/Users/user1/app_learning/kivy_apps/weather_app/.buildozer/ios/platform/kivy-ios/dist/hostlibffi/usr/local/lib'
ld
: warning: directory not found for option '-L/Users/user1/app_learning/kivy_apps/weather_app/.buildozer/ios/platform/kivy-ios/dist/hostlibffi/usr/local/lib'
ld
: warning: directory not found for option '-L/Users/user1/app_learning/kivy_apps/weather_app/.buildozer/ios/platform/kivy-ios/dist/hostlibffi/usr/local/lib'
ld
: warning: directory not found for option '-L/Users/user1/app_learning/kivy_apps/weather_app/.buildozer/ios/platform/kivy-ios/dist/hostlibffi/usr/local/lib'
./python.exe -E -S -m sysconfig --generate-posix-vars ;\
   
if test $? -ne 0 ; then \
        echo
"generate-posix-vars failed" ; \
        rm
-f ./pybuilddir.txt ; \
       
exit 1 ; \
   
fi
 CC
='clang -Qunused-arguments -fcolor-diagnostics' LDSHARED='clang -Qunused-arguments -fcolor-diagnostics -bundle -undefined dynamic_lookup -lsqlite3 -lffi -L/Users/user1/app_learning/kivy_apps/weather_app/.buildozer/ios/platform/kivy-ios/dist/hostlibffi/usr/local/lib -L/Users/user1/app_learning/kivy_apps/weather_app/.buildozer/ios/platform/kivy-ios/dist/lib -lsqlite3 -lffi -L/Users/user1/app_learning/kivy_apps/weather_app/.buildozer/ios/platform/kivy-ios/dist/hostlibffi/usr/local/lib -L/Users/user1/app_learning/kivy_apps/weather_app/.buildozer/ios/platform/kivy-ios/dist/lib' OPT='-DNDEBUG -g -fwrapv -O3 -Wall'     _TCLTK_INCLUDES='' _TCLTK_LIBS=''     ./python.exe -E ./setup.py  build
running build
running build_ext
error
: [Errno 2] No such file or directory: '/Users/user1/app_learning/kivy_apps/weather_app/.buildozer/ios/platform/kivy-ios/dist/hostpython3/include/python3.7m/pyconfig.h'
make
: *** [sharedmods] Error 1
Traceback (most recent call last):
 
File "./toolchain.py", line 1482, in <module>
   
ToolchainCL()
 
File "./toolchain.py", line 1218, in __init__
    getattr
(self, args.command)()
 
File "./toolchain.py", line 1259, in build
    build_recipes
(args.recipe, ctx)
 
File "./toolchain.py", line 1097, in build_recipes
    recipe
.execute()
 
File "/Users/user1/app_learning/kivy_apps/weather_app/.buildozer/ios/platform/kivy-ios/toolchain.py", line 694, in execute
   
self.build_all()
 
File "/Users/user1/app_learning/kivy_apps/weather_app/.buildozer/ios/platform/kivy-ios/toolchain.py", line 63, in _cache_execution
    f
(self, *args, **kwargs)
 
File "/Users/user1/app_learning/kivy_apps/weather_app/.buildozer/ios/platform/kivy-ios/toolchain.py", line 789, in build_all
   
self.build(arch
 
File "/Users/user1/app_learning/kivy_apps/weather_app/.buildozer/ios/platform/kivy-ios/toolchain.py", line 63, in _cache_execution
    f
(self, *args, **kwargs)
 
File "/Users/user1/app_learning/kivy_apps/weather_app/.buildozer/ios/platform/kivy-ios/toolchain.py", line 776, in build
   
self.build_arch(arch)
 
File "/Users/user1/app_learning/kivy_apps/weather_app/.buildozer/ios/platform/kivy-ios/toolchain.py", line 824, in build_arch
    getattr
(self, build)()
 
File "/Users/user1/app_learning/kivy_apps/weather_app/.buildozer/ios/platform/kivy-ios/recipes/hostpython3/__init__.py", line 88, in build_x86_64
    _env
=build_env)
 
File "/Users/user1/app_learning/kivy_apps/weather_app/.buildozer/ios/platform/kivy-ios/toolchain.py", line 46, in shprint
   
for line in command(*args, **kwargs):
 
File "./tools/external/sh.py", line 565, in next
   
self.wait()
 
File "./tools/external/sh.py", line 500, in wait
   
self.handle_command_exit_code(exit_code)
 
File "./tools/external/sh.py", line 516, in handle_command_exit_code
   
raise exc(self.ran, self.process.stdout, self.process.stderr)
sh
.ErrorReturnCode_2:

  RAN
: '/usr/bin/make -C /Users/user1/app_learning/kivy_apps/weather_app/.buildozer/ios/platform/kivy-ios/build/hostpython3/x86_64/Python-3.7.1 -j4'

  STDOUT
:
clang
-Qunused-arguments -fcolor-diagnostics -c -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall --sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk -arch x86_64 -mmacosx-version-min=10.12 -I/Users/user1/app_learning/kivy_apps/weather_app/.buildozer/ios/platform/kivy-ios/dist/hostlibffi/usr/local/include -I/Users/user1/app_learning/kivy_apps/weather_app/.buildozer/ios/platform/kivy-ios/dist/include/x86_64/openssl --sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk -arch x86_64 -mmacosx-version-min=10.12 -I/Users/user1/app_learning/kivy_apps/weather_app/.buildozer/ios/platf... (176722 more, please see e.stdout)

  STDERR
:

# Command failed: ./toolchain.py build python3 kivy
#
# 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

Thanks :)

Ilir Jusufi

unread,
Feb 6, 2020, 8:12:34 AM2/6/20
to Kivy users support
Hi,

Did you find a solution to this problem? 

ZenCODE

unread,
Feb 8, 2020, 9:54:43 PM2/8/20
to Kivy users support
This is usually caused by a missing python-dev installation. Easily fixed on linux distros, but buildozer is not yet supported on mac....I would suggest using kivy-ios for Mac deployments.
Reply all
Reply to author
Forward
0 new messages