Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/python-2.7/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/user-interface/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 2.7 buildozer未编译#命令失败:_Python 2.7_Kivy - Fatal编程技术网

Python 2.7 buildozer未编译#命令失败:

Python 2.7 buildozer未编译#命令失败:,python-2.7,kivy,Python 2.7,Kivy,嘿,伙计们,我正在试用buildozer,让kivy运行并编写了一个应用程序。Buildozer可以工作并生成一个bin文件,但它是空的,我收到了这个错误(我正在运行fedora20): 文件“build.py”,第497行,在 make_包(args) make_包中第321行的文件“build.py” make_tar('assets/private.mp3',['private',args.private]) make_tar中的文件“build.py”,第203行 tf.add(fn,a

嘿,伙计们,我正在试用buildozer,让kivy运行并编写了一个应用程序。Buildozer可以工作并生成一个bin文件,但它是空的,我收到了这个错误(我正在运行fedora20):

文件“build.py”,第497行,在
make_包(args)
make_包中第321行的文件“build.py”
make_tar('assets/private.mp3',['private',args.private])
make_tar中的文件“build.py”,第203行
tf.add(fn,afn)
文件“/usr/lib64/python2.7/tarfile.py”,第1991行,添加
self.addfile(tarinfo,f)
文件“/usr/lib64/python2.7/tarfile.py”,第2014行,在addfile中
buf=tarinfo.tobuf(self.format、self.encoding、self.errors)
文件“/usr/lib64/python2.7/tarfile.py”,第994行,在tobuf中
返回self.create_ustar_头(信息)
文件“/usr/lib64/python2.7/tarfile.py”,第1011行,在create\u-ustar\u头中
信息[“前缀”]、信息[“名称”]=self.\u posix\u split\u name(信息[“名称”])
文件“/usr/lib64/python2.7/tarfile.py”,第1098行,名称为
raise VALUERROR(“名称太长”)
ValueError:名称太长
#命令失败:/usr/bin/python build.py--name-app--version 1.0--package org.test.app--private/home/Wheels/.buildozer/android/app--sdk 14--minsdk 8--orientation sensor window debug

我刚刚设法通过我的编译(通过降级Cython)取得了一些进展,现在出现了上述错误。O/P没有发布他的,所以这是我的:

[app]

# (str) Title of your application
title = My Application

# (str) Package name
package.name = myapp

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

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

# (list) Source files to exclude (let empty to not exclude anything)
#source.exclude_exts = spec

# (list) List of directory to exclude (let empty to not exclude anything)
#source.exclude_dirs = tests, bin

# (list) List of exclusions using pattern matching
#source.exclude_patterns = license,images/*/*.jpg

# (str) Application versioning (method 1)
#version.regex = __version__ = ['"](.*)['"]
#version.filename = %(source.dir)s/main.py

# (str) Application versioning (method 2)
version = 1.0

# (list) Application requirements
requirements = kivy

# (list) Garden requirements
#garden_requirements =

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

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

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

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


#
# Android specific
#

# (list) Permissions
#android.permissions = INTERNET

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

# (int) Minimum API required (8 = Android 2.2 devices)
#android.minapi = 8

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

# (str) Android NDK version to use
android.ndk = 9d

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

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

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

# (str) python-for-android git clone directory (if empty, it will be automatically cloned from github)
#android.p4a_dir =

# (list) python-for-android whitelist
#android.p4a_whitelist =

# (str) Android entry point, default is ok for Kivy-based app
#android.entrypoint = org.renpy.android.PythonActivity

# (list) List of Java .jar files to add to the libs so that pyjnius can access
# their classes. Don't add jars that you do not need, since extra jars can slow
# down the build process. Allows wildcards matching, for example:
# OUYA-ODK/libs/*.jar
#android.add_jars = foo.jar,bar.jar,path/to/more/*.jar

# (list) List of Java files to add to the android project (can be java or a
# directory containing the files)
#android.add_src =

# (str) python-for-android branch to use, if not master, useful to try
# not yet merged features.
#android.branch = master

# (str) OUYA Console category. Should be one of GAME or APP
# If you leave this blank, OUYA support will not be enabled
#android.ouya.category = GAME

# (str) Filename of OUYA Console icon. It must be a 732x412 png image.
#android.ouya.icon.filename = %(source.dir)s/data/ouya_icon.png

# (str) XML file to include as an intent filters in <activity> tag
#android.manifest.intent_filters =

# (list) Android additionnal libraries to copy into libs/armeabi
#android.add_libs_armeabi = libs/android/*.so
#android.add_libs_armeabi_v7a = libs/android-v7/*.so
#android.add_libs_x86 = libs/android-x86/*.so
#android.add_libs_mips = libs/android-mips/*.so

# (bool) Indicate whether the screen should stay on
# Don't forget to add the WAKE_LOCK permission if you set this to True
#android.wakelock = False

# (list) Android application meta-data to set (key=value format)
#android.meta_data =

# (list) Android library project to add (will be added in the
# project.properties automatically.)
#android.library_references =

#
# iOS specific
#

# (str) Name of the certificate to use for signing the debug version
# Get a list of available identities: buildozer ios list_identities
#ios.codesign.debug = "iPhone Developer: <lastname> <firstname> (<hexstring>)"

# (str) Name of the certificate to use for signing the release version
#ios.codesign.release = %(ios.codesign.debug)s


[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


# -----------------------------------------------------------------------------
# List as sections
#
# You can define all the "list" as [section:key].
# Each line will be considered as a option to the list.
# Let's take [app] / source.exclude_patterns.
# Instead of doing:
#
#     [app]
#     source.exclude_patterns = license,data/audio/*.wav,data/images/original/*
#
# This can be translated into:
#
#     [app:source.exclude_patterns]
#     license
#     data/audio/*.wav
#     data/images/original/*
#


# -----------------------------------------------------------------------------
# Profiles
#
# You can extend section / key with a profile
# For example, you want to deploy a demo version of your application without
# HD content. You could first change the title to add "(demo)" in the name
# and extend the excluded directories to remove the HD content.
#
#     [app@demo]
#     title = My Application (demo)
#
#     [app:source.exclude_patterns@demo]
#     images/hd/*
#
# Then, invoke the command line with the "demo" profile:
#
#     buildozer --profile demo android debug
[app]
#(str)您的申请的标题
title=我的申请
#(str)包名
package.name=myapp
#(str)包域(android/ios包需要)
package.domain=org.test
#(str)main.py所在的源代码
source.dir=。
#(列出)要包括的源文件(设为空以包括所有文件)
source.include_exts=py、png、jpg、kv、atlas
#(列表)要排除的源文件(设为空不排除任何内容)
#source.exclude_exts=spec
#(列表)要排除的目录列表(设为空不排除任何内容)
#source.exclude_dirs=测试,bin
#(列表)使用模式匹配的排除列表
#source.exclude_patterns=许可证,图像/*/*.jpg
#(str)应用程序版本控制(方法1)
#version.regex=\\\\\\['”](.*)['”]
#version.filename=%(source.dir)s/main.py
#(str)应用程序版本控制(方法2)
版本=1.0
#(列表)申请要求
要求=基维
#(列表)花园要求
#园林绿化要求=
#(str)应用程序的预剥离
#presplash.filename=%(source.dir)s/data/presplash.png
#(str)应用程序的图标
#icon.filename=%(source.dir)s/data/icon.png
#(str)支撑方向(横向、纵向或全部)
方向=全部
#(bool)指示应用程序是否应全屏显示
全屏显示=1
#
#特定于Android的
#
#(列表)权限
#android.permissions=互联网
#(int)要使用的Android API
android.api=20
#(int)所需的最低API(8=安卓2.2设备)
#android.minapi=8
#(int)要使用的Android SDK版本
#android.sdk=21
#(str)要使用的Android NDK版本
android.ndk=9d
#(bool)使用--private data storage(真)或--dir public storage(假)
#android.private_storage=True
#(str)Android NDK目录(如果为空,将自动下载。)
#android.ndk_路径=
#(str)Android SDK目录(如果为空,将自动下载。)
#android.sdk_路径=
#(str)android git克隆目录的python(如果为空,将自动从github克隆)
#android.p4a_目录=
#(列表)用于android的python白名单
#android.p4a_白名单=
#(str)Android入口点,基于Kivy的应用程序默认为ok
#android.entrypoint=org.renpy.android.PythonActivity
#(list)要添加到libs以便pyjnius可以访问的Java.jar文件列表
#他们的课。不要添加你不需要的罐子,因为额外的罐子会减慢速度
#在构建过程中。允许通配符匹配,例如:
#OUYA-ODK/libs/*.jar
#android.add_jars=foo.jar、bar.jar、path/to/more/*.jar
#(列表)要添加到android项目的Java文件列表(可以是Java或
#包含文件的目录)
#android.add\u src=
#(str)android branch使用的python,如果不是master,可以尝试
#尚未合并的功能。
#android.branch=master
#(str)OUYA控制台类别。应该是游戏或应用程序之一
#如果将此项留空,将不会启用OUYA支持
#android.ouya.category=游戏
#(str)OUYA控制台图标的文件名。它必须是732x412 png图像。
#android.ouya.icon.filename=%(source.dir)s/data/ouya_icon.png
#(str)XML文件,作为意图过滤器包含在标记中
#android.manifest.intent\u过滤器=
#(列表)要复制到libs/armeabi的Android附加库
#android.add_libs_armeabi=libs/android/*.so
#android.add_libs_armeabi_v7a=libs/android-v7/*.so
#android.add_libs_x86=libs/android-x86/*.so
#android.add_libs_mips=libs/android mips/*.so
#(bool)指示屏幕是否应保持打开状态
#如果将此设置为True,请不要忘记添加唤醒锁定权限
#android.wakelock=False
#(列表)要设置的Android应用程序元数据(键=值格式)
#android.meta_数据=
#(列表)要添加的Android库项目(将添加到
#project.properties自动生成。)
#android.library\u参考=
#
#iOS特定
#
#(str)用于签署调试版本的证书的名称
#获取可用标识的列表:buildozer ios list_标识
#ios.codesign.debug=“iPhone开发者:()”
#(str)用于签署发布版本的证书的名称
#ios.codesign.release=%(ios.codesign.debug)s
[建筑商]
#(int)日志级别(0=仅错误,1=信息,2=调试(带命令输出))
日志级别=2
#(int)如果buildozer以root用户身份运行,则显示警告(0=False,1=True)
警告\u根上的\u=1
# -----------------------------------------------------------------------------
#按节列出
#
#您可以将所有“列表”定义为[section:key]。
#每一行都将被视为列表的一个选项。
#让我们以[app]/source.exclude_模式为例。
#而不是做:
#
#[应用程序]
#source.exclude_patterns=许可证,dat
[app]

# (str) Title of your application
title = My Application

# (str) Package name
package.name = myapp

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

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

# (list) Source files to exclude (let empty to not exclude anything)
#source.exclude_exts = spec

# (list) List of directory to exclude (let empty to not exclude anything)
#source.exclude_dirs = tests, bin

# (list) List of exclusions using pattern matching
#source.exclude_patterns = license,images/*/*.jpg

# (str) Application versioning (method 1)
#version.regex = __version__ = ['"](.*)['"]
#version.filename = %(source.dir)s/main.py

# (str) Application versioning (method 2)
version = 1.0

# (list) Application requirements
requirements = kivy

# (list) Garden requirements
#garden_requirements =

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

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

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

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


#
# Android specific
#

# (list) Permissions
#android.permissions = INTERNET

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

# (int) Minimum API required (8 = Android 2.2 devices)
#android.minapi = 8

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

# (str) Android NDK version to use
android.ndk = 9d

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

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

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

# (str) python-for-android git clone directory (if empty, it will be automatically cloned from github)
#android.p4a_dir =

# (list) python-for-android whitelist
#android.p4a_whitelist =

# (str) Android entry point, default is ok for Kivy-based app
#android.entrypoint = org.renpy.android.PythonActivity

# (list) List of Java .jar files to add to the libs so that pyjnius can access
# their classes. Don't add jars that you do not need, since extra jars can slow
# down the build process. Allows wildcards matching, for example:
# OUYA-ODK/libs/*.jar
#android.add_jars = foo.jar,bar.jar,path/to/more/*.jar

# (list) List of Java files to add to the android project (can be java or a
# directory containing the files)
#android.add_src =

# (str) python-for-android branch to use, if not master, useful to try
# not yet merged features.
#android.branch = master

# (str) OUYA Console category. Should be one of GAME or APP
# If you leave this blank, OUYA support will not be enabled
#android.ouya.category = GAME

# (str) Filename of OUYA Console icon. It must be a 732x412 png image.
#android.ouya.icon.filename = %(source.dir)s/data/ouya_icon.png

# (str) XML file to include as an intent filters in <activity> tag
#android.manifest.intent_filters =

# (list) Android additionnal libraries to copy into libs/armeabi
#android.add_libs_armeabi = libs/android/*.so
#android.add_libs_armeabi_v7a = libs/android-v7/*.so
#android.add_libs_x86 = libs/android-x86/*.so
#android.add_libs_mips = libs/android-mips/*.so

# (bool) Indicate whether the screen should stay on
# Don't forget to add the WAKE_LOCK permission if you set this to True
#android.wakelock = False

# (list) Android application meta-data to set (key=value format)
#android.meta_data =

# (list) Android library project to add (will be added in the
# project.properties automatically.)
#android.library_references =

#
# iOS specific
#

# (str) Name of the certificate to use for signing the debug version
# Get a list of available identities: buildozer ios list_identities
#ios.codesign.debug = "iPhone Developer: <lastname> <firstname> (<hexstring>)"

# (str) Name of the certificate to use for signing the release version
#ios.codesign.release = %(ios.codesign.debug)s


[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


# -----------------------------------------------------------------------------
# List as sections
#
# You can define all the "list" as [section:key].
# Each line will be considered as a option to the list.
# Let's take [app] / source.exclude_patterns.
# Instead of doing:
#
#     [app]
#     source.exclude_patterns = license,data/audio/*.wav,data/images/original/*
#
# This can be translated into:
#
#     [app:source.exclude_patterns]
#     license
#     data/audio/*.wav
#     data/images/original/*
#


# -----------------------------------------------------------------------------
# Profiles
#
# You can extend section / key with a profile
# For example, you want to deploy a demo version of your application without
# HD content. You could first change the title to add "(demo)" in the name
# and extend the excluded directories to remove the HD content.
#
#     [app@demo]
#     title = My Application (demo)
#
#     [app:source.exclude_patterns@demo]
#     images/hd/*
#
# Then, invoke the command line with the "demo" profile:
#
#     buildozer --profile demo android debug