Skip to content

Instantly share code, notes, and snippets.

@jefcolbi
Last active November 2, 2018 18:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jefcolbi/76d566cf462e74173e0208dee0bb1637 to your computer and use it in GitHub Desktop.
Save jefcolbi/76d566cf462e74173e0208dee0bb1637 to your computer and use it in GitHub Desktop.
the error when compiling. command: buildozer -v android debug deploy run
[INFO]: kivy first build failed (as expected)
[INFO]: Running cython where appropriate
[INFO]: Cythonize kivy/properties.pyx
[INFO]: -> running cython ./kivy/properties.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/_event.pyx
[INFO]: -> running cython ./kivy/_event.pyx
[INFO]: Cythonize kivy/core/audio/audio_sdl2.pyx
[INFO]: -> running cython ./kivy/core/audio/audio_sdl2.pyx
[INFO]: Cythonize kivy/core/camera/camera_avfoundation.pyx
[INFO]: -> running cython ./kivy/core/camera/camera_avfoundation.pyx
[INFO]: Cythonize kivy/core/clipboard/_clipboard_sdl2.pyx
[INFO]: -> running cython ./kivy/core/clipboard/_clipboard_sdl2.pyx
[INFO]: Cythonize kivy/core/image/img_imageio.pyx
[INFO]: -> running cython ./kivy/core/image/img_imageio.pyx
[INFO]: Cythonize kivy/core/image/_img_sdl2.pyx
[INFO]: -> running cython ./kivy/core/image/_img_sdl2.pyx
[INFO]: Cythonize kivy/core/text/text_layout.pyx
[INFO]: -> running cython ./kivy/core/text/text_layout.pyx
[INFO]: Cythonize kivy/core/text/_text_sdl2.pyx
[INFO]: -> running cython ./kivy/core/text/_text_sdl2.pyx
[INFO]: Cythonize kivy/core/window/window_info.pyx
[INFO]: -> running cython ./kivy/core/window/window_info.pyx
[INFO]: Cythonize kivy/core/window/window_x11.pyx
[INFO]: -> running cython ./kivy/core/window/window_x11.pyx
()
Exception in thread background thread for pid 4263:
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 1540, in wrap
fn(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/sh.py", line 2459, in background_thread
handle_exit_code(exit_code)
File "/usr/local/lib/python2.7/dist-packages/sh.py", line 2157, in fn
return self.command.handle_command_exit_code(exit_code)
File "/usr/local/lib/python2.7/dist-packages/sh.py", line 815, in handle_command_exit_code
raise exc
ErrorReturnCode_1:
RAN: /usr/local/bin/cython ./kivy/core/window/window_x11.pyx
STDOUT:
Error compiling Cython file:
------------------------------------------------------------
...
from kivy.config import Config
from kivy.base import stopTouchApp, EventLoop, ExceptionManager
from kivy.utils import platform
from os import environ
from window_info cimport WindowInfoX11
^
------------------------------------------------------------
kivy/core/window/window_x11.pyx:18:0: 'kivy/core/window/window_info/WindowInfoX11.pxd' not found
Error compiling Cython file:
------------------------------------------------------------
...
cdef extern int x11_create_window(int width, int height, int x, int y, \
int resizable, int fullscreen, int border, int above, int CWOR, char *title)
cdef extern void x11_gl_swap()
cdef extern void x11_set_title(char *title)
cdef extern int x11_idle()
cdef extern Display *x11_get_display()
^
------------------------------------------------------------
kivy/core/window/window_x11.pyx:69:12: 'Display' is not a type identifier
Error compiling Cython file:
------------------------------------------------------------
...
int resizable, int fullscreen, int border, int above, int CWOR, char *title)
cdef extern void x11_gl_swap()
cdef extern void x11_set_title(char *title)
cdef extern int x11_idle()
cdef extern Display *x11_get_display()
cdef extern Window x11_get_window()
^
------------------------------------------------------------
kivy/core/window/window_x11.pyx:70:12: 'Window' is not a type identifier
Error compiling Cython file:
------------------------------------------------------------
...
self.system_size = size
super(WindowX11, self).create_window()
self._unbind_create_window()
def get_window_info(self):
cdef WindowInfoX11 window_info = WindowInfoX11()
^
------------------------------------------------------------
kivy/core/window/window_x11.pyx:221:13: 'WindowInfoX11' is not a type identifier
Error compiling Cython file:
------------------------------------------------------------
...
self.system_size = size
super(WindowX11, self).create_window()
self._unbind_create_window()
def get_window_info(self):
cdef WindowInfoX11 window_info = WindowInfoX11()
^
------------------------------------------------------------
kivy/core/window/window_x11.pyx:221:41: 'WindowInfoX11' is not a constant, variable or function identifier
STDERR:
Traceback (most recent call last):
File "/usr/lib/python2.7/runpy.py", line 174, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "/media/jefcolbi/Data/Projets/Projets_Python/TasksChecker/dev/app/.buildozer/android/platform/python-for-android-new-toolchain/pythonforandroid/toolchain.py", line 978, in <module>
main()
File "/media/jefcolbi/Data/Projets/Projets_Python/TasksChecker/dev/app/.buildozer/android/platform/python-for-android-new-toolchain/pythonforandroid/toolchain.py", line 975, in main
ToolchainCL()
File "/media/jefcolbi/Data/Projets/Projets_Python/TasksChecker/dev/app/.buildozer/android/platform/python-for-android-new-toolchain/pythonforandroid/toolchain.py", line 512, in __init__
getattr(self, args.subparser_name.replace('-', '_'))(args)
File "/media/jefcolbi/Data/Projets/Projets_Python/TasksChecker/dev/app/.buildozer/android/platform/python-for-android-new-toolchain/pythonforandroid/toolchain.py", line 149, in wrapper_func
build_dist_from_args(ctx, dist, args)
File "/media/jefcolbi/Data/Projets/Projets_Python/TasksChecker/dev/app/.buildozer/android/platform/python-for-android-new-toolchain/pythonforandroid/toolchain.py", line 193, in build_dist_from_args
build_recipes(build_order, python_modules, ctx)
File "pythonforandroid/build.py", line 573, in build_recipes
File "pythonforandroid/recipe.py", line 928, in build_arch
File "pythonforandroid/recipe.py", line 963, in build_cython_components
File "/media/jefcolbi/Data/Projets/Projets_Python/TasksChecker/dev/app/.buildozer/android/platform/python-for-android-new-toolchain/pythonforandroid/recipes/kivy/__init__.py", line 18, in cythonize_build
super(KivyRecipe, self).cythonize_build(env, build_dir=build_dir)
File "pythonforandroid/recipe.py", line 1008, in cythonize_build
File "pythonforandroid/recipe.py", line 999, in cythonize_file
File "pythonforandroid/logger.py", line 175, in shprint
File "/usr/local/lib/python2.7/dist-packages/sh.py", line 863, in next
self.wait()
File "/usr/local/lib/python2.7/dist-packages/sh.py", line 792, in wait
self.handle_command_exit_code(exit_code)
File "/usr/local/lib/python2.7/dist-packages/sh.py", line 815, in handle_command_exit_code
raise exc
sh.ErrorReturnCode_1:
RAN: /usr/local/bin/cython ./kivy/core/window/window_x11.pyx
STDOUT:
Error compiling Cython file:
------------------------------------------------------------
...
from kivy.config import Config
from kivy.base import stopTouchApp, EventLoop, ExceptionManager
from kivy.utils import platform
from os import environ
from window_info cimport WindowInfoX11
^
------------------------------------------------------------
kivy/core/window/window_x11.pyx:18:0: 'kivy/core/window/window_info/WindowInfoX11.pxd' not found
Error compiling Cython file:
------------------------------------------------------------
...
cdef extern int x11_create_window(int width, int height, int x, int y, \
int resizable, int fullscreen, int border, int above, int CWOR, char *title)
cdef extern void x11_gl_swap()
cdef extern void x11_set_title(char *title)
cdef extern int x11_idle()
cdef extern Display *x11_get_display()
^
------------------------------------------------------------
kivy/core/window/window_x11.pyx:69:12: 'Display' is not a type identifier
Error compiling Cython file:
------------------------------------------------------------
...
int resizable, int fullscreen, int border, int above, int CWOR, char *title)
cdef extern void x11_gl_swap()
cdef extern void x11_set_title(char *title)
cdef extern int x11_idle()
cdef extern Display *x11_get_display()
cdef extern Window x11_get_window()
^
------------------------------------------------------------
kivy/core/window/window_x11.pyx:70:12: 'Window' is not a type identifier
Error compiling Cython file:
------------------------------------------------------------
...
self.system_size = size
super(WindowX11, self).create_window()
self._unbind_create_window()
def get_window_info(self):
cdef WindowInfoX11 window_info = WindowInfoX11()
^
------------------------------------------------------------
kivy/core/window/window_x11.pyx:221:13: 'WindowInfoX11' is not a type identifier
Error compiling Cython file:
------------------------------------------------------------
...
self.system_size = size
super(WindowX11, self).create_window()
self._unbind_create_window()
def get_window_info(self):
cdef WindowInfoX11 window_info = WindowInfoX11()
^
------------------------------------------------------------
kivy/core/window/window_x11.pyx:221:41: 'WindowInfoX11' is not a constant, variable or function identifier
STDERR:
# Command failed: /usr/bin/python -m pythonforandroid.toolchain create --dist_name=taskscheck --bootstrap=sdl2 --requirements=kivy==1.10.1,sqlite3,requests --arch armeabi-v7a --copy-libs --color=always --storage-dir="/media/jefcolbi/Data/Projets/Projets_Python/TasksChecker/dev/app/.buildozer/android/platform/build"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment