buildozer - build.py: error: unrecognized arguments: debug

667 views
Skip to first unread message

Brian MacDiarmuide

unread,
May 15, 2014, 3:41:39 PM5/15/14
to kivy-...@googlegroups.com
# Package the application
# project.properties updated
# Run "/usr/bin/python2.7 build.py --name 'My Game' --version 1.2.0 --package com.mygame.blah.www.my game --private /home/me/Dropbox/private/code/python/mygame/.buildozer/android/app --sdk 14 --minsdk 8 --orientation sensor debug"
# Cwd /home/me/Dropbox/private/code/python/mygame/.buildozer/android/platform/python-for-android/dist/My Game
usage: build.py [-h] --package PACKAGE --name NAME --version VERSION
                [--numeric-version NUMERIC_VERSION] [--dir DIR]
                [--private PRIVATE] [--launcher] [--icon-name ICON_NAME]
                [--orientation ORIENTATION] [--permission PERMISSIONS]
                [--ignore-path IGNORE_PATH] [--icon ICON]
                [--presplash PRESPLASH] [--ouya-category OUYA_CATEGORY]
                [--ouya-icon OUYA_ICON] [--install-location INSTALL_LOCATION]
                [--compile-pyo] [--intent-filters INTENT_FILTERS]
                [--with-billing BILLING_PUBKEY] [--blacklist BLACKLIST]
                [--whitelist WHITELIST] [--sdk SDK_VERSION]
                [--minsdk MIN_SDK_VERSION] [--window] [--wakelock]
                [--add-jar ADD_JAR] [--meta-data META_DATA]
                [command [command ...]] 
build.py: error: unrecognized arguments: debug
# Command failed: /usr/bin/python2.7 build.py --name 'My Game' --version 1.2.0 --package com.mygame.blah.www.my game --private /home/me/Dropbox/private/code/python/mygame/.buildozer/android/app --sdk 14 --minsdk 8 --orientation sensor debug


Ben Rousch

unread,
May 15, 2014, 3:44:21 PM5/15/14
to kivy-...@googlegroups.com
You have a space in your package name. That is probably the real problem. --package com.mygame.blah.www.my game



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



--
 Ben Rousch
   bro...@gmail.com
   http://clusterbleep.net/

Brian MacDiarmuide

unread,
May 15, 2014, 3:45:10 PM5/15/14
to kivy-...@googlegroups.com
I am getting that error when I try to build my code. I am using the command: 

sudo buildozer --verbose android debug deploy run.

Ben Rousch

unread,
May 15, 2014, 3:46:48 PM5/15/14
to kivy-...@googlegroups.com
Also, please don't run buildozer as sudo. It's not necessary and may cause permissions problems.


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

Brian MacDiarmuide

unread,
May 15, 2014, 3:48:40 PM5/15/14
to kivy-...@googlegroups.com
Ah, good man. Instantly fixed it. I wasn't aware that I shouldn't have spaces in the package name.

Brian MacDiarmuide

unread,
May 15, 2014, 3:50:23 PM5/15/14
to kivy-...@googlegroups.com
Noted about using sudo. I think the only reason I do was that it wouldn't run for me before without it. Possibly to do with permissions to the folder I was working in.

Haseeb Durrani

unread,
Aug 27, 2016, 1:06:37 PM8/27/16
to Kivy users support

This is the error I keep getting... any help will be appreciated


# Run 'python build.py --name FourHundred --version 1.2.0\n#version.regex = __version__ = [\'"](.*)[\'"]\n#version.filename = ./main.py --package fourhundred --sdk 19 --minsdk 9 --private /Users/Haseeb/Desktop/MyApp/.buildozer/android/app --orientation landscape debug'

# Cwd /Users/Haseeb/Desktop/MyApp/.buildozer/android/platform/python-for-android/dist/fourhundred

usage: build.py [-h] --package PACKAGE --name NAME --version VERSION

                [--numeric-version NUMERIC_VERSION] [--dir DIR]

                [--private PRIVATE] [--launcher] [--icon-name ICON_NAME]

                [--orientation ORIENTATION] [--permission PERMISSIONS]

                [--ignore-path IGNORE_PATH] [--icon ICON]

                [--presplash PRESPLASH] [--ouya-category OUYA_CATEGORY]

                [--ouya-icon OUYA_ICON] [--install-location INSTALL_LOCATION]

                [--compile-pyo] [--intent-filters INTENT_FILTERS]

                [--with-billing BILLING_PUBKEY] [--blacklist BLACKLIST]

                [--whitelist WHITELIST] [--sdk SDK_VERSION]

                [--minsdk MIN_SDK_VERSION] [--window] [--wakelock]

                [--add-jar ADD_JAR] [--meta-data META_DATA]

                [--resource RESOURCE] [--manifest-extra MANIFEST_EXTRA]

                [command [command ...]]

build.py: error: argument --package is required

# Command failed: python build.py --name FourHundred --version 1.2.0

#version.regex = __version__ = ['"](.*)['"]

#version.filename = ./main.py --package fourhundred --sdk 19 --minsdk 9 --private /Users/Haseeb/Desktop/MyApp/.buildozer/android/app --orientation landscape 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