- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我目前使用的是 python 2.7.9。我试过重新安装 cython 并更新所有依赖项,但它没有用。我不知道 Buildozer 或 Cython 有什么问题。该应用程序直接从终端正常运行。
#error Do not use this file, it is the result of a failed Cython compilation.
^
error: command 'ccache' failed with exit status 1
Error compiling Cython file:
------------------------------------------------------------
...
cpdef release(self)
cpdef get_pixel_color(self, int wx, int wy)
cdef void create_fbo(self)
cdef void delete_fbo(self)
cdef void apply(self)
^
------------------------------------------------------------
kivy/graphics/fbo.pxd:27:19: Signature not compatible with previous declaration
Error compiling Cython file:
------------------------------------------------------------
...
cdef void push_states(self, list names) except *
cdef void pop_state(self, str name) except *
cdef void pop_states(self, list names) except *
cdef void enter(self) except *
cdef void leave(self) except *
cdef void apply(self) except *
^
------------------------------------------------------------
kivy/graphics/instructions.pxd:123:19: Previous declaration is here
Error compiling Cython file:
------------------------------------------------------------
...
cpdef release(self)
cpdef get_pixel_color(self, int wx, int wy)
cdef void create_fbo(self)
cdef void delete_fbo(self)
cdef void apply(self)
^
------------------------------------------------------------
kivy/graphics/fbo.pxd:27:19: Signature not compatible with previous declaration
Error compiling Cython file:
------------------------------------------------------------
...
cdef void push_states(self, list names) except *
cdef void pop_state(self, str name) except *
cdef void pop_states(self, list names) except *
cdef void enter(self) except *
cdef void leave(self) except *
cdef void apply(self) except *
^
------------------------------------------------------------
kivy/graphics/instructions.pxd:123:19: Previous declaration is here
Error compiling Cython file:
------------------------------------------------------------
...
cdef void stop(self):
'''Stop using the shader.
'''
glUseProgram(0)
cdef void set_uniform(self, str name, value):
^
------------------------------------------------------------
kivy/graphics/shader.pyx:233:9: Signature not compatible with previous declaration
Error compiling Cython file:
------------------------------------------------------------
...
cdef dict uniform_locations
cdef dict uniform_values
cdef void use(self)
cdef void stop(self)
cdef void set_uniform(self, str name, value) except *
^
------------------------------------------------------------
kivy/graphics/shader.pxd:29:25: Previous declaration is here
Error compiling Cython file:
------------------------------------------------------------
...
if name in self.uniform_values and self.uniform_values[name] == value:
return
self.uniform_values[name] = value
self.upload_uniform(name, value)
cdef void upload_uniform(self, str name, value):
^
------------------------------------------------------------
kivy/graphics/shader.pyx:239:9: Signature not compatible with previous declaration
Error compiling Cython file:
------------------------------------------------------------
...
cdef dict uniform_values
cdef void use(self)
cdef void stop(self)
cdef void set_uniform(self, str name, value) except *
cdef void upload_uniform(self, str name, value) except *
^
------------------------------------------------------------
kivy/graphics/shader.pxd:30:28: Previous declaration is here
Error compiling Cython file:
------------------------------------------------------------
...
cdef GLfloat mat[16]
for x in xrange(16):
mat[x] = <GLfloat>value.mat[x]
glUniformMatrix4fv(loc, 1, False, mat)
cdef int get_uniform_loc(self, str name):
^
------------------------------------------------------------
kivy/graphics/shader.pyx:424:9: Signature not compatible with previous declaration
Error compiling Cython file:
------------------------------------------------------------
...
cdef void use(self)
cdef void stop(self)
cdef void set_uniform(self, str name, value) except *
cdef void upload_uniform(self, str name, value) except *
cdef void upload_uniform_matrix(self, int loc, Matrix value)
cdef int get_uniform_loc(self, str name) except *
^
------------------------------------------------------------
kivy/graphics/shader.pxd:32:28: Previous declaration is here
Error compiling Cython file:
------------------------------------------------------------
...
glEnableVertexAttribArray(attr.index)
# save for the next run.
self._current_vertex_format = vertex_format
cdef void build(self):
^
------------------------------------------------------------
kivy/graphics/shader.pyx:465:9: Signature not compatible with previous declaration
Error compiling Cython file:
------------------------------------------------------------
...
cdef void stop(self)
cdef void set_uniform(self, str name, value) except *
cdef void upload_uniform(self, str name, value) except *
cdef void upload_uniform_matrix(self, int loc, Matrix value)
cdef int get_uniform_loc(self, str name) except *
cdef void build(self) except *
^
------------------------------------------------------------
kivy/graphics/shader.pxd:33:19: Previous declaration is here
Error compiling Cython file:
------------------------------------------------------------
...
cdef void build(self):
self.build_vertex()
self.build_fragment()
cdef void build_vertex(self, int link=1):
^
------------------------------------------------------------
kivy/graphics/shader.pyx:469:9: Signature not compatible with previous declaration
Error compiling Cython file:
------------------------------------------------------------
...
cdef void set_uniform(self, str name, value) except *
cdef void upload_uniform(self, str name, value) except *
cdef void upload_uniform_matrix(self, int loc, Matrix value)
cdef int get_uniform_loc(self, str name) except *
cdef void build(self) except *
cdef void build_vertex(self, int link=*) except *
^
------------------------------------------------------------
kivy/graphics/shader.pxd:34:26: Previous declaration is here
Error compiling Cython file:
------------------------------------------------------------
...
if self.vertex_shader is not None:
glAttachShader(self.program, self.vertex_shader.shader)
if link:
self.link_program()
cdef void build_fragment(self, int link=1):
^
------------------------------------------------------------
kivy/graphics/shader.pyx:479:9: Signature not compatible with previous declaration
Error compiling Cython file:
------------------------------------------------------------
...
cdef void upload_uniform(self, str name, value) except *
cdef void upload_uniform_matrix(self, int loc, Matrix value)
cdef int get_uniform_loc(self, str name) except *
cdef void build(self) except *
cdef void build_vertex(self, int link=*) except *
cdef void build_fragment(self, int link=*) except *
^
------------------------------------------------------------
kivy/graphics/shader.pxd:35:28: Previous declaration is here
Error compiling Cython file:
------------------------------------------------------------
...
if self.fragment_shader is not None:
glAttachShader(self.program, self.fragment_shader.shader)
if link:
self.link_program()
cdef void link_program(self):
^
------------------------------------------------------------
kivy/graphics/shader.pyx:489:9: Signature not compatible with previous declaration
Error compiling Cython file:
------------------------------------------------------------
...
cdef void upload_uniform_matrix(self, int loc, Matrix value)
cdef int get_uniform_loc(self, str name) except *
cdef void build(self) except *
cdef void build_vertex(self, int link=*) except *
cdef void build_fragment(self, int link=*) except *
cdef void link_program(self) except *
^
------------------------------------------------------------
kivy/graphics/shader.pxd:36:26: Previous declaration is here
Error compiling Cython file:
------------------------------------------------------------
...
cpdef release(self)
cpdef get_pixel_color(self, int wx, int wy)
cdef void create_fbo(self)
cdef void delete_fbo(self)
cdef void apply(self)
^
------------------------------------------------------------
kivy/graphics/fbo.pxd:27:19: Signature not compatible with previous declaration
Error compiling Cython file:
------------------------------------------------------------
...
cdef void push_states(self, list names) except *
cdef void pop_state(self, str name) except *
cdef void pop_states(self, list names) except *
cdef void enter(self) except *
cdef void leave(self) except *
cdef void apply(self) except *
^
------------------------------------------------------------
kivy/graphics/instructions.pxd:123:19: Previous declaration is here
Error compiling Cython file:
------------------------------------------------------------
...
cpdef release(self)
cpdef get_pixel_color(self, int wx, int wy)
cdef void create_fbo(self)
cdef void delete_fbo(self)
cdef void apply(self)
^
------------------------------------------------------------
kivy/graphics/fbo.pxd:27:19: Signature not compatible with previous declaration
Error compiling Cython file:
------------------------------------------------------------
...
cdef void push_states(self, list names) except *
cdef void pop_state(self, str name) except *
cdef void pop_states(self, list names) except *
cdef void enter(self) except *
cdef void leave(self) except *
cdef void apply(self) except *
^
------------------------------------------------------------
kivy/graphics/instructions.pxd:123:19: Previous declaration is here
Error compiling Cython file:
------------------------------------------------------------
...
elif self._stencilbuffer_attached:
glClear(GL_COLOR_BUFFER_BIT | GL_STENCIL_BUFFER_BIT)
else:
glClear(GL_COLOR_BUFFER_BIT)
cdef void apply(self):
^
------------------------------------------------------------
kivy/graphics/fbo.pyx:326:9: Signature not compatible with previous declaration
Error compiling Cython file:
------------------------------------------------------------
...
cdef void push_states(self, list names) except *
cdef void pop_state(self, str name) except *
cdef void pop_states(self, list names) except *
cdef void enter(self) except *
cdef void leave(self) except *
cdef void apply(self) except *
^
------------------------------------------------------------
kivy/graphics/instructions.pxd:123:19: Previous declaration is here
Error compiling Cython file:
------------------------------------------------------------
...
cpdef release(self)
cpdef get_pixel_color(self, int wx, int wy)
cdef void create_fbo(self)
cdef void delete_fbo(self)
cdef void apply(self)
^
------------------------------------------------------------
kivy/graphics/fbo.pxd:27:19: Signature not compatible with previous declaration
Error compiling Cython file:
------------------------------------------------------------
...
cdef void push_states(self, list names) except *
cdef void pop_state(self, str name) except *
cdef void pop_states(self, list names) except *
cdef void enter(self) except *
cdef void leave(self) except *
cdef void apply(self) except *
^
------------------------------------------------------------
kivy/graphics/instructions.pxd:123:19: Previous declaration is here
Error compiling Cython file:
------------------------------------------------------------
...
cpdef release(self)
cpdef get_pixel_color(self, int wx, int wy)
cdef void create_fbo(self)
cdef void delete_fbo(self)
cdef void apply(self)
^
------------------------------------------------------------
kivy/graphics/fbo.pxd:27:19: Signature not compatible with previous declaration
Error compiling Cython file:
------------------------------------------------------------
...
cdef void push_states(self, list names) except *
cdef void pop_state(self, str name) except *
cdef void pop_states(self, list names) except *
cdef void enter(self) except *
cdef void leave(self) except *
cdef void apply(self) except *
^
------------------------------------------------------------
kivy/graphics/instructions.pxd:123:19: Previous declaration is here
Error compiling Cython file:
------------------------------------------------------------
...
if self.context_state:
context.set_states(self.context_state)
if self.context_pop:
context.pop_states(self.context_pop)
cdef void set_state(self, str name, value):
^
------------------------------------------------------------
kivy/graphics/instructions.pyx:258:9: Signature not compatible with previous declaration
Error compiling Cython file:
------------------------------------------------------------
...
cdef dict context_state
cdef list context_push
cdef list context_pop
cdef RenderContext get_context(self)
cdef void set_state(self, str name, value) except *
^
------------------------------------------------------------
kivy/graphics/instructions.pxd:61:23: Previous declaration is here
Error compiling Cython file:
------------------------------------------------------------
...
cdef void set_state(self, str name, value):
self.context_state[name] = value
self.flag_update()
cdef void push_state(self, str name):
^
------------------------------------------------------------
kivy/graphics/instructions.pyx:262:9: Signature not compatible with previous declaration
Error compiling Cython file:
------------------------------------------------------------
...
cdef list context_push
cdef list context_pop
cdef RenderContext get_context(self)
cdef void set_state(self, str name, value) except *
cdef void push_state(self, str name) except *
^
------------------------------------------------------------
kivy/graphics/instructions.pxd:62:24: Previous declaration is here
Error compiling Cython file:
------------------------------------------------------------
...
cdef void push_state(self, str name):
self.context_push.append(name)
self.flag_update()
cdef void pop_state(self, str name):
^
------------------------------------------------------------
kivy/graphics/instructions.pyx:266:9: Signature not compatible with previous declaration
Error compiling Cython file:
------------------------------------------------------------
...
cdef list context_pop
cdef RenderContext get_context(self)
cdef void set_state(self, str name, value) except *
cdef void push_state(self, str name) except *
cdef void pop_state(self, str name) except *
^
------------------------------------------------------------
kivy/graphics/instructions.pxd:63:23: Previous declaration is here
Error compiling Cython file:
------------------------------------------------------------
...
self._shader.set_uniform(name, value)
cdef get_state(self, str name):
return self.state_stacks[name][-1]
cdef void set_states(self, dict states):
^
------------------------------------------------------------
kivy/graphics/instructions.pyx:789:9: Signature not compatible with previous declaration
Error compiling Cython file:
------------------------------------------------------------
...
cdef int _use_parent_modelview
cdef void set_texture(self, int index, Texture texture)
cdef void set_state(self, str name, value, int apply_now=?)
cdef get_state(self, str name)
cdef void set_states(self, dict states) except *
^
------------------------------------------------------------
kivy/graphics/instructions.pxd:116:24: Previous declaration is here
Error compiling Cython file:
------------------------------------------------------------
...
cdef void set_states(self, dict states):
cdef str name
for name, value in states.iteritems():
self.set_state(name, value)
cdef void push_state(self, str name):
^
------------------------------------------------------------
kivy/graphics/instructions.pyx:794:9: Signature not compatible with previous declaration
Error compiling Cython file:
------------------------------------------------------------
...
cdef void set_texture(self, int index, Texture texture)
cdef void set_state(self, str name, value, int apply_now=?)
cdef get_state(self, str name)
cdef void set_states(self, dict states) except *
cdef void push_state(self, str name) except *
^
------------------------------------------------------------
kivy/graphics/instructions.pxd:117:24: Previous declaration is here
Error compiling Cython file:
------------------------------------------------------------
...
cdef void push_state(self, str name):
stack = self.state_stacks[name]
stack.append(stack[-1])
self.flag_update()
cdef void push_states(self, list names):
^
------------------------------------------------------------
kivy/graphics/instructions.pyx:799:9: Signature not compatible with previous declaration
Error compiling Cython file:
------------------------------------------------------------
...
cdef void set_texture(self, int index, Texture texture)
cdef void set_state(self, str name, value, int apply_now=?)
cdef get_state(self, str name)
cdef void set_states(self, dict states) except *
cdef void push_state(self, str name) except *
cdef void push_states(self, list names) except *
^
------------------------------------------------------------
kivy/graphics/instructions.pxd:118:25: Previous declaration is here
Error compiling Cython file:
------------------------------------------------------------
...
cdef void push_states(self, list names):
cdef str name
for name in names:
self.push_state(name)
cdef void pop_state(self, str name):
^
------------------------------------------------------------
kivy/graphics/instructions.pyx:804:9: Signature not compatible with previous declaration
Error compiling Cython file:
------------------------------------------------------------
...
cdef void set_state(self, str name, value, int apply_now=?)
cdef get_state(self, str name)
cdef void set_states(self, dict states) except *
cdef void push_state(self, str name) except *
cdef void push_states(self, list names) except *
cdef void pop_state(self, str name) except *
^
------------------------------------------------------------
kivy/graphics/instructions.pxd:119:23: Previous declaration is here
Error compiling Cython file:
------------------------------------------------------------
...
oldvalue = stack.pop()
if oldvalue != stack[-1]:
self.set_state(name, stack[-1])
self.flag_update()
cdef void pop_states(self, list names):
^
------------------------------------------------------------
kivy/graphics/instructions.pyx:811:9: Signature not compatible with previous declaration
Error compiling Cython file:
------------------------------------------------------------
...
cdef get_state(self, str name)
cdef void set_states(self, dict states) except *
cdef void push_state(self, str name) except *
cdef void push_states(self, list names) except *
cdef void pop_state(self, str name) except *
cdef void pop_states(self, list names) except *
^
------------------------------------------------------------
kivy/graphics/instructions.pxd:120:24: Previous declaration is here
Error compiling Cython file:
------------------------------------------------------------
...
_active_texture = index
glActiveTexture(GL_TEXTURE0 + index)
texture.bind()
self.flag_update()
cdef void enter(self):
^
------------------------------------------------------------
kivy/graphics/instructions.pyx:831:9: Signature not compatible with previous declaration
Error compiling Cython file:
------------------------------------------------------------
...
cdef void set_states(self, dict states) except *
cdef void push_state(self, str name) except *
cdef void push_states(self, list names) except *
cdef void pop_state(self, str name) except *
cdef void pop_states(self, list names) except *
cdef void enter(self) except *
^
------------------------------------------------------------
kivy/graphics/instructions.pxd:121:19: Previous declaration is here
Error compiling Cython file:
------------------------------------------------------------
...
self.flag_update()
cdef void enter(self):
self._shader.use()
cdef void leave(self):
^
------------------------------------------------------------
kivy/graphics/instructions.pyx:834:9: Signature not compatible with previous declaration
Error compiling Cython file:
------------------------------------------------------------
...
cdef void push_state(self, str name) except *
cdef void push_states(self, list names) except *
cdef void pop_state(self, str name) except *
cdef void pop_states(self, list names) except *
cdef void enter(self) except *
cdef void leave(self) except *
^
------------------------------------------------------------
kivy/graphics/instructions.pxd:122:19: Previous declaration is here
Error compiling Cython file:
------------------------------------------------------------
...
self._shader.use()
cdef void leave(self):
self._shader.stop()
cdef void apply(self):
^
------------------------------------------------------------
kivy/graphics/instructions.pyx:837:9: 'apply' already defined
Error compiling Cython file:
------------------------------------------------------------
...
self._shader.use()
cdef void leave(self):
self._shader.stop()
cdef void apply(self):
^
------------------------------------------------------------
kivy/graphics/instructions.pyx:837:9: Signature not compatible with previous declaration
Error compiling Cython file:
------------------------------------------------------------
...
cdef void push_states(self, list names) except *
cdef void pop_state(self, str name) except *
cdef void pop_states(self, list names) except *
cdef void enter(self) except *
cdef void leave(self) except *
cdef void apply(self) except *
^
------------------------------------------------------------
kivy/graphics/instructions.pxd:123:19: Previous declaration is here
/home/sterilistic/Desktop/PongApp/.buildozer/android/platform/python-for-android/build/python-install/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'dependency_links'
warnings.warn(msg)
/home/sterilistic/Desktop/PongApp/.buildozer/android/platform/python-for-android/build/python-install/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'install_requires'
warnings.warn(msg)
Cython check avoided.
Using this graphics system: OpenGL ES 2
running build_ext
Build configuration is:
* use_rpi = 0
* use_opengl_es2 = 1
* use_opengl_debug = 0
* use_glew = 0
* use_sdl2 = 0
* use_ios = 0
* use_mesagl = 0
* use_x11 = 0
* use_gstreamer = 0
* use_avfoundation = 0
* use_osx_frameworks = 0
* debug = False
Detected compiler is unix
building 'kivy.graphics.opengl' extension
kivy/graphics/vbo.c:1:2: error: #error Do not use this file, it is the result of a failed Cython compilation.
#error Do not use this file, it is the result of a failed Cython compilation.
^
error: command 'ccache' failed with exit status 1
# Command failed: ./distribute.sh -m "kivy" -d "myapp"
#
# 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
最佳答案
这是不兼容的 cython 版本的问题。尝试使用 kivy 的 master 分支(将 kivy==master
添加到 buildozer.spec)并确保 buildozer 通过删除 .buildozer
目录重新下载 python-for-android你的应用程序目录。不要删除主目录中的那个,它包含(更大的)Android SDK 和 NDK,您不想再次下载它们。
关于kivy - Kivy 和 Buildozer 的问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32439773/
我正在准备在 kivy 中做一个进度条,我可以用它构建应用程序,但是当我运行一个函数(循环)时它不能被更新,我该怎么做? 这是我的代码: 导入库: from kivy.app import App f
为猕猴桃中的按钮创建圆角的首选方法是什么? 还有其他同样可行的方法来执行此任务吗?谢谢。 最佳答案 这是一个棘手的问题。就我而言,Widgets始终是矩形。但是我们可以更改背景,并分别使用backgr
我是kivy的新手。我有一个按钮可以刷新数据库中的列表项,这是绑定(bind)到该按钮的函数: def refresh_account(self): self.ids.grid.clear_w
我正在尝试使用 NumericProperty,但在尝试将其用作值时出现类型错误 我的代码是这样的 from kivy.properties import NumericProperty from k
在按钮中组合图像/图标和文本的首选方法是什么?例如,您将如何使用 text = 'my button' 创建按钮,以及该文本左侧的图形图标? 最佳答案 关于问题#2。 Kivy 的工作方式是嵌入 Wi
在 kivy 中,您如何使用自动居中的多行文本创建按钮或标签?如果你做类似的事情,Button(text = 'my button\nthis is my button') ,似乎只有一条线会居中,而
我知道如何制作彩色背景,但我似乎找不到任何有用的内容将图像设置为背景,并且非常感谢您对我的代码的任何帮助。 这是我的 .py 文件: from kivy.app import App from kiv
我的 Kivy 语言文件有许多 font_size 属性,所有属性都具有相同的值,是否可以在 KV lang 中分配变量? 当前 KV 文件示例: #User ID Label:
我有一个使用许多标签的 kivy 应用程序。是否可以从列表中获取它们的值?例如(但这不起作用) Label: text:root.label_value[0]
任何人都可以帮助我使用任何 sdk 在 kivy 应用程序中实现广告。 Revmobs 已停止支持 Kivy。 任何其他实现广告的方法也可以使用。 谢谢 最佳答案 我在 上取得了成功AdBuddiz
基维 gesture documentation有点缺乏,仅指手势示例。 我想知道为什么 Kivy 不提供任何辅助方法,例如 on_swipe_left、on_swipe_up 等。最好将 minsc
我目前使用的是 python 2.7.9。我试过重新安装 cython 并更新所有依赖项,但它没有用。我不知道 Buildozer 或 Cython 有什么问题。该应用程序直接从终端正常运行。 #er
Kivy 文档指定 "each widget in Kivy already have by default their Canvas" .然而,在实践中,小部件似乎持有对整个窗口的共享 Canvas
我是 Python 库 kivy 的新手。我找到了额外的库 kivy-md,它有非常漂亮的 ui 元素。目前我想从字典变量创建许多 MDTextField 小部件,例如 # text_fields.p
python 3.4基维 1.10.0 我正在尝试使用 Kivy Animation 类来为我的 Image 类制作动画。这是因为我想分别修改每个图像的 anim_delay 和位置值。 我想修改图像
我正在尝试使用 kivy 启动器在我的 android 上启动我的应用程序,这样我就可以在较小的屏幕上看到小部件位置/大小发生了什么。 当我启动时,它崩溃了。 所以...我猜我在我的应用程序中做了一些
有谁知道如何在 Kivy 中增加 MeshLinePlot 的线宽? 谢谢 更新 我从@Ikolim 那里得到了关于修改 kivy.graph 中的 LinePLot 函数的答案 class Line
如何使用 Kivy 更改窗口的大小。我一直在四处寻找,除了进入窗口的大小之外,我几乎可以更改所有内容。 从示例图片文件: 主文件 #!/usr/bin/kivy ''' Pictures demo =
我试图在 Windows 上安装 kivy 设计器。我按照步骤操作,但是当我尝试运行时 python -m designer 我收到以下错误: [INFO ] [Kivy ] v1.
我正在尝试让我的 python 和 kivy 文件打开一个弹出窗口。它说我的 Boxlayout 对象没有属性“open_popup” 这是我的Python代码: from kivy.app impo
我是一名优秀的程序员,十分优秀!