How should the buildozer spec file look like when adding kivymd to the requirents

1,117 views
Skip to first unread message

Joseph kuria

unread,
Dec 2, 2018, 9:28:51 AM12/2/18
to KivyMD users support
Hello ,

since we are installing the package from github and not pypi how should the spec file look like?

# (list) Application requirements
# comma separated e.g. requirements = sqlite3,kivy
requirements = python3,kivy,kivymd


thanks

KivyMD

unread,
Dec 2, 2018, 1:09:46 PM12/2/18
to KivyMD users support

Снимок экрана 2018-12-02 в 21.08.33.png


Joseph kuria

unread,
Dec 3, 2018, 11:56:06 AM12/3/18
to KivyMD users support
Thanks for the reply i used the spec file from the kitchensink app and changed some parts to suit my application but i got errors which arent related to kivymd ..its something to do with cython compilation and i cannot find a fix anywhere on the net i was wondering if you would help me out thanks

spec file

[app]

# (str) Title of your application
title = pipXplosion

# (str) Package name
package.name = pipXplosion

# (str) Package domain (needed for android/ios packaging)
package.domain = org.kivymd

# (str) Source code where the main.py live
source.dir = .

# (list) Source files to include (let empty to include all the files)
source.include_exts = py,png,jpg,kv,atlas,ttf

# (list) List of exclusions using pattern matching
source.exclude_patterns = buildozer.spec

# (str) Application versioning (method 2)
version.regex = __version__ = ['\"]([^'\"]*)['\"]
version.filename = %(source.dir)s/../../kivymd/__init__.py

# (list) Application requirements
# comma seperated e.g. requirements = sqlite3,kivy

# (str) Presplash of the application
presplash.filename = %(source.dir)s/presplash.png
android.presplash_color = #FFFFFF

# (str) Icon of the application
icon.filename = %(source.dir)s/presplash.png

# (str) Supported orientation (one of landscape, portrait or all)
orientation = portrait

# change the major version of python used by the app
osx.python_version = 3

# Kivy version to use
osx.kivy_version = 1.9.1

# (int) Android API to use
# android.api = 19

# (int) Android SDK version to use
# android.sdk = 23

# (bool) Use --private data storage (True) or --dir public storage (False)
private = False

# (str) Android NDK directory (if empty, it will be automatically downloaded.)
android.ndk_path = 

# (bool) Indicate if the application should be fullscreen or not
fullscreen = 1

# (list) Permissions
android.permissions = INTERNET

# (str) python-for-android git clone directory (if empty, it will be automatically cloned from github)
#p4a.source_dir = /home/kivy/Repos/python-for-android/

# (str) The Android arch to build for, choices: armeabi-v7a, arm64-v8a, x86
android.arch = armeabi-v7a


[buildozer]

# (int) Log level (0 = error only, 1 = info, 2 = debug (with command output))
log_level = 2

# (int) Display warning if buildozer is run as root (0 = False, 1 = True)
warn_on_root = 1





error



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/python3 -m pythonforandroid.toolchain create --dist_name=pipXplosion --bootstrap=sdl2 --requirements=kivy==1.10.1,android,git+https://github.com/codingsett/KivyMD.git,python-binance,python --arch armeabi-v7a --copy-libs --color=always --storage-dir="/home/joseph/Desktop/tradingapp/.buildozer/android/platform/build"
# 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

KivyMD

unread,
Dec 3, 2018, 12:15:44 PM12/3/18
to KivyMD users support
This error is not related to the KivyMD library.

KivyMD

unread,
Dec 3, 2018, 12:17:14 PM12/3/18
to KivyMD users support
Reply all
Reply to author
Forward
0 new messages