Getting builtildozer error on Mac OSX 10.9.5

51 views
Skip to first unread message

SteveK

unread,
Jun 23, 2015, 6:48:18 PM6/23/15
to kivy-...@googlegroups.com
Tried to use bulldozer to deploy example kivy app "showcase". Getting this error:
Any ideas? Thanks

cations/Kivy.app/Contents/Resources/kivy/examples/demo/showcase/.buildozer/android/platform/python-for-android/src/jni/sdl_image build/temp.macosx-10.4-x86_64-2.7/src/imageext.o -L/Applications/Kivy.app/Contents/Resources/kivy/examples/demo/showcase/.buildozer/android/platform/python-for-android/build/python-install/lib -lsdl -lm -lsdl_image -lpng -lz -ljpeg -lpython2.7 -o build/lib.macosx-10.4-x86_64-2.7/pygame/imageext.so

Traceback (most recent call last):

  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site.py", line 549, in <module>

    main()

  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site.py", line 531, in main

    known_paths = addusersitepackages(known_paths)

  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site.py", line 264, in addusersitepackages

    user_site = getusersitepackages()

  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site.py", line 239, in getusersitepackages

    user_base = getuserbase() # this will also set USER_BASE

  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site.py", line 229, in getuserbase

    USER_BASE = get_config_var('userbase')

  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/sysconfig.py", line 518, in get_config_var

    return get_config_vars().get(name)

  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/sysconfig.py", line 421, in get_config_vars

    _init_posix(_CONFIG_VARS)

  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/sysconfig.py", line 300, in _init_posix

    raise IOError(msg)

IOError: $MACOSX_DEPLOYMENT_TARGET mismatch: now "10.4" but "10.5" during configure

error: command '/Applications/Kivy.app/Contents/Resources/kivy/examples/demo/showcase/.buildozer/android/platform/python-for-android/src/tools/liblink' failed with exit status 1

# 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.

# In case of a bug report, please add a full log with log_level = 2

MacBookPro:showcase SteveK$ 


SteveK

unread,
Jun 23, 2015, 9:28:06 PM6/23/15
to kivy-...@googlegroups.com
So, after searching the net for a similar error, I found a workaround by doing this command before running buildozer:

export MACOSX_DEPLOYMENT_TARGET=10.5


But alas, still getting other errors. Looks like maybe cpython isn't right somehow...


(only tail end of very long output included below)

....

....

kivy/graphics/fbo.pxd:27:19: Signature not compatible with previous declaration


Error compiling Cython file:

------------------------------------------------------------

...

    cdef void push_states(self, list names) except *

    cdef void pop_state(self, str name) except *

    cdef void pop_states(self, list names) except *

    cdef void enter(self) except *

    cdef void leave(self) except *

    cdef void apply(self) except *

                  ^

------------------------------------------------------------


kivy/graphics/instructions.pxd:123:19: Previous declaration is here


Error compiling Cython file:

------------------------------------------------------------

...

    cpdef release(self)

    cpdef get_pixel_color(self, int wx, int wy)


    cdef void create_fbo(self)

    cdef void delete_fbo(self)

    cdef void apply(self)

                  ^

------------------------------------------------------------


kivy/graphics/fbo.pxd:27:19: Signature not compatible with previous declaration


Error compiling Cython file:

------------------------------------------------------------

...

    cdef void push_states(self, list names) except *

    cdef void pop_state(self, str name) except *

    cdef void pop_states(self, list names) except *

    cdef void enter(self) except *

    cdef void leave(self) except *

    cdef void apply(self) except *

                  ^

------------------------------------------------------------


kivy/graphics/instructions.pxd:123:19: Previous declaration is here

 /Applications/Kivy.app/Contents/Resources/kivy/examples/demo/showcase/.buildozer/android/platform/python-for-android/build/python-install/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'dependency_links'

   warnings.warn(msg)

 /Applications/Kivy.app/Contents/Resources/kivy/examples/demo/showcase/.buildozer/android/platform/python-for-android/build/python-install/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'install_requires'

   warnings.warn(msg)


Cython check avoided.

Using this graphics system: OpenGL ES 2

running build_ext

Build configuration is:

 * use_rpi = 0

 * use_opengl_es2 = 1

 * use_opengl_debug = 0

 * use_glew = 0

 * use_sdl2 = 0

 * use_ios = 0

 * use_mesagl = 0

 * use_x11 = 0

 * use_gstreamer = 0

 * use_avfoundation = 0

 * use_osx_frameworks = 0

 * debug = False

Detected compiler is unix

building 'kivy.graphics.opengl' extension

arm-linux-androideabi-gcc -DANDROID -mandroid -fomit-frame-pointer --sysroot /Users/SteveK/.buildozer/android/platform/android-ndk-r9c/platforms/android-14/arch-arm -DNDEBUG -DANDROID -mandroid -fomit-frame-pointer --sysroot /Users/SteveK/.buildozer/android/platform/android-ndk-r9c/platforms/android-14/arch-arm -I/Users/SteveK/.buildozer/android/platform/android-ndk-r9c/platforms/android-14/arch-arm/usr/include -I/Applications/Kivy.app/Contents/Resources/kivy/examples/demo/showcase/.buildozer/android/platform/python-for-android/build/python-install/include/python2.7 -c kivy/graphics/opengl.c -o build/temp.macosx-10.4-x86_64-2.7/kivy/graphics/opengl.o

/Applications/Kivy.app/Contents/Resources/kivy/examples/demo/showcase/.buildozer/android/platform/python-for-android/src/tools/liblink -lm -L/Applications/Kivy.app/Contents/Resources/kivy/examples/demo/showcase/.buildozer/android/platform/python-for-android/build/libs -DANDROID -mandroid -fomit-frame-pointer --sysroot /Users/SteveK/.buildozer/android/platform/android-ndk-r9c/platforms/android-14/arch-arm build/temp.macosx-10.4-x86_64-2.7/kivy/graphics/opengl.o -L/Applications/Kivy.app/Contents/Resources/kivy/examples/demo/showcase/.buildozer/android/platform/python-for-android/build/python-install/lib -lGLESv2 -lpython2.7 -o build/lib.macosx-10.4-x86_64-2.7/kivy/graphics/opengl.so -L /Users/SteveK/.buildozer/android/platform/android-ndk-r9c/platforms/android-14/arch-arm/usr/lib -lm

building 'kivy.graphics.stencil_instructions' extension

arm-linux-androideabi-gcc -DANDROID -mandroid -fomit-frame-pointer --sysroot /Users/SteveK/.buildozer/android/platform/android-ndk-r9c/platforms/android-14/arch-arm -DNDEBUG -DANDROID -mandroid -fomit-frame-pointer --sysroot /Users/SteveK/.buildozer/android/platform/android-ndk-r9c/platforms/android-14/arch-arm -I/Users/SteveK/.buildozer/android/platform/android-ndk-r9c/platforms/android-14/arch-arm/usr/include -I/Applications/Kivy.app/Contents/Resources/kivy/examples/demo/showcase/.buildozer/android/platform/python-for-android/build/python-install/include/python2.7 -c kivy/graphics/stencil_instructions.c -o build/temp.macosx-10.4-x86_64-2.7/kivy/graphics/stencil_instructions.o

/Applications/Kivy.app/Contents/Resources/kivy/examples/demo/showcase/.buildozer/android/platform/python-for-android/src/tools/liblink -lm -L/Applications/Kivy.app/Contents/Resources/kivy/examples/demo/showcase/.buildozer/android/platform/python-for-android/build/libs -DANDROID -mandroid -fomit-frame-pointer --sysroot /Users/SteveK/.buildozer/android/platform/android-ndk-r9c/platforms/android-14/arch-arm build/temp.macosx-10.4-x86_64-2.7/kivy/graphics/stencil_instructions.o -L/Applications/Kivy.app/Contents/Resources/kivy/examples/demo/showcase/.buildozer/android/platform/python-for-android/build/python-install/lib -lGLESv2 -lpython2.7 -o build/lib.macosx-10.4-x86_64-2.7/kivy/graphics/stencil_instructions.so -L /Users/SteveK/.buildozer/android/platform/android-ndk-r9c/platforms/android-14/arch-arm/usr/lib -lm

building 'kivy.graphics.transformation' extension

arm-linux-androideabi-gcc -DANDROID -mandroid -fomit-frame-pointer --sysroot /Users/SteveK/.buildozer/android/platform/android-ndk-r9c/platforms/android-14/arch-arm -DNDEBUG -DANDROID -mandroid -fomit-frame-pointer --sysroot /Users/SteveK/.buildozer/android/platform/android-ndk-r9c/platforms/android-14/arch-arm -I/Users/SteveK/.buildozer/android/platform/android-ndk-r9c/platforms/android-14/arch-arm/usr/include -I/Applications/Kivy.app/Contents/Resources/kivy/examples/demo/showcase/.buildozer/android/platform/python-for-android/build/python-install/include/python2.7 -c kivy/graphics/transformation.c -o build/temp.macosx-10.4-x86_64-2.7/kivy/graphics/transformation.o

/Applications/Kivy.app/Contents/Resources/kivy/examples/demo/showcase/.buildozer/android/platform/python-for-android/src/tools/liblink -lm -L/Applications/Kivy.app/Contents/Resources/kivy/examples/demo/showcase/.buildozer/android/platform/python-for-android/build/libs -DANDROID -mandroid -fomit-frame-pointer --sysroot /Users/SteveK/.buildozer/android/platform/android-ndk-r9c/platforms/android-14/arch-arm build/temp.macosx-10.4-x86_64-2.7/kivy/graphics/transformation.o -L/Applications/Kivy.app/Contents/Resources/kivy/examples/demo/showcase/.buildozer/android/platform/python-for-android/build/python-install/lib -lGLESv2 -lpython2.7 -o build/lib.macosx-10.4-x86_64-2.7/kivy/graphics/transformation.so -L /Users/SteveK/.buildozer/android/platform/android-ndk-r9c/platforms/android-14/arch-arm/usr/lib -lm

building 'kivy.graphics.vbo' extension

arm-linux-androideabi-gcc -DANDROID -mandroid -fomit-frame-pointer --sysroot /Users/SteveK/.buildozer/android/platform/android-ndk-r9c/platforms/android-14/arch-arm -DNDEBUG -DANDROID -mandroid -fomit-frame-pointer --sysroot /Users/SteveK/.buildozer/android/platform/android-ndk-r9c/platforms/android-14/arch-arm -I/Users/SteveK/.buildozer/android/platform/android-ndk-r9c/platforms/android-14/arch-arm/usr/include -I/Applications/Kivy.app/Contents/Resources/kivy/examples/demo/showcase/.buildozer/android/platform/python-for-android/build/python-install/include/python2.7 -c kivy/graphics/vbo.c -o build/temp.macosx-10.4-x86_64-2.7/kivy/graphics/vbo.o

kivy/graphics/vbo.c:1:2: error: #error Do not use this file, it is the result of a failed Cython compilation.

 #error Do not use this file, it is the result of a failed Cython compilation.

  ^

 error: command 'arm-linux-androideabi-gcc' failed with exit status 1

# 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.

# In case of a bug report, please add a full log with log_level = 2

MacBookPro:showcase SteveK$ 



Kived Devik

unread,
Jun 23, 2015, 9:34:23 PM6/23/15
to kivy-...@googlegroups.com

That is an issue with Cython. You need to downgrade to Cython 0.21.2 in order to build the stable branch of Kivy.


--
You received this message because you are subscribed to the Google Groups "Kivy users support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kivy-users+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Steve Kittleson

unread,
Jun 23, 2015, 11:53:33 PM6/23/15
to kivy-...@googlegroups.com

OK. I'll try that.

You received this message because you are subscribed to a topic in the Google Groups "Kivy users support" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/kivy-users/DCA02C_JvS0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to kivy-users+...@googlegroups.com.

Steve Kittleson

unread,
Jun 24, 2015, 12:41:35 PM6/24/15
to kivy-...@googlegroups.com
OK, fixed cython version.

Now I get this error:

...
...

# project.properties updated

# Run '/usr/bin/python build.py --name MyApp --version 1.0 --package org.test.myapp --private /Applications/Kivy.app/Contents/Resources/kivy/examples/demo/showcase/.buildozer/android/app --sdk 14 --minsdk 8 --orientation sensor debug'

# Cwd /Applications/Kivy.app/Contents/Resources/kivy/examples/demo/showcase/.buildozer/android/platform/python-for-android/dist/myapp

Traceback (most recent call last):

  File "build.py", line 15, in <module>

    import jinja2

  File "buildlib/jinja2.egg/jinja2/__init__.py", line 33, in <module>

    from jinja2.environment import Environment, Template

  File "buildlib/jinja2.egg/jinja2/environment.py", line 13, in <module>

    from jinja2 import nodes

  File "buildlib/jinja2.egg/jinja2/nodes.py", line 18, in <module>

    from jinja2.utils import Markup

  File "buildlib/jinja2.egg/jinja2/utils.py", line 520, in <module>

    from markupsafe import Markup, escape, soft_unicode

ImportError: No module named markupsafe

# Command failed: /usr/bin/python build.py --name MyApp --version 1.0 --package org.test.myapp --private /Applications/Kivy.app/Contents/Resources/kivy/examples/demo/showcase/.buildozer/android/app --sdk 14 --minsdk 8 --orientation sensor debug

# 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

--
You received this message because you are subscribed to a topic in the Google Groups "Kivy users support" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/kivy-users/DCA02C_JvS0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to kivy-users+...@googlegroups.com.

Steve Kittleson

unread,
Jun 24, 2015, 1:10:58 PM6/24/15
to kivy-...@googlegroups.com
Got the markupsafe module installed.

Now I get this: (could be a real bug?)

...
...

assets/private.mp3: /Applications/Kivy.app/Contents/Resources/kivy/examples/demo/showcase/.buildozer/android/app/data/screens/sliders.kv

assets/private.mp3: /Applications/Kivy.app/Contents/Resources/kivy/examples/demo/showcase/.buildozer/android/app/data/screens/spinner.kv

assets/private.mp3: /Applications/Kivy.app/Contents/Resources/kivy/examples/demo/showcase/.buildozer/android/app/data/screens/splitter.kv

assets/private.mp3: /Applications/Kivy.app/Contents/Resources/kivy/examples/demo/showcase/.buildozer/android/app/data/screens/switches.kv

assets/private.mp3: /Applications/Kivy.app/Contents/Resources/kivy/examples/demo/showcase/.buildozer/android/app/data/screens/tabbedpanel + layouts.kv

assets/private.mp3: /Applications/Kivy.app/Contents/Resources/kivy/examples/demo/showcase/.buildozer/android/app/data/screens/textinputs.kv

assets/private.mp3: /Applications/Kivy.app/Contents/Resources/kivy/examples/demo/showcase/.buildozer/android/app/data/screens/togglebutton.kv

Traceback (most recent call last):

  File "build.py", line 508, in <module>

    make_package(args)

  File "build.py", line 357, in make_package

    subprocess.check_call([ANT, arg])

  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 542, in check_call

    raise CalledProcessError(retcode, cmd)

subprocess.CalledProcessError: Command '['ant', 'debug']' returned non-zero exit status 1

# Command failed: /usr/bin/python build.py --name MyApp --version 1.0 --package org.test.myapp --private /Applications/Kivy.app/Contents/Resources/kivy/examples/demo/showcase/.buildozer/android/app --sdk 14 --minsdk 8 --orientation sensor debug

# 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

Reply all
Reply to author
Forward
0 new messages