build failed ubuntu

160 views
Skip to first unread message

Senthil Seveelavananan

unread,
Dec 11, 2017, 6:40:25 AM12/11/17
to Python For Android
~/Documents/android-sdk-tools/tools/bin$ p4a apk --private $HOME/code/myapp --package=org.example.myapp --name "My application" --version 0.1 --bootstrap=sdl2 --requirements=python2,kivy --arch=armeabi-v7a
[INFO]:    Will compile for the following archs: armeabi-v7a
[INFO]:    Found Android API target in $ANDROIDAPI
[INFO]:    Available Android APIs are (24)
[INFO]:    Requested API target 24 is available, continuing.
[INFO]:    Found NDK dir in $ANDROIDNDK
[INFO]:    Got NDK version from $ANDROIDNDKVER
[INFO]:    Using Google NDK r16b
[INFO]:    Found virtualenv at /usr/local/bin/virtualenv
[INFO]:    Found the following toolchain versions: ['4.9']
[INFO]:    Picking the latest gcc toolchain, here 4.9
[INFO]:    No existing dists meet the given requirements!
[INFO]:    No dist exists that meets your requirements, so one will be built.
[INFO]:    Found multiple valid dependency orders:
[INFO]:        ['hostpython2', 'sdl2_image', 'sdl2_mixer', 'sdl2_ttf', u'python2', 'sdl2', 'six', 'pyjnius', u'kivy']
[INFO]:        ['hostpython2', 'pygame_bootstrap_components', u'python2', 'sdl', 'six', 'pygame', 'pyjnius', u'kivy']
[INFO]:    Using the first of these: ['hostpython2', 'sdl2_image', 'sdl2_mixer', 'sdl2_ttf', u'python2', 'sdl2', 'six', 'pyjnius', u'kivy']
[INFO]:    The selected bootstrap is sdl2_gradle
[INFO]:    # Creating dist with sdl2_gradle bootstrap
[INFO]:    Dist will have name unnamed_dist_2 and recipes (python2, kivy)
[INFO]:    Dist will also contain modules () installed from pip
[INFO]:    -> running cp -r /usr/local/lib/python2.7/dist-packages/pythonfora...(and 116 more)
[INFO]:    -> directory context /home/chendy/.local/share/python-for-android/build/bootstrap_builds/sdl2_gradle-python2
[INFO]:    <- directory context /home/chendy/Documents/android-sdk-tools/tools/bin
[INFO]:    Recipe build order is ['hostpython2', 'sdl2_image', 'sdl2_mixer', 'sdl2_ttf', u'python2', 'sdl2', 'six', 'pyjnius', u'kivy']
[INFO]:    # Downloading recipes 
[INFO]:    Downloading hostpython2
[INFO]:    -> running mkdir -p /home/chendy/.local/share/python-for-android/pa...(and 18 more)
[INFO]:    -> directory context /home/chendy/.local/share/python-for-android/packages/hostpython2
[INFO]:    hostpython2 download already cached, skipping                                                
[INFO]:    <- directory context /home/chendy/Documents/android-sdk-tools/tools/bin
[INFO]:    Downloading sdl2_image
[INFO]:    -> running mkdir -p /home/chendy/.local/share/python-for-android/packages/sdl2_image
[INFO]:    -> directory context /home/chendy/.local/share/python-for-android/packages/sdl2_image
[INFO]:    -> running basename https://www.libsdl.org/projects/SDL_image/rele...(and 27 more)
[INFO]:    sdl2_image download already cached, skipping                                                 
[INFO]:    <- directory context /home/chendy/Documents/android-sdk-tools/tools/bin
[INFO]:    Downloading sdl2_mixer
[INFO]:    -> running mkdir -p /home/chendy/.local/share/python-for-android/packages/sdl2_mixer
[INFO]:    -> directory context /home/chendy/.local/share/python-for-android/packages/sdl2_mixer
[INFO]:    -> running basename https://www.libsdl.org/projects/SDL_mixer/rele...(and 27 more)
[INFO]:    sdl2_mixer download already cached, skipping                                                 
[INFO]:    <- directory context /home/chendy/Documents/android-sdk-tools/tools/bin
[INFO]:    Downloading sdl2_ttf
[INFO]:    -> running mkdir -p /home/chendy/.local/share/python-for-android/packages/sdl2_ttf
[INFO]:    -> directory context /home/chendy/.local/share/python-for-android/packages/sdl2_ttf
[INFO]:    -> running basename https://www.libsdl.org/projects/SDL_ttf/release...(and 23 more)
[INFO]:    sdl2_ttf download already cached, skipping                                                   
[INFO]:    <- directory context /home/chendy/Documents/android-sdk-tools/tools/bin
[INFO]:    Downloading python2
[INFO]:    -> running mkdir -p /home/chendy/.local/share/python-for-android/packages/python2
[INFO]:    -> directory context /home/chendy/.local/share/python-for-android/packages/python2
[INFO]:    python2 download already cached, skipping                                                    
[INFO]:    <- directory context /home/chendy/Documents/android-sdk-tools/tools/bin
[INFO]:    Downloading sdl2
[INFO]:    -> running mkdir -p /home/chendy/.local/share/python-for-android/packages/sdl2
[INFO]:    -> directory context /home/chendy/.local/share/python-for-android/packages/sdl2
[INFO]:    -> running basename https://www.libsdl.org/release/SDL2-2.0.4.tar.gz
[INFO]:    sdl2 download already cached, skipping                                                       
[INFO]:    <- directory context /home/chendy/Documents/android-sdk-tools/tools/bin
[INFO]:    Downloading six
[INFO]:    -> running mkdir -p /home/chendy/.local/share/python-for-android/packages/six
[INFO]:    -> directory context /home/chendy/.local/share/python-for-android/packages/six
[INFO]:    six download already cached, skipping                                                        
[INFO]:    <- directory context /home/chendy/Documents/android-sdk-tools/tools/bin
[INFO]:    Downloading pyjnius
[INFO]:    -> running mkdir -p /home/chendy/.local/share/python-for-android/packages/pyjnius
[INFO]:    -> directory context /home/chendy/.local/share/python-for-android/packages/pyjnius
[INFO]:    pyjnius download already cached, skipping                                                    
[INFO]:    <- directory context /home/chendy/Documents/android-sdk-tools/tools/bin
[INFO]:    Downloading kivy
[INFO]:    -> running mkdir -p /home/chendy/.local/share/python-for-android/packages/kivy
[INFO]:    -> directory context /home/chendy/.local/share/python-for-android/packages/kivy
[INFO]:    -> running basename https://github.com/kivy/kivy/archive/1.10.0.zip
[INFO]:    kivy download already cached, skipping                                                       
[INFO]:    <- directory context /home/chendy/Documents/android-sdk-tools/tools/bin
[INFO]:    # Building all recipes for arch armeabi-v7a
[INFO]:    # Unpacking recipes
[INFO]:    Unpacking hostpython2 for armeabi-v7a
[INFO]:    -> directory context /home/chendy/.local/share/python-for-android/build/other_builds/hostpython2/desktop
[INFO]:    hostpython2 is already unpacked, skipping
[INFO]:    <- directory context /home/chendy/Documents/android-sdk-tools/tools/bin
[INFO]:    Unpacking sdl2_image for armeabi-v7a
[INFO]:    -> running basename https://www.libsdl.org/projects/SDL_image/rele...(and 27 more)
[INFO]:    -> directory context /home/chendy/.local/share/python-for-android/build/bootstrap_builds/sdl2_gradle-python2/jni
[INFO]:    sdl2_image is already unpacked, skipping
[INFO]:    <- directory context /home/chendy/Documents/android-sdk-tools/tools/bin
[INFO]:    Unpacking sdl2_mixer for armeabi-v7a
[INFO]:    -> running basename https://www.libsdl.org/projects/SDL_mixer/rele...(and 27 more)
[INFO]:    -> directory context /home/chendy/.local/share/python-for-android/build/bootstrap_builds/sdl2_gradle-python2/jni
[INFO]:    sdl2_mixer is already unpacked, skipping
[INFO]:    <- directory context /home/chendy/Documents/android-sdk-tools/tools/bin
[INFO]:    Unpacking sdl2_ttf for armeabi-v7a
[INFO]:    -> running basename https://www.libsdl.org/projects/SDL_ttf/release...(and 23 more)
[INFO]:    -> directory context /home/chendy/.local/share/python-for-android/build/bootstrap_builds/sdl2_gradle-python2/jni
[INFO]:    sdl2_ttf is already unpacked, skipping
[INFO]:    <- directory context /home/chendy/Documents/android-sdk-tools/tools/bin
[INFO]:    Unpacking python2 for armeabi-v7a
[INFO]:    -> directory context /home/chendy/.local/share/python-for-android/build/other_builds/python2/armeabi-v7a
[INFO]:    python2 is already unpacked, skipping
[INFO]:    <- directory context /home/chendy/Documents/android-sdk-tools/tools/bin
[INFO]:    Unpacking sdl2 for armeabi-v7a
[INFO]:    -> running basename https://www.libsdl.org/release/SDL2-2.0.4.tar.gz
[INFO]:    -> directory context /home/chendy/.local/share/python-for-android/build/bootstrap_builds/sdl2_gradle-python2/jni
[INFO]:    sdl2 is already unpacked, skipping
[INFO]:    <- directory context /home/chendy/Documents/android-sdk-tools/tools/bin
[INFO]:    Unpacking six for armeabi-v7a
[INFO]:    -> directory context /home/chendy/.local/share/python-for-android/build/other_builds/six-python2/armeabi-v7a
[INFO]:    six is already unpacked, skipping
[INFO]:    <- directory context /home/chendy/Documents/android-sdk-tools/tools/bin
[INFO]:    Unpacking pyjnius for armeabi-v7a
[INFO]:    -> directory context /home/chendy/.local/share/python-for-android/build/other_builds/pyjnius-python2-sdl2/armeabi-v7a
[INFO]:    pyjnius is already unpacked, skipping
[INFO]:    <- directory context /home/chendy/Documents/android-sdk-tools/tools/bin
[INFO]:    Unpacking kivy for armeabi-v7a
[INFO]:    -> running basename https://github.com/kivy/kivy/archive/1.10.0.zip
[INFO]:    -> directory context /home/chendy/.local/share/python-for-android/build/other_builds/kivy-python2-sdl2/armeabi-v7a
[INFO]:    kivy is already unpacked, skipping
[INFO]:    <- directory context /home/chendy/Documents/android-sdk-tools/tools/bin
[INFO]:    # Prebuilding recipes
[INFO]:    Prebuilding hostpython2 for armeabi-v7a
[INFO]:    -> running cp /usr/local/lib/python2.7/dist-packages/pythonforandr...(and 139 more)
[INFO]:    Prebuilding sdl2_image for armeabi-v7a
[INFO]:    sdl2_image has no prebuild_armeabi_v7a, skipping
[INFO]:    Applying patches for sdl2_image[armeabi-v7a]
[INFO]:    sdl2_image already patched, skipping
[INFO]:    Prebuilding sdl2_mixer for armeabi-v7a
[INFO]:    sdl2_mixer has no prebuild_armeabi_v7a, skipping
[INFO]:    Applying patches for sdl2_mixer[armeabi-v7a]
[INFO]:    sdl2_mixer already patched, skipping
[INFO]:    Prebuilding sdl2_ttf for armeabi-v7a
[INFO]:    sdl2_ttf has no prebuild_armeabi_v7a, skipping
[INFO]:    Prebuilding python2 for armeabi-v7a
[INFO]:    python2 has no prebuild_armeabi_v7a, skipping
[INFO]:    Applying patches for python2[armeabi-v7a]
[INFO]:    python2 already patched, skipping
[INFO]:    Prebuilding sdl2 for armeabi-v7a
[INFO]:    sdl2 has no prebuild_armeabi_v7a, skipping
[INFO]:    Applying patches for sdl2[armeabi-v7a]
[INFO]:    sdl2 already patched, skipping
[INFO]:    Prebuilding six for armeabi-v7a
[INFO]:    six has no prebuild_armeabi_v7a, skipping
[INFO]:    Prebuilding pyjnius for armeabi-v7a
[INFO]:    pyjnius has no prebuild_armeabi_v7a, skipping
[INFO]:    Applying patches for pyjnius[armeabi-v7a]
[INFO]:    pyjnius already patched, skipping
[INFO]:    Prebuilding kivy for armeabi-v7a
[INFO]:    kivy has no prebuild_armeabi_v7a, skipping
[INFO]:    # Building recipes
[INFO]:    Building hostpython2 for armeabi-v7a
[INFO]:    -> directory context /home/chendy/.local/share/python-for-android/build/other_builds/hostpython2/desktop/hostpython2
[INFO]:    hostpython already exists, skipping build
[INFO]:    <- directory context /home/chendy/Documents/android-sdk-tools/tools/bin
[INFO]:    Building sdl2_image for armeabi-v7a
[INFO]:    Building sdl2_mixer for armeabi-v7a
[INFO]:    Building sdl2_ttf for armeabi-v7a
[INFO]:    Building python2 for armeabi-v7a
[INFO]:    -> running cp -a /home/chendy/.local/share/python-for-android/buil...(and 139 more)
[INFO]:    Copying hostpython binary to targetpython folder
[INFO]:    -> running cp /home/chendy/.local/share/python-for-android/build/o...(and 152 more)
[INFO]:    -> running cp /home/chendy/.local/share/python-for-android/build/o...(and 150 more)
[INFO]:    Building sdl2 for armeabi-v7a
[INFO]:    -> directory context /home/chendy/.local/share/python-for-android/build/bootstrap_builds/sdl2_gradle-python2/jni
[INFO]:    -> running ndk-build V=1
[INFO]:    <- directory context /home/chendy/Documents/android-sdk-tools/tools/bin                      
[INFO]:    Building six for armeabi-v7a
[INFO]:    six apparently isn't already in site-packages
[INFO]:    Installing six into site-packages
[INFO]:    -> directory context /home/chendy/.local/share/python-for-android/build/other_builds/six-python2/armeabi-v7a/six
[INFO]:    -> running python.host setup.py install -O2
[INFO]:    <- directory context /home/chendy/Documents/android-sdk-tools/tools/bin                      
[INFO]:    Building pyjnius for armeabi-v7a
[INFO]:    jnius apparently isn't already in site-packages
[INFO]:    Cythonizing anything necessary in pyjnius
[INFO]:    -> directory context /home/chendy/.local/share/python-for-android/build/other_builds/pyjnius-python2-sdl2/armeabi-v7a/pyjnius
[INFO]:    -> running python.host -c import sys; print(sys.path)
('cwd is', '/home/chendy/.local/share/python-for-android/build/other_builds/pyjnius-python2-sdl2/armeabi-v7a/pyjnius')
[INFO]:    Trying first build of pyjnius to get cython files: this is expected to fail
[INFO]:    -> running python.host setup.py build_ext -v
[INFO]:    First build appeared to complete correctly, skipping manualcythonising.                      
[INFO]:    Stripping object files
[INFO]:    -> running find ./build/lib.linux-x86_64-2.7 -name *.o -exec arm-l...(and 44 more)
[INFO]:    <- directory context /home/chendy/Documents/android-sdk-tools/tools/bin
[INFO]:    Installing pyjnius into site-packages
[INFO]:    -> directory context /home/chendy/.local/share/python-for-android/build/other_builds/pyjnius-python2-sdl2/armeabi-v7a/pyjnius
[INFO]:    -> running python.host setup.py install -O2
[INFO]:    <- directory context /home/chendy/Documents/android-sdk-tools/tools/bin                      
[INFO]:    Building kivy for armeabi-v7a
[INFO]:    kivy apparently isn't already in site-packages
[INFO]:    Cythonizing anything necessary in kivy
[INFO]:    -> directory context /home/chendy/.local/share/python-for-android/build/other_builds/kivy-python2-sdl2/armeabi-v7a/kivy
[INFO]:    -> running python.host -c import sys; print(sys.path)
('cwd is', '/home/chendy/.local/share/python-for-android/build/other_builds/kivy-python2-sdl2/armeabi-v7a/kivy')
[INFO]:    Trying first build of kivy to get cython files: this is expected to fail
[INFO]:    -> running python.host setup.py build_ext -v
           working:  error: command '/usr/bin/ccache' failed with exit status 1                         Exception in thread background thread for pid 380:
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.7/threading.py", line 754, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/usr/local/lib/python2.7/dist-packages/sh.py", line 2170, in background_thread
    handle_exit_code(exit_code)
  File "/usr/local/lib/python2.7/dist-packages/sh.py", line 1929, in fn
    return self.command.handle_command_exit_code(exit_code)
  File "/usr/local/lib/python2.7/dist-packages/sh.py", line 672, in handle_command_exit_code
    raise exc
ErrorReturnCode_1: 

  RAN: /home/chendy/.local/share/python-for-android/build/python-installs/unnamed_dist_2/bin/python.host setup.py build_ext -v

  STDOUT:
Using distutils
Environ change use_sdl2 -> True

Cython check avoided.
Using this graphics system: OpenGL ES 2
WARNING: A problem occurred while running pkg-config --libs --cflags sdl2 SDL2_ttf SDL2_image SDL2_mixer (code 1)

Package sdl2 was not found in the pkg-config search path.
Perhaps you should add the directory containing `sdl2.pc'
to the PKG_CONFIG_PATH environment variable
No package 'sdl2' found
Package SDL2_ttf was not found in the pkg-config search path.
Perhaps you should add the directory containing `SDL2_ttf.pc'
to the PKG_CONFIG_PATH environment variable
No package 'SDL2_ttf' found
Package SDL2_image was not found in the pkg-config search path.
Perhaps you should add the directory containing `SDL2_image.pc'
to the PKG_CONFIG_PATH environment variable
No package 'SDL2_image' found
Package SDL2_mixer was not found in the pkg-config search path.
Perhaps you should add the directory containing `SDL2_mixer.pc'
to the PKG_CONFIG_PATH environment variable
No package 'SDL2_mixer' found


SDL2: found SDL header at /home/chendy/.local/share/python-for-android/build/bootstrap_builds/sdl2_gradle-python2/jni/SDL/include/SDL.h
SDL2: found SDL_mixer header at /home/chendy/.local/share/python-for-android/build/bootstrap_builds/sdl2_gradle-python2/jni/SDL2_mixer/SDL_mixer.h
SDL2: found SDL_ttf header at /home/chendy/.local/share/python-for-android/build/bootstrap_builds/sdl2_gradle-python2/jni/SDL2_ttf/SDL_ttf.h
SDL2: found SDL_image header at /home/chendy/.local/share/python-for-android/build/bootstrap_builds/sdl2_gradle-python2/jni/SDL2_image/SDL_image.h
fatal: Not a git repository (or any of the parent directories): .git
 /home/chendy/.local/share/python-for-android/build/python-installs/unnamed_dist_2/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'setup_requires'
   warnings.warn(msg)
 /home/chendy/.local/share/python-for-android/build/python-installs/unnamed_dist_2/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'dependency_links'
   warnings.warn(msg)
 /home/chendy/.local/share/python-for-android/build/python-installs/unnamed_dist_2/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'install_requires'
   warnings.warn(msg)
running build_ext
Build configuration is:
 * use_rpi = 0
 * use_mali = 0
 * use_egl = 0
 * use_opengl_es2 = 1
 * use_opengl_mock = 0
 * use_sdl2 = 1
 * use_ios = 0
 * use_mesagl = 0
 * use_x11 = 0
 * use_gstreamer = 0
 * use_avfoundation = 0
 * use_osx_frameworks = 0
 * debug_gl = 0
 * debug = False
Detected compiler is unix
building 'kivy.core.text._text_sdl2' extension
/usr/bin/ccache arm-linux-androideabi-gcc -DANDROID -mandroid -fomit-frame-pointer -D__ANDROID_API__=24 -isystem /home/chendy/Documents/android-ndk-r16b/sysroot/usr/include/arm-linux-androideabi -isysroot /home/chendy/Documents/android-ndk-r16b/sysroot -I/home/chendy/.local/share/python-for-android/build/python-installs/unnamed_dist_2/include/python2.7 -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -DANDROID -mandroid -fomit-frame-pointer -D__ANDROID_API__=24 -isystem /home/chendy/Documents/android-ndk-r16b/sysroot/usr/include/arm-linux-androideabi -isysroot /home/chendy/Documents/android-ndk-r16b/sysroot -I/home/chendy/.local/share/python-for-android/build/python-installs/unnamed_dist_2/include/python2.7 -march=armv7-a -mfloat-abi=softfp -mfpu=vfp -mthumb -fPIC -Ikivy/include -I/home/chendy/.local/share/python-for-android/build/bootstrap_builds/sdl2_gradle-python2/jni/SDL/include -I/home/chendy/.local/share/python-for-android/build/bootstrap_builds/sdl2_gradle-python2/jni/SDL2_image -I/home/chendy/.local/share/python-for-android/build/bootstrap_builds/sdl2_gradle-python2/jni/SDL2_mixer -I/home/chendy/.local/share/python-for-android/build/bootstrap_builds/sdl2_gradle-python2/jni/SDL2_ttf -I/home/chendy/.local/share/python-for-android/build/python-installs/unnamed_dist_2/include/python2.7 -c kivy/core/text/_text_sdl2.c -o build/temp.linux-x86_64-2.7/kivy/core/text/_text_sdl2.o
arm-linux-androideabi-gcc: error: kivy/core/text/_text_sdl2.c: No such file or directory
arm-linux-androideabi-gcc: fatal error: no input files
compilation terminated.
 error: command '/usr/bin/ccache' failed with exit status 1


  STDERR:


()                                                                                                      
[INFO]:    kivy first build failed (as expected)
[INFO]:    Running cython where appropriate
[INFO]:    Cythonize kivy/_event.pyx
[INFO]:    -> running cython ./kivy/_event.pyx
[INFO]:    Cythonize kivy/weakproxy.pyx
[INFO]:    -> running cython ./kivy/weakproxy.pyx
[INFO]:    Cythonize kivy/_clock.pyx
[INFO]:    -> running cython ./kivy/_clock.pyx
[INFO]:    Cythonize kivy/properties.pyx
[INFO]:    -> running cython ./kivy/properties.pyx
[INFO]:    Cythonize kivy/graphics/vertex_instructions.pyx
[INFO]:    -> running cython ./kivy/graphics/vertex_instructions.pyx
[INFO]:    Cythonize kivy/graphics/svg.pyx
[INFO]:    -> running cython ./kivy/graphics/svg.pyx
           working: kivy/graphics/instructions.pxd:36:20: Previous declaration is here                  Exception in thread background thread for pid 441:
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.7/threading.py", line 754, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/usr/local/lib/python2.7/dist-packages/sh.py", line 2170, in background_thread
    handle_exit_code(exit_code)
  File "/usr/local/lib/python2.7/dist-packages/sh.py", line 1929, in fn
    return self.command.handle_command_exit_code(exit_code)
  File "/usr/local/lib/python2.7/dist-packages/sh.py", line 672, in handle_command_exit_code
    raise exc
ErrorReturnCode_1: 

  RAN: /usr/local/bin/cython ./kivy/graphics/svg.pyx

  STDOUT:

Error compiling Cython file:
------------------------------------------------------------
...
                end = time()
                Logger.debug("Svg: Loaded {} in {:.2f}s".format(filename, end - start))
            finally:
                fd.close()

    cdef void reload(self) except *:
        ^
------------------------------------------------------------

kivy/graphics/svg.pyx:469:9: Signature not compatible with previous declaration

Error compiling Cython file:
------------------------------------------------------------
...
        cpdef flag_update(self, int do_parent=?, list _instrs=?)
    ELSE:
        cpdef flag_update(self, int do_parent=?)
    cdef void flag_update_done(self)
    cdef void set_parent(self, Instruction parent)
    cdef void reload(self)
                   ^
------------------------------------------------------------

kivy/graphics/instructions.pxd:36:20: Previous declaration is here


  STDERR:


Traceback (most recent call last):                                                                      
  File "/usr/local/bin/p4a", line 11, in <module>
    load_entry_point('python-for-android==0.6.0', 'console_scripts', 'p4a')()
  File "/usr/local/lib/python2.7/dist-packages/pythonforandroid/toolchain.py", line 975, in main
    ToolchainCL()
  File "/usr/local/lib/python2.7/dist-packages/pythonforandroid/toolchain.py", line 512, in __init__
    getattr(self, args.subparser_name.replace('-', '_'))(args)
  File "/usr/local/lib/python2.7/dist-packages/pythonforandroid/toolchain.py", line 149, in wrapper_func
    build_dist_from_args(ctx, dist, args)
  File "/usr/local/lib/python2.7/dist-packages/pythonforandroid/toolchain.py", line 193, in build_dist_from_args
    build_recipes(build_order, python_modules, ctx)
  File "/usr/local/lib/python2.7/dist-packages/pythonforandroid/build.py", line 573, in build_recipes
    recipe.build_arch(arch)
  File "/usr/local/lib/python2.7/dist-packages/pythonforandroid/recipe.py", line 928, in build_arch
    self.build_cython_components(arch)
  File "/usr/local/lib/python2.7/dist-packages/pythonforandroid/recipe.py", line 963, in build_cython_components
    self.cythonize_build(env=env)
  File "/usr/local/lib/python2.7/dist-packages/pythonforandroid/recipes/kivy/__init__.py", line 18, in cythonize_build
    super(KivyRecipe, self).cythonize_build(env, build_dir=build_dir)
  File "/usr/local/lib/python2.7/dist-packages/pythonforandroid/recipe.py", line 1008, in cythonize_build
    self.cythonize_file(env, build_dir, join(root, filename))
  File "/usr/local/lib/python2.7/dist-packages/pythonforandroid/recipe.py", line 999, in cythonize_file
    shprint(cython_command, filename, *self.cython_args, _env=cyenv)
  File "/usr/local/lib/python2.7/dist-packages/pythonforandroid/logger.py", line 175, in shprint
    for line in output:
  File "/usr/local/lib/python2.7/dist-packages/sh.py", line 720, in next
    self.wait()
  File "/usr/local/lib/python2.7/dist-packages/sh.py", line 651, in wait
    self.handle_command_exit_code(exit_code)
  File "/usr/local/lib/python2.7/dist-packages/sh.py", line 672, in handle_command_exit_code
    raise exc
sh.ErrorReturnCode_1: 

  RAN: /usr/local/bin/cython ./kivy/graphics/svg.pyx

  STDOUT:

Error compiling Cython file:
------------------------------------------------------------
...
                end = time()
                Logger.debug("Svg: Loaded {} in {:.2f}s".format(filename, end - start))
            finally:
                fd.close()

    cdef void reload(self) except *:
        ^
------------------------------------------------------------

kivy/graphics/svg.pyx:469:9: Signature not compatible with previous declaration

Error compiling Cython file:
------------------------------------------------------------
...
        cpdef flag_update(self, int do_parent=?, list _instrs=?)
    ELSE:
        cpdef flag_update(self, int do_parent=?)
    cdef void flag_update_done(self)
    cdef void set_parent(self, Instruction parent)
    cdef void reload(self)
                   ^
------------------------------------------------------------

kivy/graphics/instructions.pxd:36:20: Previous declaration is here


  STDERR:

Alexander Taylor

unread,
Dec 12, 2017, 12:10:42 PM12/12/17
to Python For Android
I think this error arises with cython 0.27, try 0.25 or 0.26.
Reply all
Reply to author
Forward
0 new messages