You are not logged in.

#1 2015-01-22 09:30:58

Marv
Member
Registered: 2013-02-09
Posts: 18
Website

Kivy [SOLVED]

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

#2 2015-01-22 09:33:09

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: Kivy [SOLVED]

Please post the actual errors of build failure: https://bbs.archlinux.org/viewtopic.php?id=57855


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2015-01-22 09:40:36

Marv
Member
Registered: 2013-02-09
Posts: 18
Website

Re: Kivy [SOLVED]

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

#4 2015-01-22 09:58:14

GloW_on_dub
Member
Registered: 2013-03-13
Posts: 388

Re: Kivy [SOLVED]

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

#5 2015-01-22 10:11:10

Marv
Member
Registered: 2013-02-09
Posts: 18
Website

Re: Kivy [SOLVED]

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

#6 2015-01-22 10:46:26

GloW_on_dub
Member
Registered: 2013-03-13
Posts: 388

Re: Kivy [SOLVED]

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

#7 2015-01-22 10:52:14

Marv
Member
Registered: 2013-02-09
Posts: 18
Website

Re: Kivy [SOLVED]

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

#8 2015-01-22 10:58:33

GloW_on_dub
Member
Registered: 2013-03-13
Posts: 388

Re: Kivy [SOLVED]

in archlinux forum, a topic is considered open until the posting user add [SOLVED] in its title by editing the first post.

Offline

#9 2015-01-22 11:03:26

Marv
Member
Registered: 2013-02-09
Posts: 18
Website

Re: Kivy [SOLVED]

Thank you..

Offline

#10 2015-01-22 11:27:10

Awebb
Member
Registered: 2010-05-06
Posts: 6,311

Re: Kivy [SOLVED]

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

#11 2015-01-22 11:58:00

GloW_on_dub
Member
Registered: 2013-03-13
Posts: 388

Re: Kivy [SOLVED]

@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

#12 2015-01-22 12:28:22

Marv
Member
Registered: 2013-02-09
Posts: 18
Website

Re: Kivy [SOLVED]

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

#13 2015-01-22 17:11:06

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: Kivy [SOLVED]

Please use code tags when pasting to the boards: https://wiki.archlinux.org/index.php/Fo … s_and_Code


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#14 2015-01-22 21:18:13

Marv
Member
Registered: 2013-02-09
Posts: 18
Website

Re: Kivy [SOLVED]

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

#15 2015-02-16 01:29:33

haagch
Member
Registered: 2013-08-17
Posts: 209

Re: Kivy [SOLVED]

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

#16 2015-02-23 15:53:04

Awebb
Member
Registered: 2010-05-06
Posts: 6,311

Re: Kivy [SOLVED]

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

#17 2015-02-24 23:40:26

GloW_on_dub
Member
Registered: 2013-03-13
Posts: 388

Re: Kivy [SOLVED]

because OP use python2-kivy

Offline

#18 2015-02-25 08:26:34

Awebb
Member
Registered: 2010-05-06
Posts: 6,311

Re: Kivy [SOLVED]

Ah, that makes sense.

Offline

#19 2015-03-03 09:03:36

Awebb
Member
Registered: 2010-05-06
Posts: 6,311

Re: Kivy [SOLVED]

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

Board footer

Powered by FluxBB