You are not logged in.
Pages: 1
Hi there,
I have done a search for Kivy and I have not come across posts related to problems with installation.
I have tried to install Kivy but the build currently fails. I did this using yaourt.
There is a reference to this via the following link;
https://aur.archlinux.org/packages/python3-kivy-git/
Does any one have any pointers in relation to this?
Thank you.
Marv
Last edited by Marv (2015-01-22 21:19:47)
Offline
Please post the actual errors of build failure: https://bbs.archlinux.org/viewtopic.php?id=57855
Offline
Basically one of the dependencies is missing which I think is python3-pygame..
I get the following:
==> python3-kivy-git dependencies:
- mtdev (already installed)
- python3-pygame (building from AUR)
- python-opengl (package found)
- python-pillow (package found)
- gstreamer0.10-python (package found)
- cython (package found)
==> Continue building python3-kivy-git ? [Y/n]
==> ------------------------------------------
==>
==> Building and installing package
==> Install or build missing dependencies for python3-kivy-git:
error: target not found: python3-pygame
==> Restart building python3-kivy-git ? [y/N]
==> -----------------------------------------
Last edited by Marv (2015-01-22 09:45:35)
Offline
There is a dependency problem in the Kyvi package.
When prompted, edit the PKGBUILD, manually change the python3-pygame to python-pygame-hg
Also the solution is already in the comments section of the package, and appears in the output of yaourt , did you even read it ?
PS: there may be another unrelated issue with this package.
Last edited by GloW_on_dub (2015-01-22 09:58:26)
Offline
Hi there,
Ive edited the PKGBUILD, manually changing the python3-pygame to python-pygame-hg..
but whilst builing the following errors occur..
Error compiling Cython file:
------------------------------------------------------------
...
include "config.pxi"
^
------------------------------------------------------------
kivy/graphics/c_opengl.pxd:1:0: 'config.pxi' not found
Error compiling Cython file:
------------------------------------------------------------
...
int GL_RENDERBUFFER_BINDING
int GL_MAX_RENDERBUFFER_SIZE
int GL_INVALID_FRAMEBUFFER_OPERATION
IF USE_OPENGL_ES2:
^
------------------------------------------------------------
kivy/graphics/c_opengl.pxd:370:21: Compile-time name 'USE_OPENGL_ES2' not defined
Error compiling Cython file:
------------------------------------------------------------
...
'''
global _gl_extensions
cdef str extensions
if not _gl_extensions:
extensions = <char *>c_opengl.glGetString(c_opengl.GL_EXTENSIONS)
^
------------------------------------------------------------
kivy/graphics/opengl_utils.pyx:46:21: Casting temporary Python object to non-numeric non-Python type
Error compiling Cython file:
------------------------------------------------------------
...
elif cap == c_GLCAP_NPOT:
msg = 'NPOT texture support'
if _platform == 'ios' or _platform == 'android':
# Adreno 200 renderer doesn't support NPOT
sval = <char *>c_opengl.glGetString(c_opengl.GL_RENDERER)
^
------------------------------------------------------------
kivy/graphics/opengl_utils.pyx:117:19: Casting temporary Python object to non-numeric non-Python type
Error compiling Cython file:
------------------------------------------------------------
...
cdef str version
if _gl_version_major == -1:
_gl_version_minor = _gl_version_major = 0
version = str(<char *>c_opengl.glGetString(c_opengl.GL_VERSION))
^
------------------------------------------------------------
kivy/graphics/opengl_utils.pyx:248:22: Casting temporary Python object to non-numeric non-Python type
building 'kivy.graphics.opengl_utils' extension
gcc -pthread -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.4m -c kivy/graphics/opengl_utils.c -o build/temp.linux-x86_64-3.4/kivy/graphics/opengl_utils.o
kivy/graphics/opengl_utils.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 'gcc' failed with exit status 1
==> ERROR: A failure occurred in build().
Aborting...
==> ERROR: Makepkg was unable to build python3-kivy-git.
==> Restart building python3-kivy-git ? [y/N]
==> -----------------------------------------
==>
Offline
As i said before, this is an unrelated error, you can either :
- Try to compile it yourself to understand where does this error come from, you should consider in that case cloning the git repo.
- Wait for the maintainer to fix this error
This error is most likely not linked to the package but to the code of kivy.
Offline
Thank you for the reply. I have contacted Kivy via twitter directly as I do not have the knowledge or expertise to do this. When they come back to me I will update the post.
This is not not resolved yet so would it be possible to leave it open until it is?
Last edited by Marv (2015-01-22 10:57:42)
Offline
in archlinux forum, a topic is considered open until the posting user add [SOLVED] in its title by editing the first post.
Offline
Thank you..
Offline
Please do not bug the Kivy devs with this. The packages build just fine. There is a dependency problem in the AUR packages. Please talk to the AUR maintainers of the package and the different dependecies first.
First of all: Throw away yaourt! Try building the chain manually one time, so you learn what the problem is.
The problem is python-pygame-hg is the AUR name of the package. The kivy pkgbuild wants python3-pygame. The python-pygame-hg AUR package provides python3-pygame. What you want to do is build python-pygame-hg first to get the required python3-pygame. Then you build kivy.
I suggest you ditch yaourt for good, until you have learned how the AUR works. Using yaourt has taught you nothing and wasted the time of upstream devs (reading your tweet takes time). I suggest you install cower, all it does is search the AUR and allows you to comfortably download packages without a browser. This is all you need. Once you understand how the AUR works, you will be able to write a short script to automate this.
Last edited by Awebb (2015-01-22 11:33:09)
Offline
@awebb, please read all topic, the first part of your answer is out of subject.
Also python2-kivy-git show the same error without dependency problem.
@Marv, python2-kivy seems to be compiling allright, you can use that as a work around.
Offline
Thanks for this. I have not used Arch for about 9 months so basically getting back to it.
Last edited by Marv (2015-01-22 12:28:43)
Offline
Please use code tags when pasting to the boards: https://wiki.archlinux.org/index.php/Fo … s_and_Code
Offline
I used Twitter to contact Kivy..
The following is the latest comment at https://aur.archlinux.org/packages/python3-kivy-git/ solving the build of Kivy;
Comment by mixedCase
2015-01-22 13:16
I just fixed the python2 build thanks to the help of tshirtman over at Freenode's #kivy, I guess the same fix should work in here.
Just swap the current build command
python3 setup.py build
for
python3 setup.py build_ext --inplace
Thank you.
Offline
Oops, I got that email about the AUR comment and forgot about it.
First I thought python3-pygame would appear in extra very soon, but that hasn't happened... now it'll python-pygame-hg for the time being.
I have tried updating the PKGBUILD accordingly, but because of https://github.com/kivy/kivy/issues/2805 it still doesn't build (haven't seen a cython upstream report about it and with cython-git it still doesn't work). https://groups.google.com/forum/#!topic … TEs-Jux3ss indicates, that cython 0.20 is the last version it worked with, but I'll first have to get some sleep..
Offline
It still does not build, but at least there is now a usable bug report in the cython tracker: https://groups.google.com/forum/#!topic … 3dQSfOKMjI
Why is this topic marked as solved?
Offline
because OP use python2-kivy
Offline
Ah, that makes sense.
Offline
UPDATE: I had a short talk with the Kivy devs on reddit: http://www.reddit.com/r/Python/comments … od/cp1xedo
Okay, it was much less a "talk" than some polemics to stir up the waters and their response. As a short summary, Kivy will now not build on cython 0.22, it will simply exit with a "meaningful error". The devs say the issue is temporary, they do not intend to play the old dependency version game and assured me, that such problems are not uncommon with Cython and that they usually are in parity with the Cython development.
Offline
Pages: 1